Skip to content

ci: anvil-e2e-journeys inventory comment is stale again (20/17 vs actual 25/15) #1574

Closed

Description

@yigitdot

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.

Found while reviewing #1569.

Activity

  1. added
    kind:test
    github_actions
    prio:medium
    on Aug 1, 2026
  2. github-actions commented on Aug 1, 2026

    @github-actions

    🎯 Triage report

    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
    Labels unchanged (technical, medium, github_actions, testing) All four existing labels are accurate
    Coding agent Suitable 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):

    1. ls crates/e2e/tests/*.rs | wc -l → update the file count.
    2. grep -r '#\[tokio::test\]' crates/e2e/tests/ | wc -l → update the test count.
    3. Re-sum the OVERALL_TIMEOUT constants from each test file; replace the 269 m figure.
    4. 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
    
  3. yigitdot commented on Aug 1, 2026

    @yigitdot
    ContributorAuthor

    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.

  4. self-assigned this
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

github_actionskind:testprio:medium

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions