Skip to content

feat(pm-dispatch): pm-dispatch-ci-fix composite action (part 7 of #2672) - #2689

Merged
dezren39 merged 2 commits into
mainfrom
feat/2672-p7-ci-fix
Oct 30, 2026
Merged

dezren39 merged 2 commits into
mainfrom
feat/2672-p7-ci-fix

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Part of #2672

Adds the dispatch-native CI fixer as a composite action, plus a README subsection.

What

  • New .github/actions/pm-dispatch-ci-fix/action.yml (composite). It contains no OIDC/HTTP plumbing of its own: a bash compose step builds the fixer prompt, a bash dedupe step searches for an existing open tracking issue, and dispatch happens through pm-dispatch-start / pm-dispatch-queue as uses: steps.
  • Prompt: failed workflow, run URL + run id, branch, head SHA, PR number when provided, diagnose from the failed logs (gh run view <run-id> --log-failed), fix the ROOT CAUSE on the run's branch, open/update a PR per repo conventions referencing the run and the tracking issue. Conventional tracking-issue title: ci-fix: <workflow> failing on <branch>. Priority is high on the default branch, normal otherwise.
  • Dedupe: gh issue list --state open --search "\"<title>\" in:title" --json number,title, then client-side exact-title filtering (search is fuzzy). Found -> queuer attaches (issue_number, kind ci_investigation). Not found + default branch -> starter (wait "true", creates the issue with the conventional title). Not found + other branch -> queuer with issue "true" (kind ci_investigation). A final step writes the job summary (mode, issue, task id, session id when the starter ran).
  • Caller requirements (stated in the action description): permissions: id-token: write, and a job-env GH_TOKEN with issues read for the dedupe search.
  • Docs: ### pm-dispatch-ci-fix subsection in the dispatch README under ## GitHub Actions (reusable).

Per-repo ci-fixer.yml workflows are deliberately NOT in this PR; they are coordinated separately after this lands.

Validation

  • YAML-parsed the action (yq on the laptop + PyYAML on an identical local copy, sha256-verified).
  • Extracted the compose/dedupe/summary bash and ran it locally with a stubbed gh on PATH: exact-title issue (with a fuzzy near-miss also returned) -> attach to the exact issue; no match + default branch -> fresh/high/start decision; no exact match + feature branch -> fresh/normal/queue decision. Prompt contents, the exact gh search invocation, the summary step output, and the loud failure when GH_TOKEN is unset were all asserted. The uses: dispatch steps cannot run locally, so their wiring (targets + if: conditions) was asserted by reading them back from the parsed YAML.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 10:40
@coderabbitai

coderabbitai Bot commented Oct 30, 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 28 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f8471642-0883-4558-9649-0458c57fba10
Commits

Reviewing files that changed from the base of the PR and between 68ba9bc and bd10a9d.

Files selected for processing: 2
  • .github/actions/pm-dispatch-ci-fix/action.yml
  • pm-stack/dispatch/README.md
  • 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

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T10:41:34.017684Z 2339b5e 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.

@dezren39
dezren39 merged commit 2a7d794 into main Oct 30, 2026
1 check passed
@dezren39
dezren39 deleted the feat/2672-p7-ci-fix branch October 30, 2026 10:40
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