Repository navigation
Update Node.js to 24.22.1 and restore branch-10-X CI - #8230
Conversation
This comment has been minimized.
This comment has been minimized.
Reuse master runner sizes and fixed ruling parallelism of eight. Backport the cgroup-aware memory warning and regression tests from b996564, replacing the host-memory integration-test workaround.
Configure the development Edge registry with its matching credentials, following master Linux and Windows setup. Normalize public dependency lockfile URLs to npmjs without changing versions or integrity so CI registry selection applies consistently.
✅ All code review findings resolved.
CI failed: One JS test job failed on a worker test (`with worker` in packages/bridge/tests/server.test.ts:73:15) with an unexplained ErrorEvent, relationship to the Node 24.22.1 update unclear; a separate ESLint 8 job failed on a transient Java download reset (infrastructure, unrelated to the PR).OverviewTwo unique error templates across 37 analyzed logs. One is a test failure with an unclear relationship to the PR, the other a transient infrastructure failure. No failure is clearly caused by the change, and the logs don't yet establish a root cause for the test failure. FailuresJS tests worker failure in packages/bridge/tests/server.test.ts (confidence: medium)
ESLint 8 integration job: Java 21 download reset during mise setup (confidence: high)
Summary
Code Review ✅ Approved 3 closed / 3 findings🟡 Medium risk · Replacing Cirrus with a new GitHub Actions build/promotion path and manual release trigger could disrupt maintenance artifact publication or releases. Updates the embedded Node.js runtime on ✅ 3 closed✅ Bug:
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|


Update the embedded Node.js runtime on
branch-10-Xfrom22.11.0.20to the promoted24.22.1.10229artifact, matching #8227 and #8228 and including the Brotli decoder security fix.Cirrus is decommissioned, so this branch also needs a working CI and artifact promotion path. The GitHub Actions workflow builds and tests on Linux and Windows, runs plugin QA with Node 22 and the embedded Node version, validates embedded deployment on Ubuntu and Alpine, runs JS/TS and CSS ruling, analyzes on NEXT, and promotes PR and maintenance branch artifacts after the required jobs succeed. Manual runs on work branches validate CI without promotion. Maven configuration, QA and promotion share one allocated build number. Releasability follows promotion, and the release workflow supports the current shared release action and manual dispatch.
Builds use the rule metadata committed to this branch. Remove RSPEC download and rule-data copying from the Maven lifecycle; Java check classes and TypeScript metadata are still generated locally from committed data. CI generates TypeScript metadata before parallel Maven modules consume it and verifies that packaged rule metadata has not changed. Ruling jobs report differences for review without a commit bot.
Raise the combined plugin size cap from 110 MB to 130 MB because the Node 24 archives bring the artifact to approximately 119 MB. Update legacy runner labels and normalize source line endings for Windows. Test resources use platform-aware destinations and relative glob patterns so compiled tests can run on Windows.
Maintenance QA explicitly activates a test profile containing the CSS empty-block rule, because current SonarQube releases default to a different built-in profile. Backport master’s SonarHTML 3.24 metric expectations and resolve Windows short temporary paths before constructing test input files. Alpine receives the shared Maven settings’ repository URL and credentials and uses the mounted Maven configuration directory.
Reuse master’s CI runner assignments: Linux builds on
sonar-l, ruling onsonar-xl, Linux QA and JavaScript tests onsonar-m, Windows builds/tests onwarp-custom-windows-2022-m, and setup/promotion onsonar-xs. Use master’s fixed JUnit ruling parallelism of eight instead of the container host’s CPU count. Backport master’s container-aware memory warning and regression tests: compare the Node heap with the lower of host RAM and the Docker limit, preserving the existing integration-test warning assertion.Alpine runs this branch’s larger legacy Orchestrator suite on
warp-custom-ubuntu-24-04-l, the existing 32 GB Docker runner, with fixed JUnit parallelism of four. The 16 GB runner exhausted memory even with four classes; the previous Cirrus allocation was 40 GB. Keep the cap independent of the larger host’s CPU count and record host/container resource usage in the job log. Both analysis profiles and all QA tests remain covered.Use master’s npm registry configuration: the shared
config-npm@v2action on Linux and matching development Edge credentials on Windows, targetingrepox-internal.dev.sonar.build. The npm action reuses the existing build number. Keep public tarball URLs on npmjs and setNPM_CONFIG_REPLACE_REGISTRY_HOST=npmjsso CI registry selection applies consistently. Normalize the remaining JFrog URLs in tracked lockfiles without changing dependency versions or integrity hashes.Use master’s Edge configuration throughout CI: Maven and npm dependencies resolve through
repox-internal.dev.sonar.build; Orchestrator downloads userepox-internal.sonar.buildwith the dedicated production Edge private-reader token and an explicit configuration file. Upgrade Orchestrator to6.4.4.4797. Adapt the legacy ruling test APIs and manage Commons Lang3.21.0centrally, matching master, so the older Sonar test API cannot select an incompatible runtime dependency. Maven publishing and promotion retainhttps://repox.jfrog.io/artifactorywith SaaS deployer/promoter credentials. Match master’spromote@v2and manual release workflow using[email protected]; the release action manages the GitHub release from the supplied version.Preserve the legacy branch-protection check names without changing repository settings. The Linux build, Windows build, JS/TS ruling and promotion jobs use the same names as 11.x. Six explicitly marked compatibility placeholders always succeed for the remaining legacy names (Knip, npm cache population, ESLint plugin build, Node 24.0.0 QA and fast QA, and Ubuntu QA without Node). The required
promotejob still depends on every real build, test and QA job; the placeholders do not replace that coverage.Validation:
Required-check compatibility: all ten branch-protection names are present (four real jobs and six placeholders). Workflow linting passed; configuration comparison confirms existing job commands, permissions and promotion dependencies are unchanged. CI is rerunning on the updated head.
Full Build workflow passed on
28457ed4d: Linux and Windows builds/tests, all Node and embedded-runtime QA profiles, JS/TS and CSS ruling, NEXT analysis execution, and PR artifact promotion. Version10.26.1.46348was promoted tosonarsource-public-dev. The separate SonarQube Quality Gate findings are outside this change.Alpine: both profiles passed all 74 plugin tests and 11 SonarLint tests with zero failures, errors or skips. The lowest sampled available host memory was 16,113 MiB on the 32 GB runners. A probe using the QA module’s JUnit version reported 128 CPUs, passed all 40 tests and held peak concurrency at four.
QA runtime dependency validation: reproduced the exact
ObjectUtils.getIfNullfailure using the module’s resolved classpath before the fix; after changing only Commons Lang from3.17.0to3.21.0, Orchestrator configuration and database initialization pass. Clean test compilation passes for all eight integration-test modules.Edge migration validation: plugin QA and ruling test compilation passed; standalone and shaded Orchestrator routing probes select the authenticated resolver for production Edge. Workflow checks, private configuration-file generation, and
git diff --checkpassed with no new diagnostics.Npm registry validation: offline
npm ci --dry-run --ignore-scriptspassed for the root and all normalized lockfiles; workflow validation introduced no new diagnostics.Parallel Maven reactor packaging, tests and installation passed after removing and regenerating ignored TypeScript metadata from committed data, with the updated size cap.
All six runtime archives unpack successfully and report
v24.22.1.TypeScript application and test compilation and bridge bundling passed using the extracted Node 24.22.1 runtime.
All 755 compiled JavaScript bridge tests passed on that runtime after copying test resources (432 suites; no failures, skips or cancellations).
Java reactor tests passed: 508 tests, zero failures or errors, one skipped test (including both Node deprecation warning tests).
GitHub Actions workflow linting passed after expanding YAML aliases; the version setup script produces Node
24.22.1and compatibility QA for Node22.Committed JavaScript/CSS rule metadata is unchanged;
git diff --checkpassed.Master-alignment validation: five memory tests and TypeScript application/test compilation passed; a JUnit probe reporting 128 CPUs completed all 40 tests with peak concurrency eight. Workflow runner mappings and Bash syntax passed; actionlint passed.