Skip to content

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

@nicolo-ribaudonicolo-ribaudo commented May 16, 2024

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-botnodejs-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
nicolo-ribaudoforce-pushed the fix-22.2-worker-regression branch 2 times, most recently from dd4cd0c to 33bbb6cCompareMay 16, 2024 09:41
@nicolo-ribaudo

nicolo-ribaudo commented May 16, 2024

Copy link
Copy Markdown
ContributorAuthor

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
nicolo-ribaudoforce-pushed the fix-22.2-worker-regression branch from 33bbb6c to 2c65c8dCompareMay 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

avivkeller commented May 16, 2024

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

@avivkelleravivkeller added the revert PRs that revert previously landed PRs. label May 16, 2024
@aduh95

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

@theanarkh

Copy link
Copy Markdown
Contributor

I have opened an PR and try to fix this.

@nicolo-ribaudo

Copy link
Copy Markdown
ContributorAuthor

Closing in favor of #53029

Sign up for freeto 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-ciPRs that need a full CI run.revertPRs that revert previously landed PRs.workerIssues 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

@nicolo-ribaudo@avivkeller@aduh95@theanarkh@nodejs-github-bot