-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): sync workflow SHA refs + fix auto-merge in bump-sha #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,12 +210,14 @@ jobs: | |
| echo "::notice::Created PR #${pr_number}" | ||
| fi | ||
|
|
||
| # 4) Enable auto-merge on the PR so it merges once required checks pass. | ||
| # The bump commit only changes manifest.yml and was already tested | ||
| # as part of the triggering merge — auto-merging avoids manual | ||
| # intervention while still respecting branch protection rules. | ||
| # 4) Auto-merge the bump PR. The bump commit only changes SHAs | ||
| # (manifest.yml + workflow files) — it was already tested as | ||
| # part of the triggering merge. The guard condition prevents | ||
| # infinite loops when this merge triggers the workflow again. | ||
| # Uses direct squash-merge because auto-merge (--auto) requires | ||
| # branch protection rules on main, which aren't configured. | ||
| if [ -n "${pr_number}" ]; then | ||
| gh pr merge "${pr_number}" --auto --squash \ | ||
| gh pr merge "${pr_number}" --squash --delete-branch \ | ||
| --subject "chore(manifest): bump YiAgent/OpenCI SHA to ${short_new} (#${pr_number})" \ | ||
| || echo "::warning::Auto-merge not enabled — repo may lack 'Allow auto-merge' setting." | ||
| || echo "::warning::Failed to auto-merge PR #${pr_number} — manual merge required." | ||
|
Comment on lines
219
to
+222
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Switching from |
||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| # test.yml — Self-bootstrapping comprehensive test suite for OpenCI. | ||
| # test.yml — Self-34a93579aac0d1682cc65ab8b7c2c9e2d06b0953ping comprehensive test suite for OpenCI. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. high — The old SHA (9b40a02...) was blindly replaced with the new SHA inside comments/descriptions, turning 'self-bootstrapping' into 'self-34a93579aac0d1682cc65ab8b7c2c9e2d06b0953ping'. This is a correctness bug — the word 'bootstrapping' was corrupted because the old SHA appeared as a substring of 'bootstrapping' (starting with '9b40a02'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The SHA bump script replaced the word |
||
| # | ||
| # Test pyramid: | ||
| # Layer 1: Unit tests (BATS shell + Node.js) — fast, offline, always run | ||
| # Layer 2: Integration tests — exercises action pipelines with fixtures | ||
| # Layer 3: Agentic eval — calls Claude API to validate skill output shape | ||
| # Layer 4: Live E2E — fires a real test issue, observes full agentic pipeline | ||
| # | ||
| # The live E2E test makes this workflow self-bootstrapping: OpenCI tests | ||
| # The live E2E test makes this workflow self-34a93579aac0d1682cc65ab8b7c2c9e2d06b0953ping: OpenCI tests | ||
| # itself by triggering its own issue-ops pipeline and verifying the response. | ||
| name: test | ||
|
|
||
|
|
@@ -27,7 +27,7 @@ on: | |
| type: boolean | ||
| default: false | ||
| run-live-e2e: | ||
| description: "Run self-bootstrapping live E2E test (creates a real issue)" | ||
| description: "Run self-34a93579aac0d1682cc65ab8b7c2c9e2d06b0953ping live E2E test (creates a real issue)" | ||
| type: boolean | ||
| default: false | ||
| run-pr-e2e: | ||
|
|
@@ -257,7 +257,7 @@ jobs: | |
| echo "skip=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Run self-bootstrapping E2E test | ||
| - name: Run self-34a93579aac0d1682cc65ab8b7c2c9e2d06b0953ping E2E test | ||
| if: steps.e2e-gate.outputs.skip != 'true' | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
medium — The merge strategy changed from --auto (queue for merge after checks) to an immediate --squash merge. While the comments explain the rationale (no branch protection rules), this removes the safety net of required status checks — the bump PR is merged immediately without waiting for CI to pass on the PR itself.