Repository navigation
chore: add a check that asserts what the built action reports - #45
Conversation
…r exits The driver passed the stub hook to --import as a path, which Node refuses on Windows, and parsed GITHUB_OUTPUT assuming LF line endings. It also waited forever for an action that never exits. The hook is now a file URL, the parser accepts CRLF, and --kill-after ends the action and reports it.
A drive printed JSON for a person to read. check.mjs runs each scenario and compares the exit code, the step outputs, the SDK calls and the log with what a workflow author relies on, so a regression in the built bundle is a failed command.
|
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 23 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. |
A value that is not a number, not positive, or longer than Node's timers accept made the kill timer fire after 1 ms. The driver then killed the action at once and reported it as hung. It now refuses such a value before it starts the action.
The tool-calls case matched text anywhere in the log, so a duplicated line or the cut-off running call would have passed. The model-error case looked for the model id, which the SDK's own error message already contains. Log lines are now counted, and the catalog entry is matched in the form the listing prints.
Why
What consumers run is
dist/index.mjs. The repository can drive it with a scripted stand-in for the SDK, but a person had to run each scenario and read the JSON. Nothing compared the result with what a workflow author relies on, so a regression in the outputs, the exit code or the log of the shipped file showed only if someone looked.What changed
check.mjsdrives five scenarios and compares each with its expectations: the exit code, the step outputs, the SDK calls in order, and lines the log must or must not hold. It printsokorFAILper scenario and exits 1 on any failure.drive.mjspasses the stub hook to--importas a file URL, parsesGITHUB_OUTPUTwith either line ending, and gains--kill-after, so an action that never exits is ended and reported.Scope
Tooling under
.agents/skills/verify-cursor-action/. No shipped code changes. Running the check in theIntegrationjob is a follow-up, because it edits the workflow file.Verification
check.mjson this branch prints fiveoklines and exits 0 in about 16 seconds.FAIL tool-callswith the two expected problems and exits 1.drive.mjs --scenario hung-cancel --kill-after 3returns after 3 seconds withkilled: trueand leaves no process behind.bun run typecheck,bun run lint,bun run test(111 pass) andbun run buildpass, anddist/is unchanged.