Skip to content

[Synthetics] Upgrade Nodejs to v22.22.2#49815

Merged
mcapell merged 1 commit intoelastic:mainfrom
mcapell:mcapell/chore/bump-hb-node-22.22.2
Mar 31, 2026
Merged

[Synthetics] Upgrade Nodejs to v22.22.2#49815
mcapell merged 1 commit intoelastic:mainfrom
mcapell:mcapell/chore/bump-hb-node-22.22.2

Conversation

@mcapell
Copy link
Copy Markdown
Contributor

@mcapell mcapell commented Mar 31, 2026

Proposed commit message

Upgrade NodeJS version to v22.22.2 on heartbeat

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

Upgrade NodeJS version to v22.22.2 on heartbeat
@mcapell mcapell requested a review from a team as a code owner March 31, 2026 15:09
@mcapell mcapell requested review from mauri870 and orestisfl March 31, 2026 15:09
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mcapell mcapell requested a review from emilioalvap March 31, 2026 15:10
@mcapell mcapell added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Mar 31, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 31, 2026
@mcapell mcapell added dependency backport-active-all Automated backport with mergify to all the active branches labels Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @mcapell? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

📝 Walkthrough

Walkthrough

The pull request upgrades Node.js to version 22.22.2 across the heartbeat component. Changes include a new changelog fragment documenting the dependency upgrade and modifications to the Dockerfile template. The Wolfi-based setup stage updates nodejs-22 from 22.22.0-r0 to 22.22.2-r0 and npm from 11.4.2-r1 to 11.12.0-r1. The ubi9-minimal stage updates the NODE_VERSION environment variable from 22.22.0 to 22.22.2. These changes align the pinned versions used during Docker image builds.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • 🛠️ Update Documentation: Commit on current branch
  • 🛠️ Update Documentation: Create PR

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@dev-tools/packaging/templates/docker/Dockerfile.tmpl`:
- Line 136: The Dockerfile template pins Node.js to 22.22.2
(nodejs-22=22.22.2-r0) but CI pipelines still pin 22.20.0 via
ASDF_NODEJS_VERSION and NODEJS_VERSION; update the CI variable values to match
the Dockerfile or alternatively downgrade the Dockerfile pin to 22.20.0 so all
environments align. Locate the apk add line with nodejs-22=22.22.2-r0 and the CI
variables ASDF_NODEJS_VERSION and NODEJS_VERSION in your pipeline configs and
make them consistent (same major/minor/patch), then run CI to confirm no
runtime/test divergence.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 64b52d4b-461d-4571-b5cd-42b565b9d4d2

📥 Commits

Reviewing files that changed from the base of the PR and between 5c83897 and 52c9429.

📒 Files selected for processing (2)
  • changelog/fragments/1774969420-dependency-upgrade-nodejs-v22.22.2.yaml
  • dev-tools/packaging/templates/docker/Dockerfile.tmpl

@mcapell mcapell enabled auto-merge (squash) March 31, 2026 16:44
@mcapell mcapell merged commit 96df70e into elastic:main Mar 31, 2026
218 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

@Mergifyio backport 8.19 9.2 9.3

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

backport 8.19 9.2 9.3

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Mar 31, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)
mergify bot pushed a commit that referenced this pull request Mar 31, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)
mergify bot pushed a commit that referenced this pull request Mar 31, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)
mcapell added a commit that referenced this pull request Apr 1, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)

Co-authored-by: Marc Capell <marc.capell@elastic.co>
mcapell added a commit that referenced this pull request Apr 1, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)

Co-authored-by: Marc Capell <marc.capell@elastic.co>
mcapell added a commit that referenced this pull request Apr 1, 2026
Upgrade NodeJS version to v22.22.2 on heartbeat

(cherry picked from commit 96df70e)

Co-authored-by: Marc Capell <marc.capell@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches dependency Team:obs-ds-hosted-services Label for the Observability Hosted Services team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants