Skip to content

fix(vis): tear down run services and report preflight errors - #30

Merged
prisis merged 3 commits into
mainfrom
fix/vis-review-fixes
Oct 17, 2026
Merged

prisis merged 3 commits into
mainfrom
fix/vis-review-fixes

Conversation

@prisis

@prisis prisis commented Oct 17, 2026

Copy link
Copy Markdown
Member

Summary

Two fixes from the review of the refactor, applied on top of current main. The refactor itself is already in main via #25, so this PR does not touch the module split.

  • Run teardown: services booted by a run are now torn down when setup fails or when the run is a dry run. Cleanup is installed right after services are wired, and finalize, dry-run, runtime setup and the run:before hook run inside the try/finally. Regression test: run-teardown-on-throw.test.ts, which fails on the previous handler.
  • Publish preflight: remote-provider and repo lookups in the release-PR check and the push-rule check record a _preflight failure instead of rejecting publishContext. Regression test: orchestrator-preflight-guard.test.ts, which fails on the previous preflight.

Behaviour change: a dry run now also runs teardown, and a failed remote lookup returns a failure result instead of throwing.

Testing

  • lint:types and check:schemas-drift pass.
  • Full suite: 73 failing, unchanged from the base run. One perf test is timing-sensitive under load: audit-offline fails in the full run and passes alone. The release-plan-perf test that failed in the base run passes here.

Needs manual check before merge

  • Ctrl+C during run setup: signal cleanup now starts earlier. Service cleanup runs, but Node may not exit. No test covers this.

🤖 Generated with Claude Code

prisis and others added 2 commits October 17, 2026 10:38
Cleanup was installed after the runtime was built and the run:before hook ran, so a failure there, or a dry run, left services booted by this run running. Install cleanup as soon as services are wired and keep the rest inside the try/finally.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Remote provider and repo detection in the release-PR check and the push-rule check could reject, so the publish preflight threw instead of returning a result. Record those errors as a _preflight failure and stop.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@github-actions github-actions Bot added package: vis vouch:trusted PR author is a collaborator, a bot or on the VOUCHED list. size:M Size of the change, tests and generated files excluded. labels Oct 17, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@visulima/vis@30
npm i https://pkg.pr.new/@visulima/vis-mcp@30

commit: 36f9628

@codspeed

codspeed Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 12 untouched benchmarks
⏩ 101 skipped benchmarks1


Comparing fix/vis-review-fixes (6d7abdb) with main (ccb03ee)2

Open in CodSpeed

Footnotes

  1. 101 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (27fe29c) during the generation of this report, so ccb03ee was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@prisis
prisis merged commit 80d5a91 into main Oct 17, 2026
15 of 16 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Great job, @prisis! You've merged your 11th PR! 🎊

Your contributions to vis are making a real difference. Keep up the fantastic work! 💪
Remember, every PR counts and helps improve the project. What will you tackle next? 🤔

@prisis is here if you need any guidance. Onward and upward! 🚀

prisis pushed a commit that referenced this pull request Oct 17, 2026
## @visulima/vis [6.1.3](https://github.com/visulima/vis/compare/@visulima/vis@6.1.2...@visulima/vis@6.1.3) (2026-10-17)

### Bug Fixes

* **vis:** tear down run services and report preflight errors ([#30](#30)) ([80d5a91](80d5a91))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: vis size:M Size of the change, tests and generated files excluded. vouch:trusted PR author is a collaborator, a bot or on the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant