8000 ci: retry transient pinned PHREEQC downloads by rafatahmed · Pull Request #283 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

ci: retry transient pinned PHREEQC downloads - #283

Merged
rafatahmed merged 1 commit into
mainfrom
fix/282-phreeqc-provisioning
Nov 18, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
fix/282-phreeqc-provisioning

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Summary

Recover transient pinned PHREEQC HTTP downloads without weakening scientific or provenance requirements.

transient HTTP failure -> at most 3 requests, bounded local backoff
successful download    -> original installer hash -> extraction -> original executable/database hashes
all exits              -> temporary installer cleanup
CI recovery            -> full workflow rerun, same-attempt coverage evidence

Closes #282

Evidence

  • Before: real HTTP-server regression reproduces immediate HTTP 503 refusal when a later response could recover; original main provisioning failed on upstream unavailability.
  • After: local HTTP integration cases cover 503 recovery, three-request exhaustion, immediate 404 refusal and ignoring a 3,600-second Retry-After header. Returned synthetic payloads are still rejected by the real installer hash check before extraction.
  • Existing six provisioning contract scenarios preserve verified-cache/extraction success and installer/executable/database/extraction refusals. All five provisioning tests pass; 32 selected checks and 19 required live-reference tests pass.
  • Repository-wide Ruff lint/format, whitespace, strict Sphinx and all local HTML references pass. Three pinned SHA-256 constants and all chemistry/reference inputs remain unchanged.
  • Local changes are not yet hosted-CI qualified. The separate full rerun of unchanged main recovers operational evidence; it does not validate this patch. No release publishing is included.

Merge Danger

Door: two-way

Reversible provisioning/test/documentation correction.

Blast Radius: CI

HTTP transient handling only; other errors fail immediately. The 60-second connection timeout and existing job timeout remain distinct. No reference version change, mirror, gate relaxation or unverified executable is accepted.

Retry only transient HTTP responses with bounded local backoff; retain all hash and provenance requirements. Recovered main CI requires a full same-attempt rerun.

Refs #282
@rafatahmed rafatahmed added bug Something isn't working github_actions Pull requests that update GitHub Actions code labels Nov 18, 2026
@rafatahmed rafatahmed self-assigned this Nov 18, 2026
@codecov
codecov Bot commented Nov 18, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3a401da) to head (06a2b73).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #283   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          140       140           
  Lines        16922     16922           
  Branches      3433      3433           
=========================================
  Hits         16922     16922           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@rafatahmed
rafatahmed marked this pull request as ready for review November 18, 2026 23:36
@rafatahmed
rafatahmed merged commit 2349603 into main Nov 18, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the fix/282-phreeqc-provisioning branch November 18, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: harden pinned PHREEQC provisioning against transient download failures

1 participant

0