|
1 | 1 | name: 'Set up the triage runner' |
2 | 2 | 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: '' |
8 | 14 | runs: |
9 | 15 | using: composite |
10 | 16 | steps: |
|
22 | 28 | pip install -r local-requirements.txt |
23 | 29 | pip install -r requirements.txt |
24 | 30 | 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 |
25 | 40 | - name: Check out upstream and build the wheel |
26 | 41 | shell: bash |
27 | 42 | run: | |
|
0 commit comments