Skip to content

refactor nodejs build code#2087

Merged
loosebazooka merged 1 commit into
mainfrom
node_build_style
May 13, 2026
Merged

refactor nodejs build code#2087
loosebazooka merged 1 commit into
mainfrom
node_build_style

Conversation

@loosebazooka
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Appu <appu@google.com>
@loosebazooka loosebazooka requested a review from omBratteng May 13, 2026 17:14
@github-actions
Copy link
Copy Markdown
Contributor

🌳 🔧 Config Check

This pull request has not modified the root BUILD

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the Node.js image build process by moving package management from hardcoded logic in nodejs.bzl to a configurable mapping in config.bzl. Feedback focuses on maintaining backward compatibility by providing a default value for the new packages argument, optimizing the construction of package tars outside of nested loops, using safer dictionary access to prevent build failures, and restoring documentation regarding the libatomic1 requirement.

Comment thread nodejs/nodejs.bzl
Comment thread nodejs/BUILD
Comment thread nodejs/config.bzl
@github-actions
Copy link
Copy Markdown
Contributor

🌳 🔄 Image Check

This pull request has modified the following images:

//nodejs:nodejs26_nonroot_amd64_debian13
//nodejs:nodejs26_root_amd64_debian13
//nodejs:nodejs26_debug_root_amd64_debian13
//nodejs:nodejs26_debug_nonroot_amd64_debian13
//nodejs:nodejs26_root_amd64_debian13
//nodejs:nodejs26_debug_nonroot_arm64_debian13
//nodejs:nodejs26_debug_root_arm64_debian13
//nodejs:nodejs26_nonroot_amd64_debian13
//nodejs:nodejs26_debug_root_arm64_debian13
//nodejs:nodejs26_root_arm64_debian13
//nodejs:nodejs26_debug_root_amd64_debian13
//nodejs:nodejs26_debug_root_s390x_debian13
//nodejs:nodejs26_root_s390x_debian13
//nodejs:nodejs26_debug_nonroot_s390x_debian13
//nodejs:nodejs26_debug_root_s390x_debian13
//nodejs:nodejs26_debug_nonroot_s390x_debian13
//nodejs:nodejs26_nonroot_s390x_debian13
//nodejs:nodejs26_nonroot_s390x_debian13
//nodejs:nodejs26_debug_nonroot_arm64_debian13
//nodejs:nodejs26_debug_root_ppc64le_debian13
//nodejs:nodejs26_root_ppc64le_debian13
//nodejs:nodejs26_nonroot_arm64_debian13
//nodejs:nodejs26_nonroot_arm64_debian13
//nodejs:nodejs26_root_arm64_debian13
//nodejs:nodejs26_nonroot_ppc64le_debian13
//nodejs:nodejs26_debug_root_ppc64le_debian13
//nodejs:nodejs26_root_ppc64le_debian13
//nodejs:nodejs26_root_s390x_debian13
//nodejs:nodejs26_debug_nonroot_amd64_debian13
//nodejs:nodejs26_debug_nonroot_ppc64le_debian13
//nodejs:nodejs26_debug_nonroot_ppc64le_debian13
//nodejs:nodejs26_nonroot_ppc64le_debian13

You can check the details in the report here

@loosebazooka loosebazooka merged commit 4cb7c3c into main May 13, 2026
14 checks passed
@loosebazooka loosebazooka deleted the node_build_style branch May 13, 2026 19:32
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.

3 participants