Repository navigation
CI: run the Playwright WebKit jobs on ubuntu-24.04 while ubuntu-latest is 26.04 - #16987
Merged
Merged
Conversation
…t is 26.04 ubuntu-latest now lands on the ubuntu-26.04 image, where Playwright 1.64's WebKit exits at launch (TargetClosedError) even after install-deps, so the browser probe fails and Chat UI Tests and the Loaded-models indicator go red on main and every PR that draws that image. Pin the two fixed-runner jobs to ubuntu-24.04 and map the ubuntu-latest leg of the Composer and Inline images matrices to ubuntu-24.04 without renaming their checks. A guard test fails if a WebKit job lands on ubuntu-latest again.
… an engine, not a file name
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Nov 7, 2026
… WebKit jobs back to ubuntu-latest (#17009) ## Summary #16987 moved the WebKit jobs to `ubuntu-24.04` because WebKit would not launch on the `ubuntu-26.04` image. The image was not the cause. The cause was the Playwright browser cache restoring a WebKit build made for a different Ubuntu release. Playwright downloads a separate WebKit build for each Ubuntu release (`webkit-ubuntu-24.04.zip`, `webkit-ubuntu-26.04.zip`), and both unpack into the same `webkit-<rev>` folder. The cache key, `ms-playwright-Linux-<playwright version>-cfw-v2`, does not name the release. So a cache saved on one release is a hit on the other, `playwright install` skips the download, and WebKit exits at launch. `install-deps` cannot fix that. The evidence: | run | image | cache restored | WebKit | |---|---|---|---| | main, run 42338613438 (before #16987) | ubuntu-26.04 | `ms-playwright-Linux-1.64.1-cfw-v2`, saved 2026-10-22 on 24.04 | TargetClosedError, also after install-deps | | a repo whose first cache save was on 26.04, saving run | ubuntu-26.04 | none, downloaded `webkit-ubuntu-26.04.zip` | launches, Chat UI and indicator jobs pass | | the same repo today, after #16987 | ubuntu-24.04 | that 26.04 cache | TargetClosedError, also after install-deps | So the 24.04 pin only works where the cache happened to be saved on 24.04, and it breaks wherever the cache was saved on 26.04. The apt archive cache has a related bug. Its key uses `${{ env.ImageOS }}-${{ env.ImageVersion }}`, but those are runner shell variables and not part of the `env` expression context, so the key expands to `apt-archives-Linux---cfw-v1` and never names the image either. ## Change - Every `id: pw` step that feeds a Playwright cache key now also writes `os=<ID>-<VERSION_ID>` from `/etc/os-release` (for example `ubuntu-26.04`). This covers `studio-ui-smoke.yml` (Chat UI Tests and Loaded-models indicator), `studio-frontend-ci.yml`, `studiobench-ci.yml` and `studiobench-ui-parity.yml`. - Every `ms-playwright-*` key includes `${{ steps.pw.outputs.os }}`, and the apt archive keys use it in place of the empty `env.ImageOS` / `env.ImageVersion`. The frontend build and the chromium-only UI shards still share one key, as before. The first main run on each release misses once and saves a cache built for that release. A PR run that misses downloads the matching build. - Revert the #16987 pins. `ui-smoke` and `ui-indicator` go back to `ubuntu-latest`, and so do the `ubuntu-latest` legs of `studio-composer-compatibility.yml` and `studio-inline-images.yml`. The last two never cached browsers, so they always downloaded the right build. Check names are unchanged. - Replace `tests/studio/test_webkit_jobs_skip_ubuntu_latest.py`, which encoded the wrong cause, with `tests/studio/test_playwright_cache_keys_name_the_os.py`. For every `actions/cache` step over `ms-playwright` or `.apt-archives`, the new test requires the key to name `steps.<id>.outputs.os`, written from `/etc/os-release` by an earlier step in the same job. A save that reuses `cache-primary-key` is followed back to its restore step. It refuses `env.ImageOS` / `env.ImageVersion` in a key and checks that it still finds the five browser-cache jobs. It is registered in `workflow-trigger-lint.yml` in place of the old guard. ## Testing | | `test_playwright_cache_keys_name_the_os.py` | |---|---| | this branch | 20 passed | | main's workflows with this test | 15 failed (every browser and apt cache step in the five jobs), 5 passed | The whole `workflow-trigger-lint.yml` pytest list passes, except for two tests that fail the same way on main in this environment (`test_cached_paths_hold_no_credentials.py::test_model_cache_variables_are_not_treated_as_credential_homes`, `test_version_compat_bundle.py::test_the_daily_sweep_skips_what_it_cannot_import`). Neither touches these files. This PR's own `Chat UI Tests` and `Loaded-models indicator` runs are the end-to-end check. They run on `ubuntu-latest` (26.04), miss the new key, and download the 26.04 WebKit build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Chat UI Tests (chat)andLoaded-models indicator (cross-browser)are red on main (run 42338613438) and on #16986, #16984 and #16973, all in the same step:ubuntu-latestis being moved to the ubuntu-26.04 image. Playwright 1.64.1's WebKit build exits at launch there, andplaywright install-depsdoes not fix it, so the browser probe in "Install Playwright browsers" fails before any test runs. Chromium and Firefox start fine. The last green runs of the same jobs ran on ubuntu-24.04 (for example 42319231838, 42313662909, 42311916438, all today), so the image is the only thing that changed. As the rollout reaches more jobs, every Linux job that drives WebKit will hit this.Change
studio-ui-smoke.yml:ui-smoke(Chat UI Tests) andui-indicator(Loaded-models indicator) run onubuntu-24.04.studio-composer-compatibility.ymlandstudio-inline-images.yml: theubuntu-latestmatrix leg runs onubuntu-24.04throughruns-on: ${{ matrix.os == 'ubuntu-latest' && 'ubuntu-24.04' || matrix.os }}. The matrix value is unchanged, so the check names (Composer (ubuntu-latest, browsers),Inline images (ubuntu-latest)) stay the same; macOS and Windows legs are untouched.tests/studio/test_webkit_jobs_skip_ubuntu_latest.py: finds every workflow job whose steps or matrix mention WebKit, resolves the images it lands on (a plainruns-on,matrix.os, or the mapped form above), and fails if any of them isubuntu-latest. A job counts when its steps or matrix mention Playwright andwebkitas a whole word, so a file name like this test's does not. It also checks it still sees the four jobs above, so it cannot pass by finding nothing.workflow-trigger-lint.yml: the new guard runs in that job too, since it is the one job without a paths filter (test_workflow_guards_run_unfiltered.pyrequires this of every workflow-reading guard), so a PR that only edits workflows still meets it.Testing
studio-composer-compatibility.yml::composer,studio-inline-images.yml::images,studio-ui-smoke.yml::ui-smoke,studio-ui-smoke.yml::ui-indicatorThe new test plus
tests/studio/test_workflow_guards_run_unfiltered.py,test_ui_shard_engines.py,test_indicator_browsers_run_in_parallel.py,test_playwright_suites_run_in_ci.py,test_chat_ui_shards_cover_everything.pyandtests/security/test_lint_workflow_triggers.py: 240 passed.End to end, the same probe on the two images:
ubuntu-26.04(run 42338613438)ubuntu-24.04Loaded-models indicator (cross-browser)passed