Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reimplement functions in go-mouff-update, use ghreposervice #5470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

novahow
Copy link
Contributor

@novahow novahow commented Jun 11, 2024

Tracking issue

closes #5372

Why are the changes needed?

flytectl upgrade is not working after monorepo integration

What changes were proposed in this pull request?

Cloned the code from the original external package https://github.com/mouuff/go-rocket-update/blob/v1.5.4/pkg/provider/provider_github.go , and made modifications to fit our needs

How was this patch tested?

make test_unit

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: novahow <b08902047@ntu.edu.tw>
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 80 lines in your changes missing coverage. Please review.

Project coverage is 60.88%. Comparing base (cd37d1b) to head (95e854a).
Report is 2 commits behind head on master.

Files Patch % Lines
flytectl/pkg/github/provider.go 0.00% 80 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5470      +/-   ##
==========================================
- Coverage   60.98%   60.88%   -0.10%     
==========================================
  Files         793      794       +1     
  Lines       51313    51393      +80     
==========================================
- Hits        31294    31292       -2     
- Misses      17134    17215      +81     
- Partials     2885     2886       +1     
Flag Coverage Δ
unittests-datacatalog 69.31% <ø> (ø)
unittests-flyteadmin 58.66% <ø> (ø)
unittests-flytecopilot 17.79% <ø> (ø)
unittests-flytectl 66.96% <0.00%> (-1.01%) ⬇️
unittests-flyteidl 79.04% <ø> (ø)
unittests-flyteplugins 61.84% <ø> (ø)
unittests-flytepropeller 57.32% <ø> (ø)
unittests-flytestdlib 65.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eapolinario
Copy link
Contributor

Thanks for your PR. Can you fix the lint errors?

Copy link
Contributor

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really have to provide real implementations of all these functions in provider.go?

Also, can you add a few unit tests?

Comment on lines +18 to +20
// type GitHubProvider struct {
// provider.Github
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] flytectl upgrade is broken after moving to the monorepo
2 participants