Skip to content

fix(ci): retry CPM bootstrap download on transient failures - #53

Merged
esrrhs merged 2 commits into
masterfrom
fix/cpm-bootstrap-retry
Nov 9, 2026
Merged

esrrhs merged 2 commits into
masterfrom
fix/cpm-bootstrap-retry

Conversation

@esrrhs

@esrrhs esrrhs commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Scheduled Fuzz run 42472687801 failed during Build fakelua + fuzz_bridge because cmake/CPM.cmake aborted on the first file(DOWNLOAD) of CPM 0.38.7 from GitHub Releases (HTTP response code said error). The sibling fuzz_differential job on the same SHA succeeded, and the same commit had already passed Fuzz on push (#153) — this was a transient CDN/network flake, not a fuzz crash.

CMake's EXPECTED_HASH on file(DOWNLOAD) fatals on HTTP failure before STATUS can be inspected, so retries were impossible with the previous bootstrap.

Changes

  • cmake/CPM.cmake only: download to a .download temp file, verify SHA256 manually, retry up to 5 times with short backoff, only then promote to the final include path; skip download when a correct cached file already exists; clear FATAL_ERROR diagnostics on exhaustion.

Validation

  • Fresh configure from latest master with -DBUILD_FUZZ=ON used the new bootstrap (CPM SHA256 matched) and make fuzz_bridge succeeded.
  • No clang/libFuzzer on the local box for full fuzz binary smoke; CI Fuzz workflow covers that.

Notes

  • Does not vendor CPM.
  • No force-push / merge / branch deletion.

CMake file(DOWNLOAD) with EXPECTED_HASH fatals on HTTP errors before
STATUS can be inspected, so a single GitHub releases blip aborts
configure (seen on scheduled Fuzz run 42472687801). Download to a
temp file, verify SHA256 manually, retry with bounded backoff, and
only then promote to the include path. Add cmake -P coverage for the
final-failure and success paths.
@codecov-commenter

codecov-commenter commented Nov 9, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.77%. Comparing base (237c48a) to head (0d02eef).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #53   +/-   ##
=======================================
  Coverage   89.77%   89.77%           
=======================================
  Files         125      125           
  Lines       27317    27317           
=======================================
  Hits        24523    24523           
  Misses       2794     2794           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Keep only the cmake/CPM.cmake download-retry fix in this change set.
@esrrhs
esrrhs merged commit 49c63c7 into master Nov 9, 2026
9 checks passed
@esrrhs
esrrhs deleted the fix/cpm-bootstrap-retry branch November 9, 2026 08:23
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