ci: run the CLI packaging gate when its own inputs change

Merged
KH
2mo ago
+9-0

Follow-up to #608, flagged by its finishing agent (whose token could not push workflow files).

scripts/cli-package-gate.mjs runs inside the SDK test suite (packages/sdk/tests/cli-package-gate.test.ts), which only cloud-runtime-artifact.yml runs on pull requests (its full vitest run). That workflow's PR filter covered packages/sdk/** but none of the gate's other inputs, so a PR touching only them skipped the gate.

Adds to cloud-runtime-artifact.yml's pull_request paths, with a comment: scripts/cli-package-gate.mjs, scripts/pack-release.mjs (the packer it runs), packages/relayflows/** and packages/surface/** (packed and installed with the SDK), and examples/dependency-upgrade-bot/dependency-upgrade-bot.flow.ts (the fixture it checks). Its push to main is deliberately unfiltered and unchanged. YAML validated; no job changes.

🤖 Generated with Claude Code


[!NOTE]
Low Risk
CI path-filter-only change; no runtime, packaging script, or job logic modifications.

Overview
Expands pull_request path filters on cloud-runtime-artifact.yml so the Linux artifact job (and its full SDK vitest run, including cli-package-gate.test.ts) runs when CLI packaging gate inputs change—not only when packages/sdk/** changes.

New triggers cover scripts/cli-package-gate.mjs, scripts/pack-release.mjs, packages/relayflows/**, packages/surface/**, and examples/dependency-upgrade-bot/dependency-upgrade-bot.flow.ts, with an inline comment documenting why those paths are tied to the gate. No job or step changes; push-to-main behavior stays unfiltered as before.

Reviewed by Cursor Bugbot for commit 5335ab242e263eb3ce60c25872383002bd815b26. Bugbot is set up for automated code reviews on this repo. Configure here.


Agent Relay sessions

  • claude session 03e53226 · opened via gh pr create · last active 2026-10-04