Skip to content

fix(ci): keep dispatcher fixture exports aligned with runtime - #12131

Merged
morluto merged 2 commits into
morluto:mainfrom
ShuaixinHuang:fix/ci-dispatcher-cancellation-fixture
Nov 19, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
ShuaixinHuang:fix/ci-dispatcher-cancellation-fixture

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Restore the dispatcher regression that verifies an already-written stdout document cannot be followed by a recovery document.

Problem and fix

Main CI shard 135277879121 failed after #12074. The executable fixture replaced the complete CLI result-output entrypoint with a stub exporting only createCliResultOutput. The one-shot runtime now also calls cliOutputCancellationStatus in its catch path. The missing fixture export produced a TypeError that hid the expected formatting failure.

Declare both runtime exports in the centralized test stub. TypeScript checks its export names against the production module, so future export drift fails before the fixture runs. Each case can still control its output factory, and the one-shot dispatcher executes as built.

Validation performed

  • npm run compile from clean main 8062a14a3 succeeded. The unmodified fixture reproduced TypeError: cliOutputCancellationStatus is not a function in the failing case.
  • All 22 tests in the dispatcher boundary suite passed against the same compiled runtime with the final fixture.
  • npm run check:fast passed through the normal push hook.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

This PR repairs the dispatcher test fixture without changing production behavior.

  • Dispatcher tests now supply both output exports the runtime calls.

No actionable issues found. Tests were not rerun during this review.

Reviews (1) · Last reviewed commit: "test(cli): require complete output fixtu..." · Reviewed by Greptile

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 19, 2026 02:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T02:22:10.084149Z 3ef8a19 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto
morluto merged commit 3b81511 into morluto:main Nov 19, 2026
38 checks passed
2SinceJuly added a commit to 2SinceJuly/rea that referenced this pull request Nov 19, 2026
Resolves the dispatcher fixture stub conflict in favor of upstream morluto#12131, whose
fixtureResultOutput satisfies all exports of the runtime's result-output chunk.
The branch's own stub constant is dropped.
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants