Skip to content

CI: run the Playwright WebKit jobs on ubuntu-24.04 while ubuntu-latest is 26.04 - #16987

Merged
danielhanchen merged 2 commits into
mainfrom
ci-webkit-jobs-pin-ubuntu-2404
Nov 7, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
ci-webkit-jobs-pin-ubuntu-2404

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Chat UI Tests (chat) and Loaded-models indicator (cross-browser) are red on main (run 42338613438) and on #16986, #16984 and #16973, all in the same step:

Image: ubuntu-26.04
Version: 20261101.186.1
...
engines that will not start: webkit: TargetClosedError
system libraries are missing, installing them
...
engines that will not start: webkit: TargetClosedError
##[error]Process completed with exit code 1.

ubuntu-latest is being moved to the ubuntu-26.04 image. Playwright 1.64.1's WebKit build exits at launch there, and playwright install-deps does 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) and ui-indicator (Loaded-models indicator) run on ubuntu-24.04.
  • studio-composer-compatibility.yml and studio-inline-images.yml: the ubuntu-latest matrix leg runs on ubuntu-24.04 through runs-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.
  • Each pin carries a comment to move back once WebKit starts on 26.04.
  • 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 plain runs-on, matrix.os, or the mapped form above), and fails if any of them is ubuntu-latest. A job counts when its steps or matrix mention Playwright and webkit as 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.py requires this of every workflow-reading guard), so a PR that only edits workflows still meets it.

Testing

guard test
this branch passes
main's three workflow files with this test fails, naming studio-composer-compatibility.yml::composer, studio-inline-images.yml::images, studio-ui-smoke.yml::ui-smoke, studio-ui-smoke.yml::ui-indicator

The 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.py and tests/security/test_lint_workflow_triggers.py: 240 passed.

End to end, the same probe on the two images:

probe before install-deps probe after install-deps job
main, ubuntu-26.04 (run 42338613438) webkit: TargetClosedError webkit: TargetClosedError failed
this PR, ubuntu-24.04 webkit: TargetClosedError all three engines launch Loaded-models indicator (cross-browser) passed

…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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T07:53:18.593745Z c6dcda8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 7, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 7, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 7, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: c6dcda8e68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
danielhanchen merged commit 2cecf95 into main Nov 7, 2026
@danielhanchen
danielhanchen deleted the ci-webkit-jobs-pin-ubuntu-2404 branch November 7, 2026 07:58
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant