Skip to content

chore: add a check that asserts what the built action reports - #45

Merged
PunGrumpy merged 4 commits into
mainfrom
chore/check-built-action
Nov 29, 2026
Merged

PunGrumpy merged 4 commits into
mainfrom
chore/check-built-action

Conversation

@PunGrumpy

Copy link
Copy Markdown
Owner

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.mjs drives 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 prints ok or FAIL per scenario and exits 1 on any failure.
  • drive.mjs passes the stub hook to --import as a file URL, parses GITHUB_OUTPUT with 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 the Integration job is a follow-up, because it edits the workflow file.

Verification

  • check.mjs on this branch prints five ok lines and exits 0 in about 16 seconds.
  • On the bundle from before fix: keep tool-call log lines from issuing workflow commands #42 it prints FAIL tool-calls with the two expected problems and exits 1.
  • drive.mjs --scenario hung-cancel --kill-after 3 returns after 3 seconds with killed: true and leaves no process behind.
  • bun run typecheck, bun run lint, bun run test (111 pass) and bun run build pass, and dist/ is unchanged.
  • Not verified: the two Windows fixes. No Windows machine ran the driver. The follow-up that runs the check in CI is the first proof.

…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.
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cursor-action Ready Ready Preview Nov 29, 2026 8:32am UTC

@changeset-bot

changeset-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: deaf172

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b055420b-db84-451c-9119-9b1fccfafaa4
Commits

Reviewing files that changed from the base of the PR and between 51fd162 and deaf172.

Files selected for processing: 3

  • .agents/skills/verify-cursor-action/SKILL.md
  • .agents/skills/verify-cursor-action/scripts/check.mjs
  • .agents/skills/verify-cursor-action/scripts/drive.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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.
@PunGrumpy
PunGrumpy merged commit 035bc46 into main Nov 29, 2026
12 checks passed
@PunGrumpy
PunGrumpy deleted the chore/check-built-action branch November 29, 2026 08:32

This branch was successfully deployed

1 active deployment
Preview — deaf1728 Deployed Nov 29, 2026 by vercel[bot]
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