Repository navigation
Conversation
Esteban82
self-requested a review
September 4, 2026 13:52
Esteban82
added a commit
that referenced
this pull request
Oct 7, 2026
* CI: Restore the server index files from the cache artifact instead of faking them The gmt-cache artifact carries gmt_data_server.txt and gmt_hash_server.txt only in server/, while GMT reads them from the root of ~/.gmt/static. Without them the test run has to fetch the index live; whenever that fetch fails, which happens on some runs and not others, auto_download is latched off and every test that needs remote data fails. The blind touch from #9179 does not help: it creates zero-byte indexes, which GMT rejects and deletes. Copy them up from server/ and fail loudly if neither copy is usable. Co-Authored-By: Claude Opus 5.5 <[email protected]> * CI: Make the gmt-cache artifact self-contained and fail when incomplete Put the two index files at the root of the artifact, where GMT reads them, so the test jobs no longer depend on fetching them live. Fail the job instead of uploading a partial cache: retry while gmt reports missing files (GMT <= 6.7 still exits 0 on a failed download), check the final layout, and refuse to upload nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * CI: Try caching remote data without the #8437 workaround As suggested in review: with GMT 6.7.0 and GMT_DATA_SERVER set to the name "static", the data and cache files are written under ~/.gmt/static directly, so the mv commands and the copy of the index files should not be needed. Use the name instead of the URL, since a URL is not treated as a ghost server and puts everything under ~/.gmt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * CI: Copy the hash index into server/ before gmt get -Dcache gmt get -Dcache reads <USERDIR>/server/gmt_hash_server.txt (gmtget.c), but GMT writes the hash index to <USERDIR>/, so without this copy it fails with "Unable to access or read" even with the correct ~/.gmt/static layout. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Revert the experiment with GMT_DATA_SERVER=static in the cache job Reverts d1abd98 and f8eb213. With the name "static" the "Cache GMT data" job downloads nothing ("Remote download is currently deactivated" from the first dataset), as it did before #9223 switched to the URL. Restore the URL and the mv workaround. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-apply the experiment with GMT_DATA_SERVER=static in the cache job Reverts 72fc3f7. Review feedback is that the failed run was a temporary connection problem and not an effect of d1abd98 and f8eb213, so try them again. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Remove old workaround. * Restore touch command * Restore touch command in docker.yml and tests.yml, and add comment. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As I understand it, GMT tries to refresh remote files if
gmt_data_server.txtorgmt_hash_server.txtare 24-hours old.The files stored in cache are refreshed weekly, so GMT thinks they're outdated. This PR fixes the issue by changing the modifications times of the two files, which has been working well in PyGMT.