-
Notifications
You must be signed in to change notification settings - Fork 0
ci: use hosted runners for public workflows #102
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 |
|---|---|---|
|
|
@@ -13,12 +13,11 @@ permissions: | |
| jobs: | ||
| test: | ||
| name: Run Tests | ||
| runs-on: arc-happyvertical | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| EXPECTED_PLAYWRIGHT_CHROMIUM_REVISION: '1228' | ||
| EXPECTED_PLAYWRIGHT_VERSION: '1.61.1' | ||
| PLAYWRIGHT_BROWSERS_PATH: /ms-playwright | ||
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | ||
| PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright | ||
| # Backstop so a stalled step (e.g. a hung browser download) fails fast | ||
| # instead of sitting until the 6h default. | ||
| timeout-minutes: 30 | ||
|
|
@@ -51,10 +50,13 @@ jobs: | |
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| # The ARC image must already contain the exact browser revision required | ||
| # by package.json. Downloads stay disabled so image/package drift fails | ||
| # immediately instead of mutating the runner. See happyvertical/iac#1000. | ||
| - name: Verify baked Playwright runtime | ||
| # Public pull requests run on GitHub-hosted capacity and cannot depend on | ||
| # the private ARC image. Playwright resolves the exact browser revision | ||
| # pinned by the lockfile before the existing runtime check verifies it. | ||
| - name: Install Playwright runtime | ||
| run: pnpm exec playwright install --with-deps chromium | ||
|
Comment on lines
+56
to
+57
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 hosted workflow now downloads Playwright into the workspace, but Useful? React with 👍 / 👎. |
||
|
|
||
| - name: Verify Playwright runtime | ||
| run: pnpm browser:runtime:check | ||
|
|
||
| - name: Build | ||
|
|
||
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.
When a PR, main push, or the publish workflow invokes this test job on GitHub-hosted
ubuntu-latest, the job still setsPLAYWRIGHT_BROWSERS_PATH=/ms-playwrightand disables browser downloads, then runspnpm browser:runtime:check. That script explicitly requires Chromium, headless-shell, and ffmpeg revision directories under/ms-playwright; those were supplied by the former ARC image but are not provisioned anywhere in this workflow, so the runtime check fails before build and tests, also blocking releases. Update the hosted-runner path to install the required Playwright runtime (and dependencies) rather than retaining the baked-image contract.Useful? React with 👍 / 👎.