Skip to content

Fix the reaped-run tracking spec that fails Fast tests on main - #8121

Closed
3mdistal wants to merge 1 commit into
mainfrom
core/fix-reaped-run-spec-mock
Closed

3mdistal wants to merge 1 commit into
mainfrom
core/fix-reaped-run-spec-mock

Conversation

@3mdistal

Copy link
Copy Markdown
Contributor

Fast tests lane-7 fails on main and on every PR based on it. One case in run-store.reaped-run-tracking.spec.ts throws:

[vitest] No "getScopedTransactionDbExec" export is defined on the "../db/client.js" mock.

This comes from two PRs that each passed CI on their own:

The failing case is "does not report a repair the run's own process makes of its own row".

This adds getScopedTransactionDbExec: () => undefined to the spec's mock. That's the value outside a scoped transaction, so the fence takes its normal path. Only the test changes, so no changeset is needed.

#8107 carries the same line as part of a larger Design change. The two edits are identical, so whichever lands second merges cleanly.

Validation: on a checkout containing both #7971 and #8086, the spec fails 1 of 16 without the line and passes 16 of 16 with it. It failed the same way on #8017's lane-7 twice.

🤖 Generated with Claude Code

…g spec

#8086 made withFencedExecutionWrite call getScopedTransactionDbExec, and
#7971 then landed a spec whose db/client mock doesn't export it. The
"does not report a repair the run's own process makes of its own row"
case now fails on main, and with it Fast tests lane-7 on every PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@builder-io-integration builder-io-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builder reviewed your changes — looks good ✅

Review Details

PR #8121 makes a one-line test-only update to the run-store.reaped-run-tracking Vitest mock by adding the missing getScopedTransactionDbExec export. This addresses the reported failure caused by the mock lagging behind the database client API after withFencedExecutionWrite began importing that helper. The explicit undefined value models the helper's runtime result outside a scoped transaction, so the tested write continues through the normal transaction path. The change is isolated and the approach is sound; independent reviews found no actionable correctness issues. Risk assessment: low, because this is a spec-only mock update with no production behavior change. 🧪 Browser testing: Skipped — PR only modifies a test, with no user-facing browser impact.

@3mdistal

Copy link
Copy Markdown
Contributor Author

Superseded by #8120, which landed the same one-line mock fix.

@3mdistal 3mdistal closed this Oct 23, 2026
@3mdistal
3mdistal deleted the core/fix-reaped-run-spec-mock branch October 23, 2026 16:49
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