-
Notifications
You must be signed in to change notification settings - Fork 26
Update Downloader Hash #1279
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
Update Downloader Hash #1279
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1279 +/- ##
===========================================
- Coverage 90.63% 90.60% -0.03%
===========================================
Files 132 132
Lines 14174 14181 +7
===========================================
+ Hits 12846 12849 +3
- Misses 1328 1332 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@garrettwrong Oof, now I'm remembering why we didn't use scheduled jobs before. Scheduled jobs have to run off the default branch, ie. main. So adding the logic to have the job run on develop only makes it so the workflow never runs. I think our options are to either
Thoughts? Any other options you can think of? |
|
2 is a hard no. If I am reading the documentation correctly... the workflow (yaml) must be committed to default branch. However, you can use the checkout action as per usual to checkout any branch you want (eg The most unfortunate thing about that is you will want to be sure everything is correct before it hits |
|
Ok. Looks like I was not properly checking out |
|
This is ready for another look. Tested on a fork and everything is running as expected. I removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thanks!
In case it is useful in future... You could have tested the error case by using a mock function to force the warning. That would exercise the capturing code and except branch (which should go on to download the correct file). If you wanted to avoid the download most of the time, that could be mocked as well, to return the file that exists in cache already. Just a different way to approach it.
Ok, thanks for the suggestion! I'll consider it in the future :) |
This PR resolves the downloader mismatched hash reported in #1276. This PR
scheduled_workflow.yml,scheduledpytest marker, and downloader test marked "scheduled" that will fail the workflow in the case of a hash mismatch.If we'd prefer to just merge in the updated hashes I can break off the other adds into a separate PR.