Repository navigation
Conversation
The setup job built all assets for every pull request and cached the whole work tree per run, which put about five minutes in front of every shard and filled the repository cache with 300 MB entries until older caches were evicted. The assets are committed after every merge, so a pull request that does not touch their sources can test against the committed ones and start its shards right away. When the sources do change, the setup job builds them and passes only the build output to the shards as an artifact. node_modules is cached per lockfile instead of per run, and pushes keep that cache warm because pull requests cannot read each other's caches. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
The asset recompile after merges only commits dist/ and core/css, so the compiled stylesheets of apps can lag behind their SCSS sources, as apps/settings/css/settings.css currently does. Compiling them before the tests keeps the skip path equivalent to a full build; dist/ itself matches a fresh build. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Contributor
Author
|
Results of the first run (skip path):
Assisted by ClaudeCode:claude-opus-5-5 |
This branch has not been deployed
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
Playwright is the last workflow to finish on most PRs (22 of 40 sampled pushes). A median run takes 27 min, and 5.3 min of that is the setup job (
npm ci+npm run build+ saving the whole work tree as a cache) before any shard can start.The assets in
dist/,core/cssandapps/*/cssare committed after every merge (update-node-dist.yml). So when a PR doesn't touch their sources, the committed assets already match it.changesjob on a low runner decides this, and the shards start right after it. Expected: about 4–5 min less on the critical path. The shards still compile the app stylesheets (npm run sass, a few seconds), because the recompile after merges only commitsdist/andcore/css, andapps/settings/css/settings.cssis currently outdated on master.node_modulesis now cached perpackage-lock.jsoninstead of the whole 306 MB work tree per run. Those per-run entries currently fill 10.7 of the repository's 10.97 GB cache, so older caches (including CodeQL's) are evicted constantly. PRs can't read each other's caches, so pushes to master/stable now run only the setup job to keep the shared cache warm. On a cache miss, every job falls back tonpm ci.The required check
playwright-test-summarykeeps its name. Push runs skip the tests, merge-reports and summary jobs.Known trade-off: right after a frontend PR is merged, until the "recompile assets" commit lands, a PR without frontend changes tests against the previous assets.
Not included: rebalancing the shards (6.7 to 13.4 min of test time today). That needs per-test durations and will be a separate PR.
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)
How the build inputs were determined
npm run buildrunsvite build(entries inapps/*/srcandcore/src,~/alias to the repository root) andbuild/npm-post-build.sh. That script compiles the SCSS incore/cssandapps/*/cssand generatesdist/icons.cssfrom the SVGs incore/img. The filter also coversapps/*/img,package.json,package-lock.json,tsconfig.jsonandvite.config.ts. There are no root install scripts, so anode_modulescache keyed by the lockfile is complete.actionlint1.7.7 reports no findings.Assisted by ClaudeCode:claude-opus-5-5
🤖 Generated with Claude Code