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
Flaky frontend unit test: joint-ui.service per-port counts test times out on Windows CI #6073
The build / frontend (windows-latest) CI job failed on #6068 — a yarn.lock-only Dependabot bump that touches no runtime code — because one frontend unit test hit the 5s timeout. Expected: the test passes; it is fully synchronous (builds a mocked JointJS paper out of vi.fn() spies, calls changeOperatorStatistics(...) directly, and asserts on the spy calls), so there is no async work that could legitimately take 5 seconds. The timeout means the Windows runner stalled mid-test — a flake, not a regression. The identical commit passed on rerun with no changes.
frontend/src/app/workspace/service/joint-ui/joint-ui.service.spec.ts (writes per-port counts derived from inputPortMetrics and outputPortMetrics)
Outcome
1 failed / 1272 passed; rerun of the same commit passed
flaky windows test (5s stall)
│
▼
build / frontend (windows) fails
│ fail-fast
▼
ubuntu + macos jobs cancelled mid-run → whole matrix red
Possible follow-ups:
Bump vitest testTimeout (globally or Windows-only) to absorb runner stalls
Set fail-fast: false on the frontend matrix so one flaky OS doesn't cancel the other two
Collect further occurrences here if it re-fires
How to reproduce?
Not deterministically reproducible — this is a CI flake. It occurred on the frontend unit-test step (Run frontend unit tests) of the Required Checks workflow on windows-latest; rerunning the same commit passed. Watch for recurrences of the same test timing out on the Windows matrix leg.
WorkflowRuntimeStatisticsComponent > should create
Test timed out in 5000ms
Three different specs, so this confirms the original read: the runner stalls and the stall lands on whichever test happens to be executing. Numbers from run 31665399757 — one commit, one matrix:
Measure
ubuntu-latest
macos-latest
the spec file that failed (10 tests)
240 ms
11 727 ms
suite wall clock
89.85 s
252.88 s
cumulative test time
182.34 s
307.69 s
runner size
4 cores / 16 GB
3 cores / 7 GB
The same file took 219 ms on macOS in an earlier run and 443 ms locally, so it isn't systematically slow — the 11.7 s is the stall. jsdom + v8-coverage workers on 3 cores / 7 GB run under real memory pressure, which is the likely source of the multi-second pauses.
Both follow-ups listed above are now up in #7623 (30 s testTimeout/hookTimeout, and fail-fast: false on the frontend matrix so one flaky OS stops cancelling the other two legs). Leaving this issue open and assigned to @rbelavadi — the third suggestion, collecting occurrences, is what the table above is for, and capping maxWorkers on the macOS leg is still unexplored if the flake survives the timeout bump.
Activity
rbelavadi commentedon Jul 13, 2026
/take
aglinxinyuan commentedon Aug 13, 2026
It re-fired — three more times in the last four days, all on the macOS leg rather than Windows:
UserDatasetVersionCreatorComponent > onClickCreate creates a dataset with a sanitized name …Test timed out in 5000msAdminUserComponent > sortByAffiliation compares affiliations …Hook timed out in 10000msWorkflowRuntimeStatisticsComponent > should createTest timed out in 5000msThree different specs, so this confirms the original read: the runner stalls and the stall lands on whichever test happens to be executing. Numbers from run
31665399757— one commit, one matrix:The same file took 219 ms on macOS in an earlier run and 443 ms locally, so it isn't systematically slow — the 11.7 s is the stall. jsdom + v8-coverage workers on 3 cores / 7 GB run under real memory pressure, which is the likely source of the multi-second pauses.
Both follow-ups listed above are now up in #7623 (30 s
testTimeout/hookTimeout, andfail-fast: falseon the frontend matrix so one flaky OS stops cancelling the other two legs). Leaving this issue open and assigned to @rbelavadi — the third suggestion, collecting occurrences, is what the table above is for, and cappingmaxWorkerson the macOS leg is still unexplored if the flake survives the timeout bump.fix(test, frontend): defer the jsdom timeouts to apache#7717
fix(ci, test, frontend): stop the frontend matrix manufacturing false…