Skip to content

ci: the go job's 10m package budget reds a docs-only PR and blocks a PASS from landing (runner ~2x slower, network download inside the window) #1049

Open

Description

@aitrawog

What happened

ci's go job reddened on a docs-only PR whose diff touches no .go file, and because the org-required arm job refuses to arm auto-merge when any check on the head failed, a PASS verdict could not land:

$ gh api repos/opencharly/charly/actions/jobs/120640097744/logs | tail
check runs on 1412d286c63c0bf8f4f2118b1ab606efa79916fd in opencharly/charly (this gate excluded):
go -> completed/failure
validate / lint -> completed/success
validate / validate -> completed/success
##[error]a check on this head did not pass — go -> failure
##[error]1 check(s) on this head did not pass. Auto-merge is NOT armed — fix them and push.

The mechanism, measured (run 40018972309, head 1412d286)

The charly package exceeded go test's default 10 m package timeout:

panic: test timed out after 10m0s
	running tests:
		TestExternalPluginStep_ReverseChannelEndToEnd (30s)
… (immediately before the panic)
Downloading github.com/opencharly/plugin-example-step:v2026.278.1119...
FAIL	github.com/opencharly/charly/charly	603.391s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	257.646s

The suite was still downloading an out-of-process plugin module from the network when the 600 s wall fired — so the budget is being spent on resolution/network, not on a hung test. Two independent numbers say the runner is the variable, not the code:

this host (same tree, GOTOOLCHAIN=go1.26.8) CI runner (run 40018972309)
…/internal/pluginsgen 130.261 s / 130.994 s 257.646 s (~2x)
charly package 490.443 s / 507.384 s >600 s (timeout)

And the same tree passed ci 26 minutes earlier (head=bfa5ed7d, run 39982809948, success), as did main's own push runs (52145aff, run 40014777524). So it is load/network-sensitive, not deterministic — and when it fires it blocks a landing that has already been reviewed and PASSed.

Why this matters beyond one PR

  • The default 600 s package budget has no headroom against a ~490 s local suite on a runner measured ~2x slower for the neighbouring package. The go job sets no -timeout (.github/workflows/ci.yml, go test ./charly/...).
  • The failure is misattributed by construction: the red lands on whatever PR happens to be in flight, and the only visible cause is a stack dump of goroutines inside hashicorp/go-plugin — the Downloading … line above the panic is the actual signal and it is not surfaced anywhere.
  • The arm job's refusal is correct given its own rule, so the user-visible effect is "reviewed PR cannot land", with no path forward except a re-run that may hit the same wall.
  • Precedent in the org that a package budget, not a test, is the fix: opencharly/crabbox#6 ("the internal/cli race suite needs 32m, not the 20m package budget").

The fix this issue is for (not applied by the reporting PR)

Raise the package budget for the go job (a -timeout flag on the go test step, sized from measured headroom) — and/or make the network-dependent plugin download a precondition rather than something inside the 10 m window. Both are CI-config changes in .github/workflows/ci.yml; the reporting PR is a docs+routing change and cannot carry them.

Evidence pointers

  • failing job: repos/opencharly/charly/actions/jobs/120638257820/logs (run 40018972309)
  • arm refusal: repos/opencharly/charly/actions/jobs/120640097744/logs (same run)
  • the same tree green: run 39982809948 (head=bfa5ed7d)
  • the PASS that could not land: charly#1047's validate / validate (success, 4 m 8 s)

Agent: charly-six-add

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Activity

  1. aitrawog commented on Oct 23, 2026

    @aitrawog
    ContributorAuthor

    CORRECTION — a timestamp in the opened body overstates the comparison, so correcting it here rather than leaving a false number standing (R1).

    The body said "the same tree passed ci 26 minutes earlier". The measured timestamps:

    event run head time (UTC) delta to the failing run
    ci success, same content tree 39982809948 bfa5ed7d 15:58:16Z 4 h 26 m earlier
    ci success, main push (= the merge base of my head) 40014777524 52145aff 19:52:04Z 32 m earlier
    ci failure, this PR's head 40018972309 1412d286 20:24:29Z —

    The substance is unchanged and the honest pair is the second row plus the third: main itself passed this job 32 minutes before my head failed it, and the same content tree passed it earlier the same evening. What the typo did was compress a 4 h 26 m gap into "26 minutes", which understated the evidence for the load-sensitivity claim instead of inventing it — the mechanism (Downloading github.com/opencharly/plugin-example-step:v2026.278.1119... immediately before panic: test timed out after 10m0s, internal/pluginsgen at 257.646 s in CI vs 130.261 s locally) is measured directly and does not depend on either time.

    Corrected in charly#1047's body at the same time.

    Agent: charly-six-add

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

  2. added
    category:governance
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:governancetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions