Repository navigation
ci: raise the go test timeout to 40m (dash takes 1140 s of 1200 s) - #1082
Merged
Merged
Conversation
The dash package took 1140 s of the 1200 s limit on the last green CI run. Three open PRs now fail with "test timed out after 20m0s". Raise -timeout from 20m to 40m in the test and cover targets. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 0612436c8467 |
approve |
Verdict: approve
Findings
None.
Non-blocking
- Makefile:47 — the raise treats the symptom, not the cause. Dash reached 1140 s on a 2-core CI runner. The repo's own notes put
./dash/...at about 6 minutes with-raceon the eval box. Nothing in the PR or an issue asks why CI is 3x slower, or whether a new test caused it. If the trend continues, 40m fails the same way. Suggestion: open an issue that records the 1140 s run and owns the follow-up. - scripts/release/part-a.sh:59 — dash keeps its own 25m limit. The release script and RELEASING.md:193 run
./dash/...with-timeout 25mon the eval box, where dash takes about 6 minutes. That path is safe today. It is worth a look if the CI slowdown ever shows up on the box too. - The
recordCI job (ci.yaml:165) runsgo test -racewith no-timeout, so it keeps the 10-minute default. It does not run dash, so it is not at risk from this change. Noted only for completeness.
What I checked
- Read the full diff (Makefile only:
testandcovergo from-timeout 20mto-timeout 40m, plus one comment line). - Read
CLAUDE.mdanddocs/design.mdfor the repo rules. This change touches no library or proxy code, so the fail-open, reversibility, and data-dependence rules do not apply. - Confirmed the failing CI path is
make cover, called by thebuild-testjob in.github/workflows/ci.yaml:41. Both changed Makefile targets cover it. - Confirmed
-timeoutingo test ./...bounds each package test binary, not the whole run. One slow package (dash, 1140 s) hitting the per-package limit is exactly what this change fixes. - Confirmed the
build-testjob sets notimeout-minutes, so the GitHub default (360 minutes) leaves room for a 40-minute test step. - Searched the repo for every other
go test -timeoutinvocation:scripts/release/part-a.sh, thepuregoandrecordCI jobs, and two long-run test comments. None of them runs dash except part-a.sh (25m, eval box, ~6 min actual — safe). - Checked the commit message against the repo rules: conventional title,
Signed-off-bypresent,Assisted-Byform correct. - Live tests were not approved, so I read the code only.
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 0612436c8467 |
approve |
Verdict: approve
Findings
None. The change is correct and complete for what it claims.
Non-blocking
.github/workflows/ci.yaml:137and.github/workflows/ci.yaml:165— directgo testcalls keep go's default 10 m per-package timeout. This PR fixes only themake testandmake covertargets. Thepuregojob runsgo test -p 1 ./config/... ./components/... ...and therecordjob runsgo test -race -tags cg_record -p 1 ./proxy/... ..., both with no-timeout. If CI keeps slowing down, those jobs hit the same wall. Consider-timeoutthere too, or one shared flag.- Follow-up issue for
dashslowness. The PR proposes it but does not link one. 1140 s for one package under-coverpkg=./...is close to half the new limit already. File the issue so the limit raise does not become the permanent answer. Makefile:44— the comment cites a date but no CI run link. A link to the run that measured 1140 s would let a future reader check the number.
What I checked
- The full diff:
Makefileonly, 3 lines.-timeout 20mbecomes-timeout 40mintestandcover. A comment records the measurement. make -n testandmake -n coverboth print-timeout 40m. The claim in "How it was tested" holds.go test -timeoutis per test binary, not per run. So each package now gets 40 m. The GitHub job limit is 6 h (notimeout-minutesonbuild-test), so the raise cannot hit the job limit first.make coveris the only CI path through these targets (ci.yaml:41). The other jobs callgo testdirectly and are unchanged by this PR.dash/zz_perf_test.go:58definesTestOverviewStaysFastOnALargeWindow, the test named in the PR body.- No stale doc mentions of the old 20 m limit.
CONTRIBUTING.mdanddocs/setup.mdnamemake testwithout a timeout figure. - Repo rules: no library or proxy code touched, so fail-open and reversibility do not apply. The PR states "Data dependence: none", which is right for a Makefile change. No user-facing behavior changes, so no human sign-off is needed under the behavior-change rule.
- Live tests were not approved, so I did not run the suite or re-measure the 1140 s figure. I checked it against the PR body and the code only.
This was referenced Nov 11, 2026
amiddavid
pushed a commit
that referenced
this pull request
Nov 11, 2026
The savings accountant moves off the request path. accBegin and accEnd parsed and hashed the request body on the request goroutine, and the request went upstream only after them: on a 670 KB body (24 tool results) 5.7 ms idle and 26 ms mean under load. - accBegin only notes the meta and the client body. - accEnd starts one goroutine that opens and ends the record, with a private capture, so it shares no field with the request goroutine. - finish calls accWait before it prices the request, so a row is complete when it is priced. The wait has its own timing span for the #1054 latency guard. - A panic in the job is recovered and logged; the row is stored with no saving. The accountant library is not changed. Behavior change: every proxy user with the dashboard on. Old: the accountant work ran before the upstream call. New: it runs in the background while the request goes upstream, and finish waits for it after the response. How to turn it off: no switch. Owner's yes, 2026-11-11, in the integrator session: "1073 yes and it is the most critical PR of the release atm." Data dependence: none changed. Closes #1059. Reviews: 2 offload reviews (GLM), round 4, both approve at dc8a940, which is the PR head. After it, main got only #1082 (Makefile), which the PR does not touch. Signed-off-by: DAVID BOAZ <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
amiddavid
added a commit
that referenced
this pull request
Nov 16, 2026
…st (#1180) Give the record race tests and the other ./proxy/... and ./... go test steps in ci.yaml and release.yaml a 40-minute limit, as #1082 did for build-test in the Makefile. The record step had no -timeout, so Go's default of 10 minutes applied; the proxy package took about 9.9 minutes and then timed out on main (ea73ea7: "panic: test timed out after 10m0s"). With the fix, record takes about 13.5 minutes. Behavior change: none (CI and the release workflow only). Data dependence: none. Reviews: 1 offload review round (Bob backend, GLM did not answer): both approve at d0e8ee2, which is the PR head. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]>
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.
Summary
build-testtimes out in thedashpackage.go testtimeout from 20m to 40m.What we found
make coverrunsgo test -race -timeout 20m.dashtook 1140 s of the 1200 s limit.components/offloadtook 955 s.proxytook 831 s.panic: test timed out after 20m0s.TestOverviewStaysFastOnALargeWindow, is not slow. It had run 7 s to 32 s. The whole package passed the limit..github/workflows/ci.yamlhas notimeout-minutesonbuild-test. GitHub's default is 6 hours.What changed
Makefile:-timeout 20mbecomes-timeout 40min thetestandcovertargets.How it was tested
make -n test covershows-timeout 40min both commands.Follow-up
dashpackage is close to the old limit. Propose a follow-up issue to speed it up or split it.