Skip to content

Commit 9084962

Browse files
authored
devops(roll): roll on the shared bot actions, start a roll with needs-roll (#3304)
1 parent e7834df commit 9084962

3 files changed

Lines changed: 223 additions & 149 deletions

File tree

‎.github/actions/setup-triage-runner/action.yml‎

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
name: 'Set up the triage runner'
22
description: >
3-
Prepares the environment that the triage and revision agents work in: the checkout built as CI
4-
builds it, with the browsers and the Copilot CLI installed, and the upstream checkout in .upstream/
5-
that the driver is built from. Exports PLAYWRIGHT_DIR, the path of that checkout, and CI_ENV_EXEC,
6-
the wrapper from microsoft/playwright that runs a command under xvfb on Linux and at normal I/O
7-
priority on Windows.
3+
Prepares the environment that the triage, revision and roll agents work in: the checkout built as
4+
CI builds it, with the browsers and the Copilot CLI installed, and the upstream checkout in
5+
.upstream/ that the driver is built from. Exports PLAYWRIGHT_DIR, the path of that checkout, and
6+
CI_ENV_EXEC, the wrapper from microsoft/playwright that runs a command under xvfb on Linux and at
7+
normal I/O priority on Windows. With pin, it does steps 1 and 2 of the playwright-roll skill before
8+
the build: it pins that commit, updates NODE_VERSION and generates the API from the new pin.
9+
inputs:
10+
pin:
11+
description: 'microsoft/playwright commit to roll to; empty builds the commit in DRIVER_VERSION'
12+
required: false
13+
default: ''
814
runs:
915
using: composite
1016
steps:
@@ -22,6 +28,15 @@ runs:
2228
pip install -r local-requirements.txt
2329
pip install -r requirements.txt
2430
pip install -e .
31+
- name: Pin and generate the API
32+
if: inputs.pin != ''
33+
shell: bash
34+
env:
35+
PIN: ${{ inputs.pin }}
36+
run: |
37+
python scripts/upstream.py pin "$PIN"
38+
python scripts/update_node_version.py
39+
./scripts/update_api.sh
2540
- name: Check out upstream and build the wheel
2641
shell: bash
2742
run: |

0 commit comments

Comments
 (0)