Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .claude/skills/dev/roll.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Nothing is written when blocked: the merges with conflict markers go to `.roll/c
## Automation

- `.github/workflows/upstream-roll.yml` runs daily: detects a newer, old-enough `patchright-core`, rolls it on `roll_<version>`, runs `ci.yml` on that branch and waits for it (`.github/actions/ci-on-branch`), and opens the PR with the report, closing any older `roll_*` PR it supersedes. `safe` + green CI is merged automatically; `review` waits for a human (label `needs-review`); `blocked` opens an issue (label `upstream-blocked`) with the report and the conflicted merges and writes nothing; scheduled runs skip that version while the issue is open. Manual runs take a version, `dry_run` (report only) and `force`.
- `.github/workflows/upstream-playwright-cli.yml` runs weekly with the same verdicts for `microsoft/playwright-cli` (`npm run watch:playwright-cli`, `--apply` to take a clean merge).
- `.github/workflows/upstream-playwright-cli.yml` runs weekly with the same verdicts for `microsoft/playwright-cli` (`npm run watch:playwright-cli`, `--apply` to take a clean merge). Its branch is cut from the upstream HEAD, so it closes every other open `track-playwright-cli_*` PR as superseded.
- A `macos-15` job that GitHub cancels with "The job was not acquired by Runner" (arm64 capacity) is not a test failure, but the report then says `failure` and the PR gets `tests-failed`. Check the run's annotations before reading anything into it; re-running the job is enough.
- Both workflows need Issues enabled on the repository (a fork has them off by default) for the `blocked` verdict to land anywhere; without them the lookup only warns, but a blocked roll fails the job with the report in the summary and the artifact.
- The automatic merge uses the workflow token: keep the repository setting "Allow GitHub Actions to create and approve pull requests" on, and do not require reviews in the `main` ruleset, or the merge step only leaves a comment and the PR waits.
- The `main` ruleset requires the CI job names (`<os> / node <n>`) on the PR head. A PR opened with the workflow token starts no CI, and a reusable `ci.yml` call would put its checks on the caller's commit under `test / ...`, so the workflows dispatch `ci.yml` on the branch instead: `workflow_dispatch` is the one event the workflow token may start, and its checks land on the branch head under the plain names. Change the ruleset's required checks together with the matrix in `ci.yml`, or every PR stays blocked.
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/upstream-playwright-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,19 @@ jobs:
gh pr edit "$number" --body-file body.md --add-label "$labels"
fi
echo "number=$number" >> "$GITHUB_OUTPUT"
# The tracking branch is always cut from the upstream HEAD, so it carries every commit an
# older tracking PR does; runs never overlap (the concurrency group), so any other open
# track-playwright-cli_* PR is older and only adds review noise.
- name: Close older tracking pull requests
env:
NUMBER: ${{ steps.pr.outputs.number }}
HEAD: ${{ needs.track.outputs.head }}
run: |
for old in $(gh pr list --state open --json headRefName --jq '.[].headRefName | select(startswith("track-playwright-cli_"))'); do
[ "$old" = "$BRANCH" ] && continue
gh pr close "$old" --delete-branch --comment "Superseded by #$NUMBER (microsoft/playwright-cli ${HEAD:0:7})." \
|| echo "::warning::Could not close $old, superseded by #$NUMBER."
done
- name: Merge automatically (nothing we use changed, green CI)
if: env.CLASSIFICATION == 'safe' && steps.ci.outputs.result == 'success'
run: |
Expand Down
Loading