Repository navigation
Description
Summary
main has been red since ~14:32 UTC on 2026-08-17 (previously green on 2026-08-15). Reviewing the last ~15 CI runs on main, the failures fall into two real code/repo breaks plus a large amount of GitHub infrastructure rate-limiting (HTTP 429) noise. The current tip a11f1c4f (run 32069194217, "refactor: remove NodeAnnounce gossip… (#1712)") is failing on both real breaks, so the branch is genuinely broken, not just flaky.
Real breaks (need fixing)
1. Rust test job — origin-pull delivery-speed scoring regressed (guards #1602)
decdn-node::node_origin_pull::a_slow_post_topup_delivery_scores_slow_not_instant fails on the tip commit:
FAIL [ 0.734s] decdn-node::node_origin_pull a_slow_post_topup_delivery_scores_slow_not_instant
Error: a slow post-top-up delivery must score slow; a score of 0.9054434053110034 means the
resume leg's transfer was wrongly excluded from `elapsed` (folded into `paid_wait`) — #1602
error: test run failed
This is the regression-guard test for #1602 ("reactive top-up delivery leg wrongly excluded from peer delivery-speed reputation"), which is closed. The assertion's own message points at #1602, so this looks like a reintroduction of that bug (the reactive/resume top-up leg's transfer time is being folded into paid_wait instead of elapsed), or a timing-sensitive test that has become unreliable. Either way it fails deterministically on a11f1c4f and needs triage — the fix from #1602 appears to have regressed.
2. Solidity gas figures are stale (redeemMany)
The pinned redeemMany gas figures / .gas-snapshot no longer match actual deterministic gas. This surfaces in two jobs on two commits:
- Tip
a11f1c4f,solidity build+test— the in-test assertions pass butcontracts/.gas-snapshotis stale:##[error]contracts/.gas-snapshot is stale vs the contracts in this PR (deterministic gas changed). Regenerate with 'FOUNDRY_PROFILE=ci forge snapshot --snap .gas-snapshot' and commit the result. -PaymentPoolTest:test_redeemMany_gas_NPlus1Vouchers() (gas: 1048975) +PaymentPoolTest:test_redeemMany_gas_NPlus1Vouchers() (gas: 1049517) - Earlier
a9e871a9,solidity coverage— the hard-coded pinned figures insidePaymentPool.t.soldrifted well beyond tolerance:Encountered 4 failing tests in test/PaymentPool.t.sol:PaymentPoolTest [FAIL: redeemMany gas for N+1 vouchers drifted from the pinned figure: 588071 !~= 541614 (max delta: 5000, real delta: 46457)] test_redeemMany_gas_NPlus1Vouchers() [FAIL: redeemMany gas for N vouchers drifted from the pinned figure: 549784 !~= 507093 (max delta: 5000, real delta: 42691)] test_redeemMany_gas_NVouchers() [FAIL: redeemMany gas for first-time N+1 vouchers drifted from the pinned figure: 924895 !~= 859221 (max delta: 8000, real delta: 65674)] test_redeemMany_gas_firstTime_NPlus1Vouchers() [FAIL: redeemMany gas for first-time N vouchers drifted from the pinned figure: 855978 !~= 795817 (max delta: 8000, real delta: 60161)] test_redeemMany_gas_firstTime_NVouchers()
The pinned in-test figures appear to have been updated between a9e871a9 and a11f1c4f, but .gas-snapshot was not regenerated in the same commit, leaving the tip red. Fix: regenerate the snapshot (FOUNDRY_PROFILE=ci forge snapshot --snap .gas-snapshot) and keep the pinned in-test figures and .gas-snapshot in sync.
Infrastructure flakes (no code defect — noted for context)
Three of the recent main runs failed entirely on GitHub 429/502/503 rate-limiting while downloading actions/toolchains, never reaching real work:
b57d55ef(run 32042139042) —doctest,clippy,test,deny,anvil e2e (settlement),solidity coverageall died downloadingdtolnay/rust-toolchain/foundry-toolchain.ea12f8c2(run 32040957998) —packaging, bothanvil e2e,public-api,solidity slitherdied on action downloads /foundryupcurl 429.376af490(run 32039420680) —ed25519 vectors(toolchain 429) andsolidity slither(raw.githubusercontent.com/crytic/solc/.../list.json429).
Representative line:
##[error]Response status code does not indicate success: 429 (Too Many Requests).
##[error]Failed to download archive 'https://codeload.github.com/dtolnay/rust-toolchain/...' after 3 attempts.
These are not blocking bugs, but the frequency suggests CI would benefit from ret/caching hardening on toolchain/action downloads (e.g. cache the toolchain, pin/pre-install solc, or add backoff). Splitting that into its own tracking issue may be worthwhile if it keeps recurring.
Failing-run overview (last ~15 CI runs on main)
| run | head_sha | real break(s) |
|---|---|---|
| 32069194217 | a11f1c4f (tip) |
Rust scoring test + stale .gas-snapshot |
| 32046492779 | a9e871a9 |
redeemMany gas drift (coverage) |
| 32042139042 | b57d55ef |
infra 429 only |
| 32040957998 | ea12f8c2 |
infra 429 only |
| 32039420680 | 376af490 |
infra 429 only |
(Several intervening runs were cancelled by superseding pushes.)
Suggested resolution
- Regenerate
contracts/.gas-snapshotand reconcile the pinnedtest_redeemMany_gas_*figures inPaymentPool.t.solso both reflect current gas (single commit). - Investigate
a_slow_post_topup_delivery_scores_slow_not_instant— determine whether the fix(node): reactive top-up delivery leg wrongly excluded from peer delivery-speed reputation #1602 fix regressed (resume-leg transfer folded intopaid_wait) or the test is timing-sensitive, and restore green. - (Optional) Harden CI against toolchain/action download 429s if they keep recurring.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity