Skip to content

JS-2728 Update embedded Node.js to 24.22.1 on branch-11-X - #8228

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

vdiez merged 12 commits into
branch-11-Xfrom
codex/node-runtime-24.22.1-11-x

Conversation

@vdiez

@vdiez vdiez commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Updates branch-11-X (SonarQube Server 2026.1 LTA) to the promoted Node.js runtime 24.22.1.10229, matching #8227 and including the Brotli decoder security fix.

The maintenance workflow failed with HTTP 403 because build-number allocation now needs contents: write. Allocate the build number once in a dedicated job and pass it to all Maven, analysis, QA, and promotion jobs. Use the versioned @v2 build-number and Maven configuration actions.

Backport the tsconfig discovery ordering fix from #6478. Overlapping projects previously selected different TypeScript libraries depending on filesystem traversal order, causing the unrelated S7728 ruling failure. Sort discovered configs and preserve explicitly configured order. Include the original integration-test adjustments and regression tests for both discovery orders.

Review and update six ruling expectations produced by the fix: three S7728 findings in TypeScript, plus the same five Vuetify fixture changes as #6478 (seven added findings and 1,101 removed S4328 findings). Keep the ruling bot's automatic commits and PR comments disabled; ruling checks continue to run.

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.

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 and the fast-test harness to 1.5.0.1412. 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. Match master’s production Orchestrator cache isolation and release-automation runner and permissions.

Validation:

  • Edge migration validation: plugin QA and ruling test compilation passed, including all 26 fast-test classes; 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. Full CI validation is running on the updated head.
  • Npm registry validation: offline npm ci --dry-run --ignore-scripts passed for the root and all normalized lockfiles; workflow validation introduced no new diagnostics.
  • Maven reactor validation and runtime extraction passed; all six platform manifests report v24.22.1.
  • All 16 Maven and promotion jobs reuse the shared build number; CI verified allocation and Maven configuration on Linux and Windows.
  • TypeScript application and test compilation passed.
  • All 69 focused analysis and S7728 tests passed, including the new ordering regressions.
  • All 50 ruling projects match their expectations using the pinned source revision and Node 24.11.0; reruns of TypeScript and Vuetify passed after the reviewed updates.
  • The five Vuetify fixture deltas exactly match the original master fix.
  • Formatting and 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 introduced no new diagnostics (two existing expression warnings remain).

Summary by Gitar

  • Release notifications:
    • Switched maintenance release Slack notifications from ask-squad-web to squad-corelang-releases in release.yml and automated-release.yml
  • Memory configuration:
    • Warn about heap size using the lower of host and Docker memory limits via getAvailableMemory in memory.ts
  • npm registry:
    • Switched CI npm configuration to config-npm@v2 with the repox-internal registry in build.yml
  • Release workflow:
    • Removed the published-release trigger from release.yml and pinned gh-action_release to 7.8.0
  • QA orchestrator:
    • Configured a production Orchestrator from Artifactory credentials and made its cache optional via the orchestrator-cache action

This will update automatically on new commits.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Update embedded Node.js to 24.22.1 on branch-11-X JS-2728 Update embedded Node.js to 24.22.1 on branch-11-X Oct 22, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

JS-2728

@datadog-sonarsource

datadog-sonarsource Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2e29fd8 | Docs | Give us feedback!

@github-actions

Copy link
Copy Markdown
Contributor

Ruling Report

New issues flagged (621948 issues)

CommentRegexTest

Ghost/Gruntfile.js:265

   263 |             mocha_istanbul: {
   264 |                 coverage: {
>  265 |                     // TODO fix the timing/async & cleanup issues with the route and integration tests so that
   266 |                     // they can also have coverage generated for them & the order doesn't matter
   267 |                     src: ['core/test/unit'],

Ghost/core/client/app/adapters/user.js:9

     7 |     },
     8 | 
>    9 |     // TODO: This is needed because the API currently expects you to know the
    10 |     // status of the record before retrieving by ID. Quick fix is to always
    11 |     // include status=all in the query

Ghost/core/client/app/components/gh-profile-image.js:119

   117 |             this.set('hasUploadedImage', true);
   118 |             // necessary jQuery code because file.preview is a raw DOM object
>  119 |             // potential todo: rename 'gravatar-img' class in the CSS to be something
   120 |             // that both the gravatar and the image preview can use that's not so confusing
   121 |             this.$('.js-img-preview').empty().append(this.$(file.preview).addClass('gravatar-img'));

Ghost/core/client/app/components/modals/invite-new-user.js:45

    43 |     willDestroyElement() {
    44 |         this._super(...arguments);
>   45 |         // TODO: this should not be needed, ValidationEngine acts as a
    46 |         // singleton and so it's errors and hasValidated state stick around
    47 |         this.get('errors').clear();

Ghost/core/client/app/components/modals/invite-new-user.js:54

    52 |         let email = this.get('email');
    53 | 
>   54 |         // TODO: either the validator should check the email's existence or
    55 |         // the API should return an appropriate error when attempting to save
    56 |         return new Promise((resolve, reject) => {

Ghost/core/client/app/components/modals/invite-new-user.js:69

    67 |                         }
    68 | 
>   69 |                         // TODO: this shouldn't be needed, ValidationEngine doesn't mark
    70 |                         // properties as validated when validating an entire object
    71 |                         this.get('hasValidated').addObject('email');

Ghost/core/client/app/components/modals/invite-new-user.js:78

    76 |                 });
    77 |             }, () => {
>   78 |                 // TODO: this shouldn't be needed, ValidationEngine doesn't mark
    79 |                 // properties as validated when validating an entire object
    80 |                 this.get('hasValidated').addObject('email');

Ghost/core/client/app/controllers/settings/labs.js:74

    72 |                 // Reload currentUser and set session
    73 |                 this.set('session.user', this.store.findRecord('user', currentUserId));
>   74 |                 // TODO: keep as notification, add link to view content
    75 |                 notifications.showNotification('Import successful.', {key: 'import.upload.success'});
    76 |             }).catch((response) => {

Ghost/core/client/app/controllers/settings/navigation.js:123

   121 |             });
   122 |         }).catch(() => {
>  123 |             // TODO: noop - needed to satisfy spinner button
   124 |         });
   125 |     },

Ghost/core/client/app/controllers/settings/tags.js:18

    16 |     tagContentFocused: equal('keyboardFocus', 'tagContent'),
    17 | 
>   18 |     // TODO: replace with ordering by page count once supported by the API
    19 |     tags: sort('model', function (a, b) {
    20 |         let idA = +a.get('id');

...and 621938 more (see ruling JSON files for full list)


✅ Ruling has been updated. To re-run CI, either:

  • Close and reopen this PR, or
  • Run: git pull && git commit --allow-empty -m 'Trigger CI' && git push

vdiez added 2 commits October 22, 2026 18:23
Backport the ordering fix and integration-test adjustments from 4a2116a (#6478). Preserve maintenance-branch cache initialization and add regression tests for discovery and explicit configuration order.

Review and update the three TypeScript S7728 findings and the same five Vuetify fixture deltas as the master fix. All 50 ruling projects match their expectations; 69 focused tests and TypeScript compilation pass.
@vdiez
vdiez enabled auto-merge (squash) October 22, 2026 17:20
vdiez added 7 commits October 22, 2026 20:46
Reuse master runner sizes and fixed ruling parallelism of eight. Backport the cgroup-aware memory warning and regression tests from b996564; disable every Node executable before embedded-runtime QA on container runners.
Use shared config-npm on Linux and master Windows registry setup with one allocated build number. Configure ESLint integration jobs explicitly and normalize the remaining fixture lockfile URLs without changing dependency versions or integrity.
@gitar-bot

gitar-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🔴 High risk · CI changes grant write permissions and redirect Maven publishing, which could enable unintended repository writes or publish artifacts to the wrong endpoint.

Updates branch-11-X to Node.js 24.22.1 with a backported tsconfig discovery ordering fix, CI runner and Edge registry alignment with master, and the Container-aware memory warning. The glob-matched tsconfigPaths ordering issue, which had given matched paths rank -1 and broken the provided order, has been resolved. No open issues found.

✅ 1 closed
✅ Bug: Glob-matched tsconfigPaths get rank -1, breaking provided order

📄 packages/jsts/src/analysis/projectAnalysis/file-stores/tsconfigs.ts:278-281 📄 its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java:154-157 📄 packages/jsts/tests/analysis/tsconfigs.test.ts:75-89
postProcess sorts foundPropertyTsConfigs by providedOrder.indexOf(a). processFile also accepts files that only match a provided entry's Minimatch pattern, such as **/custom.tsconfig.json. Those files are never string-equal to a provided path, so indexOf returns -1 and they sort ahead of every literally listed config. This goes against the comment's promise to keep the user's order from sonar.typescript.tsconfigPaths. The flipped assertion in TypeScriptAnalysisTest.should_use_multiple_custom_tsconfigs shows it: the user sets tsconfig.json,**/custom.tsconfig.json, but the test now expects dir/custom.tsconfig.json first.

The ordering also stays nondeterministic, which this PR is meant to fix. Every config matched by the same glob (for example **/tsconfig.json) shares rank -1, and the stable sort keeps them in filesystem traversal order. The new unit test only uses literal paths, so it never runs this case. Fix: rank each file by the index of the first provided entry it matches (equal path or pattern match), break ties by path, and change the IT back to the user's order.

Verification Rules 3/3 met Knowledge ✅ 1 PRs 2 inspected

Functional validation No results

Rules 3 passed

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

Knowledge ✅ 1 expectation met

Expectation met Pull requests skip Orchestrator cache restores expectation met

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

PR 8230: Update Node.js to 24.22.1 and restore branch-10-X CI Inspected
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.

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
3 New issues

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE

@vdiez
vdiez disabled auto-merge October 23, 2026 08:24
@vdiez
vdiez merged commit 98284fe into branch-11-X Oct 23, 2026
38 of 39 checks passed
@vdiez
vdiez deleted the codex/node-runtime-24.22.1-11-x branch October 23, 2026 08:24
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