Skip to content

Flaky frontend unit test: joint-ui.service per-port counts test times out on Windows CI #6073

Description

@aglinxinyuan

What happened?

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.

Failing run https://github.com/apache/texera/actions/runs/28620556420/job/84875025428
Test 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.

Version/Branch

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

a43c5b1 (head of #6068, base 24b587f on main)

What browsers are you seeing the problem on?

No response

Relevant log output

FAIL  gui  src/app/workspace/service/joint-ui/joint-ui.service.spec.ts > JointUIService > changeOperatorStatistics > writes per-port counts derived from inputPortMetrics and outputPortMetrics
Error: Test timed out in 5000ms.

Test Files  1 failed | 122 passed | 1 skipped (124)
     Tests  1 failed | 1272 passed | 2 skipped | 1 todo (1276)

NX  Running target test for project gui failed

Metadata

Metadata

Assignees

Labels

cichanges related to CIfrontendChanges related to the frontend GUItesting

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions