Skip to content

Commit 84adef2

Browse files
devantlerclaude
andauthored
refactor(ci): replace recheck-open-prs with the merge queue (#707)
The merge queue now runs the required checks on the exact result each PR would land as, which is what recheck-open-prs approximated by re-running every open PR after main moved. Removes the workflow, its script, three tests, the recovery guide and the proposal workflow's dispatch of it. Closes #704 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent bd28c81 commit 84adef2

15 files changed

Lines changed: 23 additions & 1966 deletions

‎.github/workflows/ci.yaml‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -154,34 +154,6 @@ jobs:
154154
- name: 🧪 Guard complete script-test sharding
155155
run: bash scripts/ci-script-test-sharding-workflow.test.sh
156156

157-
- name: 🧪 Self-test the open-PR recheck
158-
# Proves recheck-open-prs.sh re-triggers each open PR in the one order that is safe
159-
# (close BEFORE reopen), never leaves a PR closed when a step fails mid-sequence,
160-
# restores an armed auto-merge without arming one that was not, and fails closed on
161-
# an unparseable listing rather than reading it as "no open PRs". Hermetic: `gh` is
162-
# stubbed on PATH, so nothing reaches the network or touches a real pull request.
163-
run: ./scripts/recheck-open-prs.test.sh
164-
165-
- name: 🧪 Verify PR recheck observations and recovery
166-
env:
167-
RECHECK_OBSERVATION_ARTIFACT_DIR: ${{ runner.temp }}/recheck-observation-recovery
168-
run: bash scripts/recheck-open-prs-observations.test.sh
169-
170-
- name: 📦 Verify hosted recovery artifact collection
171-
if: ${{ always() }}
172-
# Synthetic PR settings from the hermetic test exercise the same collection as the caller.
173-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
174-
with:
175-
name: recheck-recovery-test-${{ github.run_id }}-${{ github.run_attempt }}
176-
path: |
177-
${{ runner.temp }}/recheck-observation-recovery/**/rearm/**
178-
${{ runner.temp }}/recheck-observation-recovery/**/closed/**
179-
if-no-files-found: error
180-
retention-days: 14
181-
182-
- name: 🧪 Self-test head-checked PR base refreshes
183-
run: bash scripts/recheck-open-prs-base-refresh.test.sh
184-
185157
- name: 🧪 Self-test changelog generation and publication checks
186158
run: bash scripts/plugin-changelog.test.sh
187159

‎.github/workflows/propose-marketplace-release.yaml‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,3 @@ jobs:
101101
jq . "$RUNNER_TEMP/proposal-created.json"
102102
printf 'status=%s\n' "$(jq -er .status "$RUNNER_TEMP/proposal-created.json")" >> "$GITHUB_OUTPUT"
103103
cat "$RUNNER_TEMP/proposal-created.json" >> "$GITHUB_STEP_SUMMARY"
104-
105-
recheck:
106-
name: Start normal required PR checks
107-
needs: propose
108-
if: >-
109-
github.ref == 'refs/heads/main' && needs.propose.outputs.status == 'CREATED' &&
110-
((github.event_name == 'workflow_dispatch' && inputs.propose == true) ||
111-
(github.event_name == 'schedule' && vars.MARKETPLACE_AUTOPROPOSE == 'true'))
112-
runs-on: ubuntu-latest
113-
# Dispatch the existing rechecker; this job cannot read or change repository contents or PRs.
114-
permissions:
115-
actions: write
116-
steps:
117-
- name: Dispatch the existing current-main CI recheck
118-
env:
119-
GH_TOKEN: ${{ github.token }}
120-
GH_REPO: ${{ github.repository }}
121-
run: gh workflow run recheck-open-prs.yaml --repo "$GH_REPO" --ref main -F dry-run=false

‎.github/workflows/recheck-open-prs.yaml‎

Lines changed: 0 additions & 126 deletions
This file was deleted.

‎README.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ records which gaps to fill.
2929

3030
Maintained first-party skills are authored in their plugins here; curated external skills retain their original authors and upstream update paths. To suggest a bundle or report a problem, [open an issue](https://github.com/devantler-tech/agent-plugins/issues). For a safe first repository change, start with [Contributing](CONTRIBUTING.md).
3131

32-
Maintainers can [prepare and publish a marketplace release](docs/marketplace-releases.md) with a reviewed version proposal, matching manifests, and verified release notes. Actions can explicitly create a signed draft containing only the generated marketplace versions and start normal PR CI. Review and merge remain separate gates. Pull-request CI checks that a version update exactly matches its generated proposal; publication separately requires exact successful main CI. Scheduled proposal creation and publication are independently opt-in.
33-
34-
If a pull-request recheck fails, follow the [recovery guide](docs/pr-recheck-recovery.md) to retrieve its saved merge settings and verify the current PR before restoring them.
32+
Maintainers can [prepare and publish a marketplace release](docs/marketplace-releases.md) with a reviewed version proposal, matching manifests, and verified release notes. Actions can explicitly create a signed draft containing only the generated marketplace versions; closing and reopening the draft starts its PR CI. Review and merge remain separate gates. Pull-request CI checks that a version update exactly matches its generated proposal; publication separately requires exact successful main CI. Scheduled proposal creation and publication are independently opt-in.
3533

3634
The marketplace is under the [Apache 2.0 license](LICENSE). Bundled skills keep their own licenses, listed
3735
in the [plugin catalogue](docs/plugins.md#skill-licenses); third-party skills ship their copyright

‎docs/marketplace-releases.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ signature readback, a fresh fetch and exact release-tree verification precede dr
322322
Final readback binds the bot author, branch, source, commit, draft, title and plain-language body.
323323
Only `CREATED` with `proposal: DRAFT_READBACK_VERIFIED` reports success.
324324

325-
The final job dispatches the existing `recheck-open-prs.yaml` on main so the normal App-backed reopen
326-
starts fresh required PR checks. That dispatch reports a request, not successful CI. The draft still
325+
The draft is created with the workflow token, which starts no PR workflows, so close and reopen it
326+
to start its required checks. The draft still
327327
requires current-head checks, substantive review, zero unresolved findings and normal promotion and
328328
merge. It is never automatically promoted or merged, and proposal creation never reserves a release
329329
tag or publishes a release.

‎docs/pr-recheck-recovery.md‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎docs/scripts.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ complete inventory; read a script's header for its arguments and safeguards.
1212
| Synchronize one curated plugin | Dispatch [Update Agent Skills](../.github/workflows/update-agent-skills.yaml) with `agentic-engineering`; [skill-update-scope.sh](../scripts/skill-update-scope.sh) resolves only declared selections before the normal per-skill updater runs. Default and scheduled `all` updates still cover the full catalogue. |
1313
| Prepare or inspect a marketplace release | [Release guide](marketplace-releases.md) and [prepare-marketplace-release.sh](../scripts/prepare-marketplace-release.sh) |
1414
| Propose or publish a marketplace release | [Release guide](marketplace-releases.md), which explains the separate opt-in steps and recovery |
15-
| Recheck open pull requests after changing CI | [recheck-open-prs.sh](../scripts/recheck-open-prs.sh) |
1615

1716
The directory also contains checks for package discovery, skill provenance, licensing and authoring rules,
1817
version changes, changelogs, generated writes, release observations and instruction size.

‎docs/tool-ownership.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Their documented interfaces are supported here; none establishes an independent
4545
| [`guard-bundled-skill-edits.sh`](../scripts/guard-bundled-skill-edits.sh) | PR CI checks changed paths against base provenance and the authorized sync writer | Retain the source-ownership and writer rules here. Skill installation transport cannot decide this repository's editing exemption. |
4646
| [`guard-gh-json-fields.sh`](../scripts/guard-gh-json-fields.sh) | CI checks agent-readable guidance for unsupported GitHub CLI fields | Keep the guidance policy and content-bound exemptions here; delegate Go syntax decoding to the adjacent parser. |
4747
| [`gh-json-go/main.go`](../scripts/gh-json-go/main.go) | The guidance guard builds this installed decoder and passes retained Go source; CI also runs its tests | Retain Go for syntax/literal interpretation, using the standard library. It decodes source as data; it never builds the inspected package. |
48-
| [`recheck-open-prs.sh`](../scripts/recheck-open-prs.sh) | The recheck workflow renews checks or refreshes a base under its exact-head and author rules | Keep forge orchestration with the owning workflow and GitHub CLI. Its branch-writing policy does not fit a cluster-management command; complexity alone does not establish a new CLI audience. |
4948
| [`plugin-changelog.sh`](../scripts/plugin-changelog.sh) | Skill update writes notes; CI checks notes for changed plugin versions | Keep version/changelog policy here, reuse the locked CommonMark decoder for heading syntax rather than duplicating that grammar. |
5049
| [`refresh-desired-state-digests.sh`](../scripts/refresh-desired-state-digests.sh) | Skill update recomputes declared resource digests; maintainers can check without writing | The writer must share hashing rules with the manifest validator; keep both under one repository owner. |
5150
| [`sha256.lib.sh`](../scripts/sha256.lib.sh) | The validator and digest writer source the same hashing functions | Keep local sharing. Two callers within the marketplace are one product need, not evidence for a separate hashing library. |

0 commit comments

Comments
 (0)