Repository navigation
fix: end the step once the action is done - #46
Merged
Merged
Conversation
The lingering-handle scenario finishes like a normal run and leaves a timer running, the way an SDK socket that was never closed would. The action writes its outputs and then never exits, so the check fails until the process is ended.
Nothing ended the Node process after the outputs and the job summary were written. A handle the SDK still held, such as the catalog request the action gives up on without aborting, kept the process alive and the step with it, up to the job's own timeout. An unreferenced timer now ends the process five seconds after the action is done. A process that exits on its own is not delayed, and the exit code is the one the run already set.
CI rebuilds dist and fails when it differs from the committed file.
🦋 Changeset detectedLatest commit: 1fda1cd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Without unref the timer would hold every run for five seconds and then end it, and no case would fail. The finished case now requires that the forced-exit line is absent from the log.
PunGrumpy
added a commit
that referenced
this pull request
Nov 29, 2026
Plans 002 to 006 came from a full audit at 8675298 and are merged as #42 to #46. Plan 007 collects the workflow-file edits that were cut from 003, 004 and 005 and is blocked on a token with the workflow scope. The index lists the findings that were vetted and not planned, and the ones that were rejected, so a later audit does not repeat them.
PunGrumpy
added a commit
that referenced
this pull request
Nov 29, 2026
Plans 002 to 006 came from a full audit at 8675298 and are merged as #42 to #46. Plan 007 collects the workflow-file edits that were cut from 003, 004 and 005 and is blocked on a token with the workflow scope. The index lists the findings that were vetted and not planned, and the ones that were rejected, so a later audit does not repeat them.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
When the action has written its outputs and the job summary, nothing ends the Node process. Node exits only when no handle is left open, and the action knowingly leaves some behind. It gives up on the model-catalog request after ten seconds without aborting it, on a run that ignores cancellation, and on releasing the agent after fifteen seconds. A socket the SDK still holds then keeps the step alive until the request ends or the job's own timeout fires. The default job timeout is six hours.
What changed
src/index.tsarms an unreferenced timer afterrun()settles. If the process is still alive five seconds later, it logs one line and exits with the code the run already set. A process that exits on its own is not delayed.The commits read in order: a
lingering-handlescenario and its check case, red on the current bundle; the fix with its changeset and one docs line; the rebuiltdist/.Scope
Only what happens after the action is done.
Agent.createandagent.sendstill run outside the deadline. That gap is separate.Blast Radius
Every run goes through the new
main(). A normal run is unchanged, because the timer does not hold the process open. A run that used to hang now ends five seconds after its outputs are written.Verification
lingering-handleonmain's bundle: the outputs are written, then the process never exits and the driver kills it. On this branch it exits by itself after 5.3 s with code 0 and logs "Ending it."finishedtakes 0.28 s.cancelsandmodel-errorstill exit 1 and are not delayed.check.mjsprints sixoklines.bun run typecheck,bun run lint,bun run test(111 pass),bun run build,bun run docs:typecheckandbun run docs:buildpass. The bundle hash is the same across rebuilds.