Skip to content

Update Node.js to 24.22.1 and restore branch-10-X CI - #8230

Merged
vdiez merged 23 commits into
branch-10-Xfrom
codex/node-runtime-24.22.1-10-x
Oct 23, 2026
Merged

vdiez merged 23 commits into
branch-10-Xfrom
codex/node-runtime-24.22.1-10-x

Conversation

@vdiez

@vdiez vdiez commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Update the embedded Node.js runtime on branch-10-X from 22.11.0.20 to the promoted 24.22.1.10229 artifact, 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 on sonar-xl, Linux QA and JavaScript tests on sonar-m, Windows builds/tests on warp-custom-windows-2022-m, and setup/promotion on sonar-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@v2 action on Linux and matching development Edge credentials on Windows, targeting repox-internal.dev.sonar.build. The npm action reuses the existing build number. Keep public tarball URLs on npmjs and set NPM_CONFIG_REPLACE_REGISTRY_HOST=npmjs so 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 use repox-internal.sonar.build with the dedicated production Edge private-reader token and an explicit configuration file. Upgrade Orchestrator to 6.4.4.4797. Adapt the legacy ruling test APIs and manage Commons Lang 3.21.0 centrally, matching master, so the older Sonar test API cannot select an incompatible runtime dependency. Maven publishing and promotion retain https://repox.jfrog.io/artifactory with SaaS deployer/promoter credentials. Match master’s promote@v2 and 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 promote job 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. Version 10.26.1.46348 was promoted to sonarsource-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.getIfNull failure using the module’s resolved classpath before the fix; after changing only Commons Lang from 3.17.0 to 3.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 --check passed with no new diagnostics.

  • Npm registry validation: offline npm ci --dry-run --ignore-scripts passed 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.1 and compatibility QA for Node 22.

  • Committed JavaScript/CSS rule metadata is unchanged; git diff --check passed.

  • 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.

@vdiez
vdiez marked this pull request as ready for review October 22, 2026 17:35
@vdiez vdiez changed the title Update embedded Node.js to 24.22.1 on branch-10-X Update Node.js to 24.22.1 and restore branch-10-X CI Oct 22, 2026
@datadog-sonarsource

This comment has been minimized.

Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
vdiez added 6 commits October 22, 2026 21:57
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.
Comment thread pom.xml Resolved
gitar-bot[bot]

This comment was marked as resolved.

@gitar-bot
gitar-bot Bot dismissed their stale review October 22, 2026 22:31

✅ All code review findings resolved.

Configure merge blocking

@gitar-bot

gitar-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
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).

Overview

Two 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.

Failures

JS tests worker failure in packages/bridge/tests/server.test.ts (confidence: medium)

  • Type: test
  • Affected jobs: 120321976710 (JS tests on Linux with embedded Node version)
  • Related to change: unclear
  • Root cause: 2 tests failed overall (756 pass, 2 fail), but the log only shows details for with worker at packages/bridge/tests/server.test.ts:73:15, which reports an ErrorEvent without the underlying exception or stack trace. The job runs with the embedded Node version that this PR updates to 24.22.1, but the log does not show the failing test ran under that version or that the change caused the error. The second failed test has no details in the excerpt.
  • Suggested fix: Capture the worker's underlying error and stack trace, reproduce packages/bridge/tests/server.test.ts under the embedded Node 24.22.1 runtime, fix the worker failure if it reproduces, and identify the second failing test from the full log.

ESLint 8 integration job: Java 21 download reset during mise setup (confidence: high)

  • Type: infrastructure
  • Affected jobs: 120321976588 (ESLint 8 integration tests)
  • Related to change: no
  • Root cause: mise failed to install core:[email protected] with "Connection reset by peer (os error 104)" while reading the response body. Node 24.22.1 and Maven installed successfully before this, so the failure is a transient network or download issue, not a test or build error.
  • Suggested fix: Retry the job. If it recurs, check network access to the Java download source and consider download retries or caching the Java runtime.

Summary

  • Change-related failures: None confirmed. One test failure (with worker, packages/bridge/tests/server.test.ts) is unclear and may relate to the Node 24.22.1 update.
  • Infrastructure/flaky failures: One infrastructure failure (transient Java download reset in the ESLint 8 job), unrelated to the PR. No flakiness was established.
  • Recommended action: Get the full stack trace for the worker ErrorEvent and the second failed test by reproducing under Node 24.22.1. Retry the ESLint 8 job for the transient download failure.
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 branch-10-X to 24.22.1 with Orchestrator 6.4.4.4797, restores the legacy branch-protection check names, and aligns CI with master's runner and Edge configuration. Three issues were resolved this session: the ! command -v node check under sh -e in Alpine QA, the deprecated github-ubuntu-latest-s runner in the releasability job, and the Orchestrator 6 bump breaking its/ruling compilation via getConfiguration. No open findings remain.

✅ 3 closed
✅ Bug: ! command -v node under sh -e doesn't stop the Alpine QA

📄 .github/workflows/build.yml:356-357
The Alpine embedded-runtime QA script starts with ! command -v node inside sh -ec, to fail the job if the image already has Node. POSIX shells ignore set -e for any command negated with !, so this line can never abort the script. I checked this locally: sh -ec '! true; echo still-running' prints still-running. If a future maven:*-alpine image ships Node, Maven still runs and the job passes without proving the analyzer deployed the bundled musl runtime. Use an explicit check that exits.

✅ Quality: Releasability job still uses deprecated github-ubuntu-latest-s runner

📄 .github/workflows/build.yml:475-479
This commit moves every build.yml job off the legacy github-ubuntu-latest-* / github-windows-latest-* labels, but releasability (line 477) still has runs-on: github-ubuntu-latest-s. SonarSource deprecated that label for first-party CI with a 2026-08-31 deadline and named sonar-s as the same-size replacement (sonar-dummy-js#149). master runs its releasability job on sonar-xs. Releasability is the last step after promotion on branch-10-X. If no runner serves the old label anymore, the job sits in the queue and the releasability status is never posted, which blocks maintenance releases. Switch it to an approved label, as the rest of this commit does.

✅ Bug: Orchestrator 6 bump breaks its/ruling compilation (getConfiguration)

📄 pom.xml:73
This commit raises sonar-orchestrator.version from 5.6.2.2625 to 6.4.4.4797, but JsTsRulingTest.installScanner() still calls orchestrator.getConfiguration().locators(). Orchestrator v6 removed that accessor. When master moved to v6 (commit edd4853, "Update dependency ... sonar-orchestrator-junit5 to v6"), it had to change this same line to orchestrator.getLocators(). branch-10-X split from master in June 2025, before that change, so it still has the old call. As a result the its/ruling test sources fail to compile, and both the js_ts_ruling and ruling jobs fail before running any tests. That also blocks promote, which depends on both jobs. Backport master's one-line API change.

Verification Rules 3/3 met PRs 1 inspected

Functional validation No results

Rules 3 passed

✅ Approved GitHub Actions runners
✅ Internal artifact registries
✅ Repository license compliance

Broader impact PRs 1 inspected
Cross-PR 1 PR inspected 0 open impacts

PR 8212: JS-2714 Ship Node.js runtime binaries as an on-demand resources ZIP instead of bundling them in the JAR Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqube-next

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
Vulnerability dependency risks too severe (required < 'medium' severity)

See analysis details on SonarQube

@vdiez
vdiez merged commit 8372c2a into branch-10-X Oct 23, 2026
61 of 64 checks passed
@vdiez
vdiez deleted the codex/node-runtime-24.22.1-10-x branch October 23, 2026 09:19
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