Repository navigation
Bugfix #3446 develop skip DockerHub query - #3447
Conversation
…he result is used, i.e. when a development version requests an input data volume, so difference tests no longer fail when the DockerHub API request fails Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coverage Report for CI Build 47424691272Coverage remained the same at 92.699%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions1 previously-covered line in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
SummaryThis PR changes Findings
I found no correctness bugs in the new logic. Skipped-query cases give the same volume names as before, because Project conventionsAGENTS.md exists and was used for this review.
Questions for the author
|
…erHub inside the loop the first time a development version needs the available volumes, so the decision to query no longer duplicates the loop's logic Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ckerHub request raises an exception, returns a non-200 status, or returns a response that is not a page of results, retrying each page once and logging the reason, so failures report the rerun message instead of a traceback Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: John Halley Gotway <johnhg@ucar.edu>
…request Co-authored-by: John Halley Gotway <johnhg@ucar.edu>
JohnHalleyGotway
left a comment
There was a problem hiding this comment.
Thanks for applying both suggestions, George. I ran the updated docker_get_volumes_last_updated() against DockerHub. For develop it now finds all 158 matching tags, including develop-medium_range, in 8 requests, where before it stopped after 21 requests with 48. The earlier use case run on this PR also confirmed that the input and truth data volumes were both set up and the diff ran. Looks good to me.
Change Summary
Describe the changes proposed by this pull request:
Fixes #3446.
get_data_volumes.main()always queried the DockerHub API for the list of available tags, even though that list is only used to choose a branch-specific input data volume when running a development version. As a result, the difference test step, which only requestsoutput-*volumes fromdtcenter/metplus-data-dev, failed with "Could not get truth data to run diff" whenever the DockerHub API returned a non-200 status twice (e.g. medium_range:8 in run 44809364247 onmain_v13.0).The query now runs inside the loop, once, the first time an input data volume is requested while running a development version, which is the only place its result is used.
When the query does run,
docker_get_volumes_last_updated()now returnsNone, with a log message giving the reason, when a request raises arequests.exceptions.RequestException(e.g. a timeout or connection error), returns a non-200 status (the status code is now logged), returns a body that is not JSON, or returns a response without aresultskey. Previously only two non-200 responses to the first page were handled, and the other cases ended in a traceback instead of the "Try rerunning failed jobs" error. Every page is retried once, including later pages, which previously had no error handling, and a missingnextkey ends the pagination.Also removed the handling for
all_metplus_data, which no caller passes and which would pull an image tagged with only the version (e.g.metplus-data-dev:develop) that does not exist on DockerHub. It was added for Travis CI in #622.No release notes or upgrade instructions: this changes only the GitHub Actions scripts under
.github/jobs, so a user upgrading from the last release would not notice any difference.Per discussion, this fix is not being applied to
main_v13.0.Pull Request Testing
Describe testing already performed for these changes:
Ran
get_data_volumes.main()locally withdocker_get_volumes_last_updated()andrun_commands()replaced by stand-ins, for branchesmain_v13.0andfeature_1, with the DockerHub query both succeeding and failing:output-*(truth data) requests made no query and produced the same volume names as before, even when the query would fail.feature_1-medium_rangewhen it was available, and still returned the error when the query failed.Ran
docker_get_volumes_last_updated()locally withrequests.getreplaced by a stand-in:results, and two failures on page 2 each returnedNonewith the reason logged.nextkey returned the tags from that page.Also ran the real query against DockerHub for
develop, which returned 48 tags includingdevelop-medium_range.Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Confirm that the Testing workflow on this PR obtains input data volumes and runs the difference tests as before.
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes or No]
Do these changes include sufficient testing updates? [Yes or No]
Will this PR result in changes to the test suite? No
If yes, describe the new output and/or changes to the existing output:
Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
Please complete this pull request review by 12/4/2026.
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases and/or METplus-X.Y Development project for the next coordinated release
🤖 Generated with Claude Code