Skip to content

ci: raise the go test timeout to 40m (dash takes 1140 s of 1200 s) - #1082

Merged
amiddavid merged 1 commit into
mainfrom
ci/test-timeout-40m
Nov 11, 2026
Merged

amiddavid merged 1 commit into
mainfrom
ci/test-timeout-40m

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • CI build-test times out in the dash package.
  • This PR raises the go test timeout from 20m to 40m.
  • No behavior change: CI and local test limits only. Data dependence: none.

What we found

What changed

  • Makefile: -timeout 20m becomes -timeout 40m in the test and cover targets.
  • A comment gives the measured 1140 s.
  • No test is skipped, shortened or moved.

How it was tested

  • make -n test cover shows -timeout 40m in both commands.

Follow-up

  • The dash package is close to the old limit. Propose a follow-up issue to speed it up or split it.

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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -race on 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 25m on 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 record CI job (ci.yaml:165) runs go test -race with 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: test and cover go from -timeout 20m to -timeout 40m, plus one comment line).
  • Read CLAUDE.md and docs/design.md for 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 the build-test job in .github/workflows/ci.yaml:41. Both changed Makefile targets cover it.
  • Confirmed -timeout in go 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-test job sets no timeout-minutes, so the GitHub default (360 minutes) leaves room for a 40-minute test step.
  • Searched the repo for every other go test -timeout invocation: scripts/release/part-a.sh, the purego and record CI 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-by present, Assisted-By form correct.
  • Live tests were not approved, so I read the code only.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:137 and .github/workflows/ci.yaml:165 — direct go test calls keep go's default 10 m per-package timeout. This PR fixes only the make test and make cover targets. The purego job runs go test -p 1 ./config/... ./components/... ... and the record job runs go test -race -tags cg_record -p 1 ./proxy/... ..., both with no -timeout. If CI keeps slowing down, those jobs hit the same wall. Consider -timeout there too, or one shared flag.
  • Follow-up issue for dash slowness. 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: Makefile only, 3 lines. -timeout 20m becomes -timeout 40m in test and cover. A comment records the measurement.
  • make -n test and make -n cover both print -timeout 40m. The claim in "How it was tested" holds.
  • go test -timeout is per test binary, not per run. So each package now gets 40 m. The GitHub job limit is 6 h (no timeout-minutes on build-test), so the raise cannot hit the job limit first.
  • make cover is the only CI path through these targets (ci.yaml:41). The other jobs call go test directly and are unchanged by this PR.
  • dash/zz_perf_test.go:58 defines TestOverviewStaysFastOnALargeWindow, the test named in the PR body.
  • No stale doc mentions of the old 20 m limit. CONTRIBUTING.md and docs/setup.md name make test without 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.

@amiddavid
amiddavid merged commit 3c876dc into main Nov 11, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant