You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: anvil-e2e-journeys inventory comment is stale again (20/17 vs actual 25/15) #1574
The anvil-e2e-journeys job's timeout-justification comment (.github/workflows/ci.yml, the block above timeout-minutes) carries a hand-maintained inventory of every gated journey and its OVERALL_TIMEOUT, used to derive the balanced 2-thread schedule the job timeout is sized against. It is stale for the third time — the comment itself notes it has already gone stale twice.
Claimed: "20 tests across 17 files whose per-test OVERALL_TIMEOUT ceilings sum to 269m".
Actual on main:
15 files in crates/e2e/tests/, 25#[tokio::test] functions.
Named but nonexistent: cli_fetch_manifest, and all three G-NODE-08 entries (authorized-origin / namespace-scope / revocation) — no such test file exists.
Present but unlisted: cli_bundle_pull_channel_id, origin_stream_while_store.
Because the 160m timeout-minutes is derived from this sum, a wrong inventory means the bound is no longer known to clear the real balanced schedule — the exact failure the comment's own ordering argument depends on.
Suggested fix: recompute the sum from the real inventory and either correct the list, or replace the enumeration with a scripted check (sum the OVERALL_TIMEOUT constants at CI time and fail if the derived bound exceeds timeout-minutes) so it cannot rot a fourth time.
The hand-maintained inventory comment in the anvil-e2e-journeys CI job is stale for the third time: it claims 20 tests across 17 files with OVERALL_TIMEOUT sum of 269 m, but crates/e2e/tests/ now has 15 files and 25 #[tokio::test] functions. Four named tests don't exist (cli_fetch_manifest, three G-NODE-08 entries), and two real tests are unlisted (cli_bundle_pull_channel_id, origin_stream_while_store). The 160 m timeout-minutes ceiling is derived from the stale sum, so the safety margin is unknown.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Concrete maintenance fix with clear before/after; not a runtime bug or new feature
Requirements are precise: recount the inventory, correct the comment, optionally add a scripted check; scope is limited to .github/workflows/ci.yml and crates/e2e/tests/
💡 Notes and suggestions
Minimal fix (correct the comment):
ls crates/e2e/tests/*.rs | wc -l → update the file count.
grep -r '#\[tokio::test\]' crates/e2e/tests/ | wc -l → update the test count.
Re-sum the OVERALL_TIMEOUT constants from each test file; replace the 269 m figure.
Verify the derived 2-thread schedule still clears timeout-minutes: 160.
Robust fix (scripted check, as suggested in the issue):
Add a CI step that greps all OVERALL_TIMEOUT values, sums them, divides by 2 (balanced threads), adds a buffer, and exit 1 if the result exceeds the configured bound.
This eliminates the comment entirely; the bound becomes self-documenting and can't go stale.
Sub-tasks:
Recount files and tests on main
Recompute OVERALL_TIMEOUT sum
Update or replace the inventory comment in ci.yml
(Optional) Add scripted timeout-bound check to prevent future drift
Referenced PR: #1569 (where the discrepancy was noticed).
Generated by Agentic Triage for #1574 · sonnet46 · 19.7 AIC · ⌖ 4.35 AIC · ⊞ 6K · ◷
Add this agentic workflow to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
Partially fixed in #1569 (commit 3851eda): the inventory is corrected to 25 tests across 15 files summing to 298m, and timeout-minutes is raised 160 → 175 because the corrected sum puts the balanced 2-thread ceiling at ~149m — leaving the old bound only ~11m for the bin build, the workspace compile and the forge deploys the comment's own rule says it must also clear.
The rot itself is not fixed. Re-scoping this issue to the durable part: derive the bound instead of hand-maintaining it. A small CI step (or a test) that sums the OVERALL_TIMEOUT constants across crates/e2e/tests/*.rs, weighted by #[tokio::test] count per file, and fails when ceil(sum / test-threads) + compile-headroom > timeout-minutes would make a fourth drift impossible. The manual list has now gone stale three times.
Activity
github-actions commentedon Aug 1, 2026
🎯 Triage report
The hand-maintained inventory comment in the
anvil-e2e-journeysCI job is stale for the third time: it claims 20 tests across 17 files withOVERALL_TIMEOUTsum of 269 m, butcrates/e2e/tests/now has 15 files and 25#[tokio::test]functions. Four named tests don't exist (cli_fetch_manifest, threeG-NODE-08entries), and two real tests are unlisted (cli_bundle_pull_channel_id,origin_stream_while_store). The 160 mtimeout-minutesceiling is derived from the stale sum, so the safety margin is unknown.📊 Assessment
technical,medium,github_actions,testing).github/workflows/ci.ymlandcrates/e2e/tests/💡 Notes and suggestions
Minimal fix (correct the comment):
ls crates/e2e/tests/*.rs | wc -l→ update the file count.grep -r '#\[tokio::test\]' crates/e2e/tests/ | wc -l→ update the test count.OVERALL_TIMEOUTconstants from each test file; replace the 269 m figure.timeout-minutes: 160.Robust fix (scripted check, as suggested in the issue):
greps allOVERALL_TIMEOUTvalues, sums them, divides by 2 (balanced threads), adds a buffer, andexit 1if the result exceeds the configured bound.Sub-tasks:
mainOVERALL_TIMEOUTsumci.ymlReferenced PR: #1569 (where the discrepancy was noticed).
Add this agentic workflow to your repo
To install this agentic workflow, run
ci(journeys): correct the timeout inventory; document CI's full clipp…
yigitdot commentedon Aug 1, 2026
Partially fixed in #1569 (commit 3851eda): the inventory is corrected to 25 tests across 15 files summing to 298m, and
timeout-minutesis raised 160 → 175 because the corrected sum puts the balanced 2-thread ceiling at ~149m — leaving the old bound only ~11m for the bin build, the workspace compile and the forge deploys the comment's own rule says it must also clear.The rot itself is not fixed. Re-scoping this issue to the durable part: derive the bound instead of hand-maintaining it. A small CI step (or a test) that sums the
OVERALL_TIMEOUTconstants acrosscrates/e2e/tests/*.rs, weighted by#[tokio::test]count per file, and fails whenceil(sum / test-threads) + compile-headroom > timeout-minuteswould make a fourth drift impossible. The manual list has now gone stale three times.ci(clippy): lint the anvil-e2e-gated targets and fix their violations (…