Skip to content

test: fix Linux debug skip in SEA test guard - #63751

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
guhyunwoo:fix/sea-linux-debug-skip
Aug 21, 2026
Merged

test: fix Linux debug skip in SEA test guard#63751
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
guhyunwoo:fix/sea-linux-debug-skip

Conversation

@guhyunwoo

Copy link
Copy Markdown
Contributor

process.config.variables.is_debug is only populated by the GN build flow (tools/generate_config_gypi.py). As a result, on the gyp builds used by CI the guard never fired, causing SEA tests to run on Linux debug builds contrary to the original intent.

Verified locally that 'is_debug' in process.config.variables evaluates to false on a gyp release build.

Switch to checking process.config.target_defaults.default_configuration === 'Debug' instead, matching the approach already used in test/common/index.js.

Fixes: #63749
Refs: #61483

process.config.variables.is_debug is only populated by the GN build
flow (tools/generate_config_gypi.py), so on the gyp builds used by CI
the guard never fired and SEA tests ran on Linux debug builds against
the original intent. Switch to
process.config.target_defaults.default_configuration === 'Debug',
matching the pattern used in test/common/index.js.

Fixes: nodejs#63749
Refs: nodejs#61483
Signed-off-by: Hyunwoo Gu <realization0327@gmail.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Jun 5, 2026
Comment thread test/common/sea.js Outdated
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
@guhyunwoo
guhyunwoo requested a review from joyeecheung July 14, 2026 23:39
@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 20, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 20, 2026
@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 19, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 19, 2026
@richardlau richardlau added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels Aug 21, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 9ea6182 into nodejs:main Aug 21, 2026
48 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 9ea6182

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Aug 21, 2026
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
process.config.variables.is_debug is only populated by the GN build
flow (tools/generate_config_gypi.py), so on the gyp builds used by CI
the guard never fired and SEA tests ran on Linux debug builds against
the original intent. Switch to
process.config.target_defaults.default_configuration === 'Debug',
matching the pattern used in test/common/index.js.

Fixes: #63749
Refs: #61483
Signed-off-by: Hyunwoo Gu <realization0327@gmail.com>
PR-URL: #63751
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
process.config.variables.is_debug is only populated by the GN build
flow (tools/generate_config_gypi.py), so on the gyp builds used by CI
the guard never fired and SEA tests ran on Linux debug builds against
the original intent. Switch to
process.config.target_defaults.default_configuration === 'Debug',
matching the pattern used in test/common/index.js.

Fixes: #63749
Refs: #61483
Signed-off-by: Hyunwoo Gu <realization0327@gmail.com>
PR-URL: #63751
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 27, 2026
process.config.variables.is_debug is only populated by the GN build
flow (tools/generate_config_gypi.py), so on the gyp builds used by CI
the guard never fired and SEA tests ran on Linux debug builds against
the original intent. Switch to
process.config.target_defaults.default_configuration === 'Debug',
matching the pattern used in test/common/index.js.

Fixes: #63749
Refs: #61483
Signed-off-by: Hyunwoo Gu <realization0327@gmail.com>
PR-URL: #63751
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue-squash PRs the Commit Queue should land as one squashed commit. needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure.

5 participants