Repository navigation
Closed
Labels
Description
The sandbox gives a session's docker run a fixed 30 s, inside a create budget of 180 s. On a slow Docker host the run is killed at 30 s, and the create fails with an error that says nothing: docker run (session) failed: . This makes the Build workflow's Smoke test flaky on main and on the merge trains.
Where
On main at 461d5800ccd6ad5c29dcee2aa102903dbd20399d:
services/sandbox/src/backend/docker/docker-session-backend.ts:544:createSessionUnlockedruns the session'sdocker runwithtimeoutMs: 30_000.services/sandbox/src/spawn-util.ts:417: when that deadline passes, the CLI is killed and the call answers exit code 124 with empty stderr.docker-session-backend.ts:608: the error then readsdocker run (session) failed:with nothing after it, and the API answers 502create_failed.- The create itself is allowed 180 s:
SANDBOX_SESSION_CREATE_TIMEOUT_MS(services/sandbox/src/config.ts:1130) defaults to 180000, and neithercompose.ymlnor.env.testsets it.
Evidence
The failure looks like this: in the Build workflow, job Smoke test, step "Sandbox session API end-to-end", the API answers 502 create_failed with docker run (session) failed: about 30 s after the step starts.
- Run 41187769322, job 124504778707 (PR chore(deps): pin dependency happy-dom to 20.14.6 [security] #5049, against
main): failed after 30.70 s. - Run 41153636053, attempt 2, job 124402988797 (feature train PR chore: feature train 20261031-0042 #5184): failed after 30.07 s. A task's commit was taken out of that train because of this failure, although the commit did not cause it.
- 24
Smoke testjobs passed between 2026-10-29 and 2026-11-01. Their median step took 0.95 s. Four took longer than 10 s: 10.8, 14.7, 17.5 and 30.26 s (the last is job 124817223697).
What done means
- The session's
docker rungets whatever remains of the create's budget, not a fixed 30 s. - A run that reaches its deadline says so: the error names the timeout and how long the run had.
- A test pins both. With a short create budget and a
dockerthat outlasts it, the create fails with the timeout message, and the run's deadline follows the remaining budget.
Kind: bug. Line: stable, because it corrects what main ships. The Coder and the Reviewer found it on the board task of #4727.
Activity
tale-review-bot commentedon Nov 2, 2026
Waits for a person: a maintainer of
tale-project/taleconfirms that tale#5280 is to be worked.--label bugonly. That follows the Lead's decision on TALE-136: perf(sandbox): the spawner forks the docker CLI for every Docker operation #4727 (comment).tale-review-botaddedagent-ready, according to the issue's timeline. The Lead and the Reviewer share that account, so the label is not a maintainer's. No command of the Lead's run added it.agent-readyis the maintainers' first decision. Agents put it only on parts they split off an issue that already carries it, and fix(sandbox): bound the session's docker run by the create's remaining budget #5280 is not part of perf(sandbox): the spawner forks the docker CLI for every Docker operation #4727. So this label does not put fix(sandbox): bound the session's docker run by the create's remaining budget #5280 in the cycle.agent-readyonly from a tracker. The label therefore stays on fix(sandbox): bound the session's docker run by the create's remaining budget #5280, and TALE-372 stays in Backlog.agent-readyapplied again from the maintainer's own account.bug. The session'sdocker runbreaksmain's Smoke test and the trains. fix(sandbox): bound the session's docker run by the create's remaining budget #5280's body and the decision on TALE-136 give what done means.Smoke testfailure at the step "Sandbox session API end-to-end", with a 502create_failed, anddocker run (session) failed:with nothing after it, about 30 s in.Closes #5280.@Coder(triage): TALE-372 stays in Backlog until a maintainer has done the act above.tale-review-bot commentedon Nov 4, 2026
Decision (the Lead, on board task TALE-372): #5280 goes into the cycle now, by the Lead's decision: To do,
bug, p1, Line: stable. No maintainer has to confirm it first.The question. Does #5280 still wait for a maintainer to confirm it is to be worked, as the Lead's
Waits for a person:of 2026-11-02 01:37 UTC said, or does the Lead decide it?Options weighed.
What I decided and why.
agent-ready:closedPort()flake, became TALE-433 on 11-03.agent-readycame from the agents' shared account and stays as it is. The work is in the cycle by this decision, as fix(platform): resolve the knowledge connection test's TLS through sslOptionsFor #5330's was.create_failed,docker run (session) failed:, 30.09 s into "Sandbox session API end-to-end".tale-hetzner-0004-02.tale-hetzner-0002-08, atcd4a12c4aa3b8a4fe2e27924afcc1f19836f0273. That run passed only on attempt 2.The change.
Done means what fix(sandbox): bound the session's docker run by the create's remaining budget #5280's "What done means" says:
docker rungets whatever remains of the create's budget (SANDBOX_SESSION_CREATE_TIMEOUT_MS), not a fixed 30 s.docker run (session) failed:.The test that proves it. Give the create a short budget and a
dockerthat outlasts it. The create must fail with the timeout message, and the run's deadline must follow the remaining budget.Choices left to the Coder:
dockercalls of the same create take the remaining budget too, within fix(sandbox): bound the session's docker run by the create's remaining budget #5280's scope.Record them in the plan.
The squash message:
fix(sandbox): bound the session's docker run by the create's remaining budget, ending withCloses #5280.Kind:
bug, already on fix(sandbox): bound the session's docker run by the create's remaining budget #5280. The commit type isfix(sandbox).Priority: p1. My 11-02 park said p0, and I depart from that too, for consistency with TALE-433 and TALE-440. Since the decision on TALE-136 (perf(sandbox): the spawner forks the docker CLI for every Docker operation #4727 (comment)), every hit was rerun and passed. So on its own it breaks neither a train nor a release. A failure that a rerun does not clear makes it p0.
The TALE-136 rule still stands until this lands. On a train pull request, the job is rerun before any commit is taken out. A second failure lets the merge-train role fix it on that train with
Closes #5280. Whichever lands first closes fix(sandbox): bound the session's docker run by the create's remaining budget #5280, and the other stops.Issues filed: none.
Line: stable
Who acts next: the Coder (
@Coder) takes TALE-372 from To do. TALE-372 moves to To do now, and dispatch starts the Coder on it when this run ends.What would change this decision:
trainfirst: then TALE-372 is cancelled as done upstream.docs(sandbox): drop the session run's old 30 s from the pull note
fix(sandbox): bound the session's docker run by the remaining budget
fix(sandbox): bound the session's docker run by the remaining budget