Repository navigation
fix(ui): avoid intermittent Less worker build failures - #33797
Conversation
Compile Less in-process after reproducing the Vite worker failure from the RDF CI build with the existing application stylesheets. Validated 10 stress builds and five full builds of each release/coarse variant with zero failures. All 860 coarse JavaScript/CSS artifacts match the browser-validated output byte for byte. (cherry picked from commit f1a7cac)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Changes Less compilation from a worker pool to in-process Vite execution. Fixes intermittent Less worker build failures by compiling in-process with OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 51m 22s ⏱️ Max setup 4m 42s · max shard execution 18m 50s · max shard-job elapsed before upload 22m 31s · reporting 3s 🌐 232.33 requests/attempt · 2.24 app boots/UI scenario · 39.20% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Describe your changes:
Compile Less in-process by setting
preprocessorMaxWorkers: 0invite.config.ts.Vite runs Less compilation in a worker pool by default (
preprocessorMaxWorkers: true). Under CI resource pressure, a Less worker can crash mid-compile and return an error object without a.messageproperty; Vite's error handler then throwsTypeError: Cannot read properties of undefined (reading 'message')while trying to format the message, and the build fails on a stylesheet that is itself valid.Reproduced this failure from the RDF CI build using the existing application stylesheets. See failure signature in
maven-sonarcloud-cion #33794 — a Java-only PR whose diff cannot touch Less, but which still tripped this oncomponents/Customization/GenericTab/generic-tab.less:9:0.Type of change:
Tests:
Validated 10 stress builds and five full builds of each release/coarse variant with zero failures. All 860 coarse JavaScript/CSS artifacts match the browser-validated output byte for byte — no runtime change.
Notes:
Cherry-picked from #33088 (commit
f1a7cac26a) to land as a small, independently-mergeable PR. Original commit authored by @harshach.🤖 Generated with Claude Code
The PR appears safe to merge because the configuration value is supported and directly addresses the reported worker-pool instability.
Summary
This PR makes Less compilation run in-process to avoid intermittent worker crashes during UI builds.
css.preprocessorMaxWorkersfromtrueto0.Reviews (1) · Last reviewed commit: "fix(ui): avoid intermittent Less worker ..."