mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
1.2 KiB
1.2 KiB
CI Health Agent - Daily Run (2026-02-19)
Summary
Investigated recent CI failures on the unstable branch and identified a recurring failure in the deploy-cache-state job, specifically in the Verify deployed index.html version markup step.
Findings
- Local Unit Tests: All passed (
npm run test:unit). - CI Status:
- Multiple recent runs on
unstablefailed at the deployment verification step. - PR checks passed, indicating the issue is likely environment-related (CDN propagation latency) rather than a code defect.
- Multiple recent runs on
- Root Cause: The
scripts/verify-deployed-index-html.mjsscript was fetching the URL once and failing immediately if the expected version markup was missing. This is brittle against Cloudflare's cache purge propagation times.
Actions Taken
- Fix Implemented: Updated
scripts/verify-deployed-index-html.mjsto include a retry mechanism.- Added
MAX_RETRIES = 5andRETRY_DELAY_MS = 5000(5 seconds). - The script now polls the URL up to 5 times before failing, significantly improving robustness against propagation delays.
- Added
Next Steps
- Monitor the next scheduled daily run or merge to
unstableto verify the fix eliminates the flake.