Repository navigation
Engineering - start the Component Fixtures jobs from the workspace images - #347300
Merged
Ladislau Szomoru (lszomoru) merged 1 commit intoNov 10, 2026
Merged
Ladislau Szomoru (lszomoru) merged 1 commit into
Ladislau Szomoru (lszomoru) merged 1 commit into
Conversation
…ages Playwright Fixture Tests and Screenshots mount the workspace image of main before the checkout, on pull requests and on pushes, like the jobs of pr.yml, and install only what changed since. Pull requests use the images of their base branch, and pushes those of their branch, so release branches, which have no images, install everything. Without an image, or on any error, the jobs install everything without the pnpm store cache, which the workflow no longer restores or saves: it was the only user of pnpm-store-component-fixtures. The jobs keep the Playwright browsers cache, also with an image: they install full Chromium, while the image holds only Chromium's headless shell. workspaceImage.test.ts checks that both jobs download the image scripts like the jobs that build the images. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ladislau Szomoru (lszomoru)
marked this pull request as ready for review
November 10, 2026 10:31
Ladislau Szomoru (lszomoru)
enabled auto-merge (squash)
November 10, 2026 10:32
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Component Fixtures workspace-image reuse changes.
No open issues 🎉
What changed in this PR
Extends workspace-image reuse to the Component Fixtures workflow, following the earlier migration of PR build and test jobs.
Changes:
- Restores workspace images before checkout in Playwright Fixture Tests and Screenshots, preserving installed dependencies when an image is available.
- Removes pnpm store caching while retaining the separate Playwright browser cache and full-install fallback.
- Extends the script-download guard test and updates workspace-image and cache documentation.
| File | Description |
|---|---|
build/lib/test/workspaceImage.test.ts |
Adds both fixture jobs to the image-script download guard test. |
.github/workflows/workspace_image/README.md |
Documents fixture-job image reuse and fallback behavior. |
.github/workflows/pr-workspace-images.yml |
Updates header comments to list fixture jobs as image consumers. |
.github/workflows/component-fixtures.yml |
Adds shared image setup steps and permissions; removes pnpm store caching. |
.github/workflows/caches/README.md |
Documents fixture jobs’ uncached-install fallback. |
Review effort: Balanced
Dirk Bäumer (dbaeumer)
approved these changes
Nov 10, 2026
Giuseppe Cianci (Giuspepe)
approved these changes
Nov 10, 2026
Ladislau Szomoru (lszomoru)
deleted the
lszomoru/agents/component-fixtures-workspace-image
branch
November 10, 2026 11:54
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.
Follow-up of #347275 and #347287, for #345429: the two jobs of
component-fixtures.ymlthat install the dependencies, Playwright Fixture Tests and Screenshots, start from the workspace image ofmain, like the jobs ofpr.yml.What changes
pr.yml(the steps are defined in Playwright Fixture Tests and reused with YAML anchors), and check out withclean: falsewhen they mounted one. The install steps are unchanged, and install only what changed since the commit of the image.mainandrelease/*. Pull requests use the images of their base branch, and pushes those of their branch, so pushes tomainalso start from an image, while release branches, which have no images, install everything.pnpm install, like the jobs ofpr.yml. The workflow no longer restores or savespnpm-store-component-fixtures, which only these jobs used.restore-playwrightpointsPLAYWRIGHT_BROWSERS_PATHat the cached browsers in the workspace instead of the image's. Pushes tomainkeep saving that cache.actions: readto find and download the image artifacts.workspaceImage.test.tschecks that both jobs download the image scripts like the jobs that build the images, and the workspace image README, the CI caches README and the header ofpr-workspace-images.ymllist them.Reviewers should know
buildinstall (which builds native modules) take about 55–75 s in recent runs.pr-workspace-images.yml.How to test
This pull request's own run of Component Fixtures runs both jobs: each one reports in its job summary that it restored an image, or a
Workspace imagewarning when it installed everything instead.cd build && node --test lib/test/workspaceImage.test.ts lib/test/detectChanges.test.ts lib/test/detectMissingCaches.test.ts lib/test/agentHostTestSelection.test.ts: passed, 36 tests.cd build && pnpm run typecheck: passed../node_modules/.bin/eslint build/lib/test/workspaceImage.test.ts: passed.actionlint -shellcheck= .github/workflows/component-fixtures.yml .github/workflows/pr-workspace-images.yml(actionlint 1.7.12): passed, apart from the custom runner labels.main, which runs after merging.🤖 Authored with GitHub Copilot on behalf of Ladislau Szomoru (@lszomoru).