Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix execArgv in worker #53029

Merged
merged 1 commit into from
May 23, 2024

Conversation

theanarkh
Copy link
Contributor

Fixes: #53011

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support. labels May 16, 2024
@theanarkh theanarkh force-pushed the fix_exec_argv_in_worker branch 3 times, most recently from a5961c7 to 07b3e88 Compare May 16, 2024 19:07
@anonrig anonrig added the request-ci Add this label to start a Jenkins CI on a PR. label May 16, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 16, 2024
@nodejs-github-bot

This comment was marked as outdated.

test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
@theanarkh theanarkh added the request-ci Add this label to start a Jenkins CI on a PR. label May 18, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 18, 2024
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

test/parallel/test-worker-cli-options.js Outdated Show resolved Hide resolved
@theanarkh theanarkh added the request-ci Add this label to start a Jenkins CI on a PR. label May 21, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 21, 2024
@nodejs-github-bot
Copy link
Collaborator

Copy link
Contributor

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

In the future we can consider relaxing the check even more, to be "throw if there is any invalid execArgv that was not also an execArgv of the parent", so that these other test cases would pass:

// allow explicitly passing the default execArgv value
new Worker(CODE, { eval: true, execArgv: process.execArgv });
// run with the worker with the same config as the parent, except for --expose-internals
new Worker(CODE, { eval: true, execArgv: process.execArgv.filter(n => n !== "--expose-internals" });

@theanarkh theanarkh added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 23, 2024
@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label May 23, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 23, 2024
@nodejs-github-bot nodejs-github-bot merged commit c137d6e into nodejs:main May 23, 2024
59 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in c137d6e

targos pushed a commit that referenced this pull request Jun 1, 2024
PR-URL: #53029
Fixes: #53011
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
lukins-cz pushed a commit to lukins-cz/OS-Aplet-node that referenced this pull request Jun 1, 2024
PR-URL: nodejs#53029
Fixes: nodejs#53011
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v22.2.0 regression] Some Worker use cases are broken
7 participants