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

CI: Cache GMT remote files for testings #3056

Merged
merged 1 commit into from
Apr 10, 2020
Merged

CI: Cache GMT remote files for testings #3056

merged 1 commit into from
Apr 10, 2020

Conversation

seisman
Copy link
Member

@seisman seisman commented Apr 10, 2020

Recently, the nightly CI jobs fail on Linux and Windows, but succeed on macOS.

The CI jobs fail because the Linux and Windows agents cann't connect to
any external websites, thus GMT can't download any remote files from the GMT server.
It's unclear if it's a temporary issue of Azure Pipelines.

Currently, the only workaround is using the cache mechanism of Azure Pipelines.
The macOS agents download remote files to ${HOME}/.gmt and save them to
the CI cache, then Linux and Windows agents can restore the cache when
needed.

The only problem is that the Azure Pipelines caches are immutable.
When the remote files are changed, we have to manually update the cache key (i.e. update the key 20200409 to a new date) to regenerate the caches.

Recently, the nightly CI jobs fail on Linux and Windows, but succeed on macOS.

The CI jobs fail because the Linux and Windows agents cann't connect to
any external websites, thus GMT can't download any remote files from the GMT server.
It's not clear if it's a temporary issue of Azure Pipelines.

Currently, the only workaround is using the cache mechanism of Azure Pipelines.
The macOS agents download remote files to ${HOME}/.gmt and save them to
the CI cache, then Linux and Windows agents can restore the cache when
needed.

The only problem is that the Azure Pipelines caches are immutable.
When the remote files are changed, we have to manually update the cache key
to regenerate the caches.
@seisman seisman requested a review from PaulWessel April 10, 2020 03:22
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.

2 participants