Skip to content

ci(coin-matrix): clear orphaned conan download tempfiles on self-hosted#647

Merged
frstrtr merged 1 commit into
masterfrom
ci-steward/conan-orphan-download-cleanup
Jul 6, 2026
Merged

ci(coin-matrix): clear orphaned conan download tempfiles on self-hosted#647
frstrtr merged 1 commit into
masterfrom
ci-steward/conan-orphan-download-cleanup

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

Adds a self-hosted-gated pre-conan install step in coin-matrix.yml that deletes orphaned conan_package.tgz/conan_sources.tgz staging archives from the reused ~/.conan2 cache.

Why

Master tip 465ded92 bch smoke went RED with:

boost/1.90.0: Main binary package ... missing
ERROR: the file to download already exists: /home/ubuntu/.conan2/p/boost.../d/conan_package.tgz

An interrupted/racing conan download leaves a partial staging tgz behind; the next conan install refuses 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

  • Single file, additive-only; gated runner.environment != github-hosted (mirrors the existing "Clean stale build dir" step).
  • Deletes only download staging archives; extracted binary packages and recipes are untouched, so a present package is not re-downloaded.

Merge-gated: awaiting operator push-approval.

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.
@frstrtr frstrtr merged commit 80cf2c5 into master Jul 6, 2026
34 of 36 checks passed
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.

1 participant