You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: Artifact-Canvas Browser Tests hangs indefinitely (intermittent) — blocks every merge and leaves main's Tests run unconcluded #1502
The Artifact-Canvas Browser Tests job in the Tests workflow intermittently hangs indefinitely
instead of completing or failing. Every sibling job in the same run finishes normally, so the run
never reaches a conclusion and the PR's check set never becomes complete.
Observed 2026-08-18, three concurrent instances on unrelated branches:
Baseline for the same job is ~1m09s (e.g. the run on PR #1421). So these are hangs, not slow
runs.
In every hung run, the other four jobs (Unit Tests, CLI Integration Tests, Tower Integration Tests, Package Install Verification) completed success within ~1–2.5 minutes.
Not a straightforward concurrency-contention story: two near-simultaneous air-1474 runs at
02:46:36 and 02:46:40 both completed successfully, while runs starting ~30 seconds later hung.
Impact
It blocks merges. Branch protection plus the standing admin-bypass envelope require the full
check set green on a stationary head. A permanently-pending job means the set is never complete,
so a correctly-verified merge is impossible without either waiting out a hang that may never end
or lowering the bar to "six of seven", which defeats the envelope.
It is release-blocking in effect. A release cut cannot be verified green while a required check
hangs intermittently.
What to investigate
Whether the browser/harness process fails to exit (a held handle, an un-awaited server, a browser
instance not torn down) rather than the tests themselves hanging.
Whether the job has any timeout. A hung job that runs for 2.5 hours suggests either no timeout-minutes on the job or one set far too high. A tight timeout would convert this from a
silent stall into a visible failure, which is the minimum acceptable behaviour even before the root
cause is found.
Whether it correlates with runner cold-start or browser download.
Acceptance criteria
Root cause identified for the non-termination.
The job carries a timeout-minutes bound proportionate to its ~1m09s baseline, so a stall
fails visibly instead of pending forever.
No indefinite in_progress jobs observed across a sustained run of the suite.
Root-cause location identified: it is not the tests. The job hangs before they start.
Queried the job steps on both hung runs. In each, the stalled step is Install Playwright Chromium (.github/workflows/test.yml:134-136, pnpm exec playwright install --with-deps chromium), and Run artifact-canvas browser tests is still pending — it never begins.
Everything before it is fast: checkout, pnpm, Node setup and pnpm install all complete within ~15 seconds.
Why it presents as hours rather than a failure: there is no timeout-minutes on any job in test.yml (grepped; zero occurrences). GitHub's default job timeout is 6 hours, so a stalled step sits pending for hours instead of failing fast. That is why main's run has been unconcluded since 00:37Z and reads as "still running" rather than "broken".
Cause inside the step is not yet verified — in-progress jobs return BlobNotFound for logs, so the apt/download output is not retrievable until the job ends. Candidates, in order of likelihood for --with-deps on a GitHub Ubuntu runner: contention on the dpkg/apt lock with the runner's background unattended-upgrades; an apt prompt blocking on absent stdin; or a stalled browser/CDN download. Grabbing the log from a hung run after it finally times out would settle it.
Fixes worth considering, in increasing order of ambition:
timeout-minutes on the job — against a ~1m09s baseline, something like 10 is generous. This does not fix the hang but converts a silent multi-hour stall into a visible failure, which is the property that actually blocks merges today.
Cache ~/.cache/ms-playwright keyed on the Playwright version, so the browser download leaves the common path entirely.
Reconsider --with-deps. ubuntu-latest already carries most Chromium system libraries; if the apt phase is the staller, dropping it (or running it with DEBIAN_FRONTEND=noninteractive) removes the stall's source rather than bounding it.
(1) is the one that unblocks merging, and is independent of diagnosing the rest.
Same workflow, same job, same step. One head completes in four minutes; two others never finish.
Three consequences worth recording:
An intermittent hang at a fixed step is a stronger signal than a consistent one. It points at the step rather than at the suite — the tests are identical across all three runs and two never reach them.
It is self-concealing. Because a rerun often succeeds, the rational local response is to rerun and move on, which is precisely what prevents the failure from being reported. A consistent hang would have been filed the first day.
The ~1m09s figure quoted earlier is not the baseline — a healthy run of this job ranges to at least 3m58s. That widens the band in which "slow" and "hung" are indistinguishable by eye, which is the argument for a timeout-minutes bound rather than operator judgement. Without one, the only way to tell them apart is to query the job's step state and elapsed time, which nobody does by default.
Recorded after two opposite misreadings of the same data in the same minute: IN_PROGRESS read as "hung", then one clean run read as "nothing is hung". Both were settled by one query of the other runs' durations. A bounded timeout removes the need to make that judgement at all.
No --with-deps. Same ubuntu-latest image, and the workflow then launches Chromium for Playwright tests. It has completed success on main for five consecutive scheduled runs (2026-08-13 through 2026-08-17).
So Chromium's system libraries are already present on the runner image, and the apt-get update that --with-deps triggers in test.yml:136 buys nothing. Since that apt index-fetch is the confirmed stall, removing the flag removes the cause rather than bounding it.
Both changes belong in the fix, not one or the other:
Drop --with-deps — removes this failure mode entirely.
Keep the timeout-minutes bounds — the backstop for any future stall in any job. The durable lesson from this issue is not "apt can hang" but "an unbounded job conceals its own failure", and that is unaddressed by fixing one step.
Caveat, to be settled by CI rather than argument: dashboard-e2e exercises the dashboard while this job exercises canvas rendering. Same browser and image, so the evidence transfers, but if canvas rendering needs a library the dashboard path does not, it will surface as a launch failure on the PR's own run. That is a cheap verification and a genuinely useful result either way.
Also noted: the sibling workflow runs playwright test --retries 3; this job has no retry. Worth arguing separately rather than copying by reflex.
Recording how this was missed, since it is the more useful part: the removal of --with-deps was treated as speculative and gated behind "verify it still launches in CI first". The verification already existed in a sibling workflow in the same directory. Checking for existing work before classifying something as unknown would have found it immediately.
Root cause removed at source: --with-deps dropped from the Install Playwright Chromium step, eliminating the apt-get update whose archive.ubuntu.com index fetch was the confirmed stall. The runner image already carries Chromium's system libraries — established by dashboard-e2e.yml, which installs the same way and is green on 10 of its last 10 runs.
Verified twice on the PR, against ~4 minutes with the flag and two runs that night which never finished at all:
Head
Canvas job
913035b37
success, 40s
dd1a7e952 (main merged in)
success, 55s
The apt phase was roughly 85% of the job's runtime and 100% of its failure surface.
Timeout bounds kept deliberately, not as redundancy. Removing the flag fixes this stall; timeout-minutes on every job in test.yml is what stops the next unbounded job concealing its own failure for hours. That is the durable lesson here — an unbounded stall is a monitoring gap rather than a latency problem, which is why main sat with no Tests conclusion for three hours while reading as healthy.
Two regression guards ship with it: a test asserting every job carries a bound below GitHub's 360-minute default, and an assertion pinning the absence of --with-deps so a well-meaning re-addition fails the suite instead of silently restoring a multi-hour stall.
--retries was considered and argued down rather than copied from the sibling workflow: Playwright's --retries retries tests, and this failure was in the install step, which no test-level retry can reach.
Follow-up #1509 covers the remaining workflow files, which are still unbounded.
Activity
amrmelsayed commentedon Aug 18, 2026
Root-cause location identified: it is not the tests. The job hangs before they start.
Queried the job steps on both hung runs. In each, the stalled step is
Install Playwright Chromium(.github/workflows/test.yml:134-136,pnpm exec playwright install --with-deps chromium), andRun artifact-canvas browser testsis stillpending— it never begins.Install Playwright Chromiumstarted3208521648532093117702builder/pir-1497Everything before it is fast: checkout, pnpm, Node setup and
pnpm installall complete within ~15 seconds.Why it presents as hours rather than a failure: there is no
timeout-minuteson any job intest.yml(grepped; zero occurrences). GitHub's default job timeout is 6 hours, so a stalled step sits pending for hours instead of failing fast. That is why main's run has been unconcluded since 00:37Z and reads as "still running" rather than "broken".Cause inside the step is not yet verified — in-progress jobs return
BlobNotFoundfor logs, so the apt/download output is not retrievable until the job ends. Candidates, in order of likelihood for--with-depson a GitHub Ubuntu runner: contention on the dpkg/apt lock with the runner's backgroundunattended-upgrades; an apt prompt blocking on absent stdin; or a stalled browser/CDN download. Grabbing the log from a hung run after it finally times out would settle it.Fixes worth considering, in increasing order of ambition:
timeout-minuteson the job — against a ~1m09s baseline, something like 10 is generous. This does not fix the hang but converts a silent multi-hour stall into a visible failure, which is the property that actually blocks merges today.~/.cache/ms-playwrightkeyed on the Playwright version, so the browser download leaves the common path entirely.--with-deps.ubuntu-latestalready carries most Chromium system libraries; if the apt phase is the staller, dropping it (or running it withDEBIAN_FRONTEND=noninteractive) removes the stall's source rather than bounding it.(1) is the one that unblocks merging, and is independent of diagnosing the rest.
amrmelsayed commentedon Aug 18, 2026
The intermittence makes this worse, not doubtful — and explains why it has gone unreported.
Data from three runs of the same job tonight, all at the same step (
Install Playwright Chromium):32095039750builder/pir-149832093117702builder/pir-149732085216485Same workflow, same job, same step. One head completes in four minutes; two others never finish.
Three consequences worth recording:
timeout-minutesbound rather than operator judgement. Without one, the only way to tell them apart is to query the job's step state and elapsed time, which nobody does by default.Recorded after two opposite misreadings of the same data in the same minute:
IN_PROGRESSread as "hung", then one clean run read as "nothing is hung". Both were settled by one query of the other runs' durations. A bounded timeout removes the need to make that judgement at all.amrmelsayed commentedon Aug 18, 2026
On it! Working on a fix now.
Fix #1502: bound test.yml jobs with timeout-minutes
[Bugfix #1502] Thread: CMAP APPROVE/APPROVE/COMMENT, at pr gate
[Bugfix #1502] Thread: integration APPROVE, holding for owner at pr gate
amrmelsayed commentedon Aug 18, 2026
A better fix than bounding it:
--with-depsis unnecessary on this runner, and the repo already proves it..github/workflows/dashboard-e2e.yml:42installs Chromium as:No
--with-deps. Sameubuntu-latestimage, and the workflow then launches Chromium for Playwright tests. It has completedsuccesson main for five consecutive scheduled runs (2026-08-13 through 2026-08-17).So Chromium's system libraries are already present on the runner image, and the
apt-get updatethat--with-depstriggers intest.yml:136buys nothing. Since that apt index-fetch is the confirmed stall, removing the flag removes the cause rather than bounding it.Both changes belong in the fix, not one or the other:
--with-deps— removes this failure mode entirely.timeout-minutesbounds — the backstop for any future stall in any job. The durable lesson from this issue is not "apt can hang" but "an unbounded job conceals its own failure", and that is unaddressed by fixing one step.Caveat, to be settled by CI rather than argument: dashboard-e2e exercises the dashboard while this job exercises canvas rendering. Same browser and image, so the evidence transfers, but if canvas rendering needs a library the dashboard path does not, it will surface as a launch failure on the PR's own run. That is a cheap verification and a genuinely useful result either way.
Also noted: the sibling workflow runs
playwright test --retries 3; this job has no retry. Worth arguing separately rather than copying by reflex.Recording how this was missed, since it is the more useful part: the removal of
--with-depswas treated as speculative and gated behind "verify it still launches in CI first". The verification already existed in a sibling workflow in the same directory. Checking for existing work before classifying something as unknown would have found it immediately.Fix #1502: drop --with-deps so the stalling apt phase is removed, not…
[Bugfix #1502] Thread: reopened, dropped --with-deps + kept timeout b…
Fix #1502: pin the --with-deps removal with a regression assertion
[Bugfix #1502] Thread: canvas CI green in 45s, codex REQUEST_CHANGES …
[Bugfix #1502] Thread: CMAP r3 all-APPROVE, merged main, re-at pr gate
Merge pull request #1507 from cluesmith/builder/bugfix-1502
amrmelsayed commentedon Aug 18, 2026
Fixed in PR #1507, merged as
ee548df21.Root cause removed at source:
--with-depsdropped from theInstall Playwright Chromiumstep, eliminating theapt-get updatewhosearchive.ubuntu.comindex fetch was the confirmed stall. The runner image already carries Chromium's system libraries — established bydashboard-e2e.yml, which installs the same way and is green on 10 of its last 10 runs.Verified twice on the PR, against ~4 minutes with the flag and two runs that night which never finished at all:
913035b37dd1a7e952(main merged in)The apt phase was roughly 85% of the job's runtime and 100% of its failure surface.
Timeout bounds kept deliberately, not as redundancy. Removing the flag fixes this stall;
timeout-minuteson every job intest.ymlis what stops the next unbounded job concealing its own failure for hours. That is the durable lesson here — an unbounded stall is a monitoring gap rather than a latency problem, which is why main sat with noTestsconclusion for three hours while reading as healthy.Two regression guards ship with it: a test asserting every job carries a bound below GitHub's 360-minute default, and an assertion pinning the absence of
--with-depsso a well-meaning re-addition fails the suite instead of silently restoring a multi-hour stall.--retrieswas considered and argued down rather than copied from the sibling workflow: Playwright's--retriesretries tests, and this failure was in the install step, which no test-level retry can reach.Follow-up #1509 covers the remaining workflow files, which are still unbounded.