FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert "src: make sure pass the `argv` to worker threads" by nicolo-ribaudo · Pull Request #53021 · nodejs/node · GitHub

/ node Public

Revert "src: make sure pass the argv to worker threads" - #53021

Closed
nicolo-ribaudo wants to merge 2 commits into
nodejs:mainfrom
nicolo-ribaudo:fix-22.2-worker-regression
Closed

Revert "src: make sure pass the argv to worker threads"#53021
nicolo-ribaudo wants to merge 2 commits into
nodejs:mainfrom
nicolo-ribaudo:fix-22.2-worker-regression

Conversation

nicolo-ribaudo commented May 16, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

aba4a00 introduced a regression, making it impossible to use Worker's env option when the process is start with process-specific flags, such as --title or --expose_gc. See the new test case, in which all the three new Worker() calls fail.

aba4a00 was released yesterday in 22.2.0.

Commit 1:

worker: Add test for env option when using process-only cli flag

It should be possible to pass the env option to a worker
even when the parent process is using a process-level flag, such
as --title or a V8-specific flag.

This test is currently failing in Node.js 22.2.0

Commit 2:

Revert "src: make sure pass the argv to worker threads"

This reverts commit aba4a00.

Fixes #53011, cc @theanarkh

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
nicolo-ribaudo force-pushed the fix-22.2-worker-regression branch 2 times, most recently from dd4cd0c to 33bbb6c Compare May 16, 2024 09:41

nicolo-ribaudo commented May 16, 2024
edited
Loading

Copy link
Copy Markdown
Contributor Author

What should I do about the cpp formatter failure? Edit the revert commit so that it doesn't only revert, but also fix formatting? Or add a new commit just to format?

nicolo-ribaudo force-pushed the fix-22.2-worker-regression branch from 33bbb6c to 2c65c8d Compare May 16, 2024 10:06
It should be possible to pass the `env` option to a worker
even when the parent process is using a process-level flag, such
as `--title` or a V8-specific flag.

This test is currently failing in Node.js 22.2.0

avivkeller commented May 16, 2024
edited
Loading

Copy link
Copy Markdown
Member

What should I do about the cpp formatter failure? Edit the revert commit so that it doesn't only revert, but also fix formatting? Or add a new commit just to format?

According to the error: CLANG_FORMAT_START=$(git merge-base HEAD main) make format-cpp

I misread what you were asking. I'm not in any way the person to give advice on this, but I'd add a new commit for now, they can always be changed later

avivkeller added the revert PRs that revert previously landed PRs. label May 16, 2024

aduh95 commented May 17, 2024

Copy link
Copy Markdown
Contributor

What should I do about the cpp formatter failure? Edit the revert commit so that it doesn't only revert, but also fix formatting? Or add a new commit just to format?

I would add a fixup commit (git commit --fixup e05e0724): that simplifies the work of reviewers, and it will land as a single commit.

Shouldn't the revert comes first, then the added test can be applied? Otherwise tests won't be passing on that first commit IIUC

Copy link
Copy Markdown
Contributor

I have opened an PR and try to fix this.

Copy link
Copy Markdown
Contributor Author

Closing in favor of #53029

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. revert PRs that revert previously landed PRs. 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

5 participants


Back | FazBrowse Home | New Git URL