Repository navigation
CI: key the Playwright browser caches on the OS release, and move the WebKit jobs back to ubuntu-latest - #17009
Conversation
… WebKit jobs back to ubuntu-latest
|
@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. |
|
Codex Review: Didn't find any major issues. Another round soon, 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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
Summary
#16987 moved the WebKit jobs to
ubuntu-24.04because WebKit would not launch on theubuntu-26.04image. 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 samewebkit-<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 installskips the download, and WebKit exits at launch.install-depscannot fix that.The evidence:
ms-playwright-Linux-1.64.1-cfw-v2, saved 2026-10-22 on 24.04webkit-ubuntu-26.04.zipSo 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 theenvexpression context, so the key expands toapt-archives-Linux---cfw-v1and never names the image either.Change
id: pwstep that feeds a Playwright cache key now also writesos=<ID>-<VERSION_ID>from/etc/os-release(for exampleubuntu-26.04). This coversstudio-ui-smoke.yml(Chat UI Tests and Loaded-models indicator),studio-frontend-ci.yml,studiobench-ci.ymlandstudiobench-ui-parity.yml.ms-playwright-*key includes${{ steps.pw.outputs.os }}, and the apt archive keys use it in place of the emptyenv.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.ui-smokeandui-indicatorgo back toubuntu-latest, and so do theubuntu-latestlegs ofstudio-composer-compatibility.ymlandstudio-inline-images.yml. The last two never cached browsers, so they always downloaded the right build. Check names are unchanged.tests/studio/test_webkit_jobs_skip_ubuntu_latest.py, which encoded the wrong cause, withtests/studio/test_playwright_cache_keys_name_the_os.py. For everyactions/cachestep overms-playwrightor.apt-archives, the new test requires the key to namesteps.<id>.outputs.os, written from/etc/os-releaseby an earlier step in the same job. A save that reusescache-primary-keyis followed back to its restore step. It refusesenv.ImageOS/env.ImageVersionin a key and checks that it still finds the five browser-cache jobs. It is registered inworkflow-trigger-lint.ymlin place of the old guard.Testing
test_playwright_cache_keys_name_the_os.pyThe whole
workflow-trigger-lint.ymlpytest 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 ownChat UI TestsandLoaded-models indicatorruns are the end-to-end check. They run onubuntu-latest(26.04), miss the new key, and download the 26.04 WebKit build.