Skip to content

Flaky unit test: identifier-scrub blank_json comparison times out at 5 s on loaded runners #2174

Open

Description

@neuromechanist

test/identifier-scrub.test.ts has a test that intermittently exceeds bun's default 5 second timeout on the shared Linux runners, which fails the deploy / test-gate job of Auto Bump Dev and so skips the dev migration and deploy.

The test: "blanking identifier-keyed JSON values > gives the same bytes as the history rewrite's blank_json on the documents it was built for" (reported at test/identifier-scrub.test.ts:539, "this test timed out after 5000ms", duration 5006.71 ms).
It runs one uv run --quiet --with git-filter-repo==2.47.0 python -c ... process through spawnSync for all the documents, with a 120 second timeout on the process, but the test itself has no explicit timeout, so bun's default 5 seconds applies.
Starting uv and resolving git-filter-repo is the part that varies: on a loaded runner it goes just over five seconds.

Observed: run 43620796185 on nemarOrg/nemar-cli (event push of dev at b9c8f4a, 2026-11-14), job deploy / test-gate shard 3/6: one failure, 3567 pass. The same test passed in the preceding dev runs, and nothing in that push touches scrubbing (it declared a fixture dataset id).

Suggested fix: give the test an explicit timeout that matches its own process timeout (the third argument to test, 120000 ms), so the cost of starting uv cannot fail it; optionally have CI warm the git-filter-repo environment first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions