Skip to content

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

Merged
khaliqgant merged 2 commits into
mainfrom
ci/cli-package-gate-paths
Oct 4, 2026
Merged

khaliqgant merged 2 commits into
mainfrom
ci/cli-package-gate-paths

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

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 5335ab2. Bugbot is set up for automated code reviews on this repo. Configure here.

#608 added scripts/cli-package-gate.mjs (run by
packages/sdk/tests/cli-package-gate.test.ts) to catch a runtime dependency
missing from the published CLI. The workflows that run that test only
trigger on pull requests touching packages/sdk/** (and their own paths), so
a PR that changes only the gate script or packages/relayflows/** (the
`relayflows` wrapper package, whose dependency on @relayflows/sdk the gate
installs) skipped it. Add both paths to the pull_request filters of
cloud-runtime-artifact.yml and to both filters of surface-package.yml.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T10:51:57.444447Z c2f38ab PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6701d12e-a478-41cc-bcc5-8b6e5bf04d62
📥 Commits

Reviewing files that changed from the base of the PR and between 345d87f and c2f38ab.

📒 Files selected for processing (2)
  • .github/workflows/cloud-runtime-artifact.yml
  • .github/workflows/surface-package.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Two GitHub Actions workflows now include scripts/cli-package-gate.mjs and packages/relayflows/** in their path filters. The cloud runtime artifact workflow adds pull-request triggers. The surface package workflow adds pull-request and push triggers.

Changes

Workflow path triggers

Layer / File(s) Summary
Add workflow path triggers
.github/workflows/cloud-runtime-artifact.yml, .github/workflows/surface-package.yml
The cloud runtime artifact workflow adds the paths to its pull-request filter. The surface package workflow adds them to its pull-request and push filters.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Suggested reviewers: kjgbot

Merge Risk: ⚪ Minimal · up to c2f38

The relevant pull requests will run the CLI package gate when its script or the Relayflows package changes. No actionable merge-blocking risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to c2f38

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/cloud-runtime-artifact.yml: The pull-request path filter adds scripts/cli-package-gate.mjs and packages/relayflows/** as workflow triggers.
  • observed — Modified behavior in .github/workflows/surface-package.yml: Added the CLI package gate script and Relayflows package paths to the pull-request path filters.
  • observed — Modified behavior in .github/workflows/surface-package.yml: Added the CLI package gate script and Relayflows package paths to the push path filters.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the main change: updating CI triggers so changes to the CLI packaging gate inputs run the gate.
Description check ✅ Passed The description explains which workflow path filters change and why those changes ensure the CLI packaging gate runs for relevant pull requests.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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 rabbit checks the paths at dawn
New triggers join the workflow run
Relayflows paths now pass the gate
CLI changes activate the slate
The rabbit hops; the filters align

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/cloud-runtime-artifact.yml

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2f38aba5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/cloud-runtime-artifact.yml

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .github/workflows/surface-package.yml Outdated
…lter

Review on #610 (Devin, Codex): the gate also runs scripts/pack-release.mjs,
packs packages/surface/**, and checks
examples/dependency-upgrade-bot/dependency-upgrade-bot.flow.ts, so a PR
touching only one of those still skipped it. And the gate only runs in
cloud-runtime-artifact.yml's full vitest run; surface-package.yml runs
tests/authored-flow.test.ts, so adding the paths there gated nothing.
Put all gate inputs in cloud-runtime-artifact.yml's pull_request filter,
with a comment saying why, and drop the surface-package.yml change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@khaliqgant
khaliqgant merged commit d0aed2a into main Oct 4, 2026
4 of 6 checks passed
@khaliqgant
khaliqgant deleted the ci/cli-package-gate-paths branch October 4, 2026 15:07
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