Skip to content

Harden CI downloads: retry dependency clones and host CI assets on GitHub - #2713

Merged
akenmorris merged 4 commits into
masterfrom
amorris/2712-build-deps-clone-retry
Nov 20, 2026
Merged

akenmorris merged 4 commits into
masterfrom
amorris/2712-build-deps-clone-retry

Conversation

@akenmorris

@akenmorris akenmorris commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2712.

build_dependencies.sh now clones through a clone_repo helper that reuses an existing clone, retries transient failures up to three times, and exits if the clone still fails. Checkouts, submodule updates, and directory changes also exit on failure instead of continuing.

The Windows runner no longer trusts www.sci.utah.edu's certificate, so the NSIS and tiny test data archives now download from the new ci-assets release. Also removes the unused copy_artifact.sh, restore_caches.sh, and store_ccache.sh along with the CACHE_HOST setting, since the remote cache host no longer exists.

A dropped connection while cloning VTK left build_dependencies.sh running
against a missing directory, burying the real error. Clones now go through
clone_repo, which reuses an existing clone, retries up to three times, and
exits on failure; checkouts and cd's also exit on failure.
The windows-2022 runner image no longer trusts the emSign root behind
www.sci.utah.edu's new certificate, breaking the NSIS and tiny test data
downloads. The NSIS, tiny test data, and rsync archives now come from the
ci-assets release; the rsync download also follows redirects, since the
old http URL returned a 302 page instead of the archive.
@akenmorris akenmorris changed the title Retry dependency clones and stop on clone/checkout failure Harden CI downloads: retry dependency clones and host CI assets on GitHub Nov 20, 2026
Its callers were removed when CI stopped using the remote host cache.
CACHE_HOST no longer exists. Drop restore_caches.sh, store_ccache.sh, the
CACHE_HOST env var, and the cache archive naming/compression helpers in
common.sh that only they used.
@akenmorris
akenmorris force-pushed the amorris/2712-build-deps-clone-retry branch from fd95498 to 5139062 Compare November 20, 2026 07:57
@akenmorris
akenmorris merged commit 4de2967 into master Nov 20, 2026
5 checks passed
@akenmorris
akenmorris deleted the amorris/2712-build-deps-clone-retry branch November 20, 2026 15:25
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.

build_dependencies.sh continues after a failed git clone

1 participant