Repository navigation
Conversation
Critsium-xy
approved these changes
Dec 1, 2026
ABACUS-PR-BOT
left a comment
Collaborator
There was a problem hiding this comment.
Static inspection of 9b19695 found no actionable defect in the downloader status propagation, TLS fallback, retry/cache handling or the inspected installer path. Live redirect recovery and the test outcomes remain unverified.
Static review only; no builds or runtime tests were run.
cheerly-pku
added a commit
to cheerly-pku/abacus-develop
that referenced
this pull request
Dec 2, 2026
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.
Dependency setup failed before compilation in #8454 and #8264. Wget's quiet mode hid the cause and the installer mislabeled every failure as a certificate error. With diagnostics enabled, the first hosted run of this PR exposed the actual failure: a stale GitHub 302 redirect followed by HTTP 618
jwt:expiredfrom the release-asset server. The redirect Date was about eleven minutes older than the request; its signed download token had expired. Those logs do not identify which cache served the stale redirect.The download helper now adds a fresh query parameter to canonical GitHub release entry points, preserving existing query parameters and leaving the signed target URL untouched. This avoids cached redirects whose short-lived tokens have expired. General requests also send cache-revalidation headers. Local archive reuse and SHA256 checks remain unchanged.
Revalidation headers alone were tested in
f7f543f6dand proved insufficient: this Intel job still received618 jwt:expired. The fresh entry-point cache key in9b19695a0addresses that observed limitation.The helper keeps Wget errors/HTTP headers and its final exit code, and allows three attempts for transient network errors and HTTP 429/500/502/503/504. DNS/connect/idle-read waits are limited to 30 seconds each, with retry backoff capped at two seconds. These are per-operation limits, not a whole-download deadline. HTTP 404 remains an immediate failure.
Behavior and scope
strict,smart, andskipcertificate policies remain available. Only Wget exit 5 (certificate verification failure) triggers the existingsmartfallback; network/HTTP failures no longer weaken TLS verification or get mislabeled as certificate errors.Verification
All 13 regression tests passed with GNU Wget 1.21.4:
A GitHub-entry-point test models a cache that ignores revalidation headers: the ordinary URL fails with HTTP 618, while fresh query keys succeed and preserve existing parameters. A second cached-redirect test first confirms that ordinary Wget receives HTTP 618, then verifies that the modified helper requests a fresh redirect and downloads the checksum-valid archive. The other tests exercise transient 429/500/502/503/504 recovery, persistent 503 exhaustion, 404 without retries under all three policies and pack mode, connection refusal, a real 30-second read timeout followed by recovery, checksum rejection, trusted HTTPS, strict rejection of a self-signed certificate, smart fallback and explicit skip. They verify that failure prevents the next installation command. Wget 1.21.4 returns exit 4 when retryable HTTP errors exhaust the retry budget; response headers preserve the HTTP cause.
Both actual DFT-D4 4.3.0 and nlohmann-json 3.12.0 archives were downloaded with the final
9b19695a0helper in strict mode and passed the repository's SHA256 checks. The intermediate no-cache-only probe had a network failure on nlohmann-json; its failed log is retained. Hosted integration verification of the final patch is pending.Actionlint v1.7.12 passed for the changed workflow (ShellCheck/Pyflakes integrations disabled). Bash syntax, whitespace and staged governance checks passed; shfmt was run with the repository's two-space/case indentation and space-redirect style. Full ABACUS builds were not repeated locally for this shell-only runtime change; hosted checks will provide integration coverage.
Remaining limits
Retries cannot guarantee recovery from persistent outages or arbitrary intermediary behavior. The GitHub-specific fresh query key changes each download invocation, not each internal Wget retry. Smart mode still permits an unverified TLS fallback specifically for certificate errors, as before; strict mode avoids that fallback. The old silent runs cannot be retroactively diagnosed individually; the new CI logs directly establish the expired-token failure for the reproduced nlohmann-json downloads.
Governance notes
Linked issue: observed in #8454 and #8264; no separate issue. INPUT changes: none. Core-module impact: none. Exceptions requested: none.