ci(coin-matrix): clear orphaned conan download tempfiles on self-hosted#647
Merged
Merged
Conversation
An interrupted or racing conan download can leave a partial conan_package.tgz in the reused ~/.conan2 cache, making the next conan install abort with "the file to download already exists" (seen on bch smoke, master 465ded9). Re-running alone cannot clear it since the tempfile persists on the runner. Add a self-hosted-gated pre-install step that deletes orphaned conan_package.tgz/conan_sources.tgz staging archives so a missing binary package re-fetches cleanly; extracted packages are untouched.
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.
What
Adds a self-hosted-gated pre-
conan installstep in coin-matrix.yml that deletes orphanedconan_package.tgz/conan_sources.tgzstaging archives from the reused~/.conan2cache.Why
Master tip
465ded92bch smoke went RED with:An interrupted/racing conan download leaves a partial staging tgz behind; the next
conan installrefuses to overwrite it and aborts. This is a self-hosted environment race, not a code regression — but re-running alone cannot clear it, since the tempfile persists on the runner across jobs. Recurrence warrants hardening rather than perpetual re-runs.Scope
runner.environment != github-hosted(mirrors the existing "Clean stale build dir" step).Merge-gated: awaiting operator push-approval.