-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't working as expectedSomething isn't working as expected
Description
Description
The W2 atomization workflow (atomize-integration-pr.yaml) fails when attempting to reset the integration branch to main after atomization completes.
Error
remote: error: GH013: Repository rule violations found for refs/heads/integration.
remote: - Changes must be made through a pull request.
remote: - Cannot force-push to this branch
Root Cause
- The
protected-branches-linearruleset includes anon_fast_forwardrule that prevents force pushes - The workflow uses
github.tokenwhich does not have admin bypass privileges - Even though admin bypass is now configured on the ruleset,
github.tokencannot utilize it
Impact
- E2E-1 (Happy Path) test: W1 validation passes but W2 atomization fails
- The atomization pipeline is blocked at the reset step
- Manual intervention required to reset integration branch
Proposed Solution
Update the workflow to use a Personal Access Token (PAT) with admin privileges:
- Create a PAT with
reposcope and admin access - Store the PAT as a repository secret (e.g.,
ADMIN_TOKEN) - Update the
Reset Integrationstep inatomize-integration-pr.yaml:
- name: Reset integration to main
env:
GH_TOKEN: ${{ secrets.ADMIN_TOKEN }} # Changed from github.token
run: |
git checkout integration
git reset --hard origin/main
git push origin integration --force-with-leaseRelated
- Ruleset:
protected-branches-linear(ID: 11925113) - Workflow:
.github/workflows/atomize-integration-pr.yaml - Documentation:
docs/src/troubleshooting/ci-known-issues.md - ADR: ADR-011 (Full Atomization Model)
Workaround
Admins can manually reset the integration branch:
git checkout integration
git reset --hard origin/main
git push --force-with-lease origin integrationReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as expectedSomething isn't working as expected