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

Remove useGithubStorage from GHES version checker method #1295

Merged
merged 17 commits into from
Nov 15, 2024

Conversation

begonaguereca
Copy link
Collaborator

@begonaguereca begonaguereca commented Nov 12, 2024

Closes https://github.ghe.com/github/octoshift/issues/9649!

This pull request simplifies the method calls to AreBlobCredentialsRequired by removing the boolean parameter that checks for gitHubOwnedStorage.

While this produces the correct result, it is confusing for a reader. This PR refactors out that logic and adds the checks in the correct spots.

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)
  • New package licenses are added to ThirdPartyNotices.txt (if applicable)

@begonaguereca begonaguereca changed the title Alt Remove useGithubStorage from GHES version checker method Nov 12, 2024
Copy link
Collaborator

@ArinGhazarian ArinGhazarian left a comment

Choose a reason for hiding this comment

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

So once the two comments are addressed it should be all good to go the only missing thing is that I forgot to mention is the INT tests for --use-github-storage are only testing a single part upload so it'd be ideal if there is one additional test for testing a multipart upload. Moving forward here are our options:

  1. Don’t add a test but run a manual functional test with a large archive > 1gb to make sure it 100% works (not recommended)
  2. Add a new INT test that uses a pre-existing archive > 100MiB (this can be a new INT test not the Basic one that doesn’t download the archive and uses an existing one and we just need to test --use-github-storage scenario) (recommended)
  3. if creating a > 100 MiB archive is not easily possible we can add a new test but change the archvie limit from 100 to say 10 MiB just to test the multipart upload.

Copy link

github-actions bot commented Nov 13, 2024

Unit Test Results

834 tests   834 ✅  23s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit edf8870.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@ArinGhazarian ArinGhazarian left a comment

Choose a reason for hiding this comment

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

Looks good just dropped a non-blocking nit.

@begonaguereca begonaguereca marked this pull request as ready for review November 13, 2024 21:43
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
gei 80% 72% 554
ado2gh 84% 78% 627
Octoshift 87% 76% 1298
bbs2gh 79% 74% 680
Summary 84% (7039 / 8422) 76% (1597 / 2114) 3159

@begonaguereca begonaguereca merged commit 0917c73 into main Nov 15, 2024
30 checks passed
@begonaguereca begonaguereca deleted the arin-fix-bug branch November 15, 2024 17:43
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.

4 participants