Skip to content

🤖 tests: stabilize deep-research fanout test#3554

Merged
ThomasK33 merged 1 commit into
mainfrom
tests-deep-research-fanout-flake
Jun 15, 2026
Merged

🤖 tests: stabilize deep-research fanout test#3554
ThomasK33 merged 1 commit into
mainfrom
tests-deep-research-fanout-flake

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Stabilizes the deep-research capped fanout unit test by letting that heavy fanout fixture use the production WorkflowRunStore lease timing instead of the 100ms stale-lease setting used by retry-focused fixtures.

Background

The known flaky test built-in deep-research workflow › caps model-produced deep-research fan-out failed in merge-queue Unit runs with Timed out acquiring workflow mutation lock: .../events.jsonl.lock. I reproduced the same failure locally by pinning the targeted test to one CPU while running a same-core CPU hog; the short 100ms fixture lease renews every 50ms, which adds lock churn while the test is intentionally persisting many parallel workflow steps.

Implementation

The capped fanout test now constructs WorkflowRunStore with its default production lease settings, because the test is asserting source/claim fanout caps rather than stale-lease retry behavior. Its per-test timeout is raised to 30s to leave room for CPU-contention repro runs without changing normal runtime.

Validation

  • Reproduced the pre-fix failure with taskset -c 0 plus one same-core CPU hog: Timed out acquiring workflow mutation lock: .../events.jsonl.lock.
  • After the fix, the same targeted test passed under two same-core CPU hogs (~11.5s) and three same-core CPU hogs (~18.0s).
  • bun test src/node/services/workflows/builtInWorkflowDefinitions.test.ts -t "caps model-produced deep-research fan-out"
  • bun test src/node/services/workflows/builtInWorkflowDefinitions.test.ts
  • make static-check

Risks

Low product risk: this is test-only and avoids applying retry-fixture lease timing to a high-concurrency fanout assertion. The broader workflow runtime code is unchanged.


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh • Cost: $11.63

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 11ffa134ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33 ThomasK33 added this pull request to the merge queue Jun 15, 2026
Merged via the queue into main with commit 5bcdc0f Jun 15, 2026
24 checks passed
@ThomasK33 ThomasK33 deleted the tests-deep-research-fanout-flake branch June 15, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant