Skip to content

wasi: make returnOnExit true by default - #47390

Closed
mhdawson wants to merge 7 commits into
nodejs:mainfrom
mhdawson:uvwasi-exit-default
Closed

wasi: make returnOnExit true by default#47390
mhdawson wants to merge 7 commits into
nodejs:mainfrom
mhdawson:uvwasi-exit-default

Conversation

@mhdawson

Copy link
Copy Markdown
Member

Refs: #46923

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/wasi

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. wasi Issues and PRs related to the WebAssembly System Interface. labels Apr 3, 2023
@mhdawson

Copy link
Copy Markdown
MemberAuthor

We agreed in #46923 that even though this is breaking, since wasi is still experimental we will mark it as SemVer minor but not backport to LTS versions earlier that 20.x

@mhdawsonmhdawson added semver-minor PRs that contain new features and should be released in the next minor version. dont-land-on-v19.x labels Apr 3, 2023
@richardlau

Copy link
Copy Markdown
Member

This shouldn't be titled with "doc" subsystem -- it's an actual functional change.

@mhdawson
mhdawsonforce-pushed the uvwasi-exit-default branch from 78475e5 to d8ce188CompareApril 3, 2023 22:03
@mhdawsonmhdawson changed the title doc: make returnOnExit true by defaultwasi: make returnOnExit true by defaultApr 3, 2023
@mhdawson

Copy link
Copy Markdown
MemberAuthor

@richardlau fixed.

Comment threaddoc/api/wasi.md Outdated
Comment threaddoc/api/wasi.md Outdated
Comment threadlib/wasi.js Outdated
Comment threadlib/wasi.js Outdated
Comment threadtest/wasi/test-wasi.js Outdated
Comment threadtest/wasi/test-wasi.js Outdated
Comment on lines 99 to 100

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we be setting this to 'true' as well if it is specified? It might be enough to do this since the environment variables will be strings in the child process:

if('returnOnExit'inoptions){opts.env.RETURN_ON_EXIT=options.returnOnExit;}

Note - if for whatever reason that doesn't work, we can do String(options.returnOnExit) on the right hand side of the assignment.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I did not do that originally since true is the default, but it would be more complete. Will update.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

pushed commit to do that.

@mhdawsonmhdawson added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@mhdawson

Copy link
Copy Markdown
MemberAuthor

Please don't land this until after #47391 lands as we want 47391 to make it into Node.js 20 and I'm not sure if there will be conflicts betwen the 2. If there are I'd prefer to get 47391 landed and then rebase this PR

@mhdawson

Copy link
Copy Markdown
MemberAuthor

Rebased, will start new CI

@mhdawsonmhdawson added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Refs: nodejs#46923
Signed-off-by: Michael Dawson <mdawson@devrus.com>
mhdawsonand others added 6 commits April 6, 2023 19:44
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Signed-off-by: Michael Dawson <mdawson@devrus.com>
@mhdawson

Copy link
Copy Markdown
MemberAuthor

guessing using the UI did not work, will fix then force push

@mhdawson
mhdawsonforce-pushed the uvwasi-exit-default branch from e4fb68c to 773abe5CompareApril 7, 2023 00:08
@mhdawsonmhdawson added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 7, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 7, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

mhdawson added a commit that referenced this pull request Apr 11, 2023
Refs: #46923
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #47390
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@mhdawson

Copy link
Copy Markdown
MemberAuthor

Landed in 56ccd59

targos pushed a commit that referenced this pull request May 2, 2023
Refs: #46923
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #47390
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos added a commit that referenced this pull request May 2, 2023
Notable changes:
assert:
* deprecate `CallTracker` (Moshe Atlow) #47740
crypto:
* update root certificates to NSS 3.89 (Node.js GitHub Bot) #47659
dns:
* (SEMVER-MINOR) expose `getDefaultResultOrder` (btea) #46973
doc:
* add KhafraDev to collaborators (Matthew Aitken) #47510
fs:
* (SEMVER-MINOR) add `recursive` option to `readdir` and `opendir` (Ethan Arrowood) #41439
* (SEMVER-MINOR) add support for `mode` flag to specify the copy behavior of the `cp` methods (Tetsuharu Ohzeki) #47084
http:
* (SEMVER-MINOR) add `highWaterMark` option `http.createServer` (HinataKah0) #47405
stream:
* (SEMVER-MINOR) preserve object mode in `compose` (Raz Luvaton) #47413
test_runner:
* (SEMVER-MINOR) add `testNamePatterns` to `run` API (Chemi Atlow) #47648
* (SEMVER-MINOR) execute `before` hook on test (Chemi Atlow) #47586
* (SEMVER-MINOR) support combining coverage reports (Colin Ihrig) #47686
wasi:
* (SEMVER-MINOR) make `returnOnExit` true by default (Michael Dawson) #47390
PR-URL: #47820
@targostargos mentioned this pull request May 2, 2023
targos added a commit that referenced this pull request May 3, 2023
Notable changes:
assert:
* deprecate `CallTracker` (Moshe Atlow) #47740
crypto:
* update root certificates to NSS 3.89 (Node.js GitHub Bot) #47659
dns:
* (SEMVER-MINOR) expose `getDefaultResultOrder` (btea) #46973
doc:
* add KhafraDev to collaborators (Matthew Aitken) #47510
fs:
* (SEMVER-MINOR) add `recursive` option to `readdir` and `opendir` (Ethan Arrowood) #41439
* (SEMVER-MINOR) add support for `mode` flag to specify the copy behavior of the `cp` methods (Tetsuharu Ohzeki) #47084
http:
* (SEMVER-MINOR) add `highWaterMark` option `http.createServer` (HinataKah0) #47405
stream:
* (SEMVER-MINOR) preserve object mode in `compose` (Raz Luvaton) #47413
test_runner:
* (SEMVER-MINOR) add `testNamePatterns` to `run` API (Chemi Atlow) #47628
* (SEMVER-MINOR) execute `before` hook on test (Chemi Atlow) #47586
* (SEMVER-MINOR) support combining coverage reports (Colin Ihrig) #47686
wasi:
* (SEMVER-MINOR) make `returnOnExit` true by default (Michael Dawson) #47390
PR-URL: #47820
targos added a commit that referenced this pull request May 3, 2023
Notable changes:
assert:
* deprecate `CallTracker` (Moshe Atlow) #47740
crypto:
* update root certificates to NSS 3.89 (Node.js GitHub Bot) #47659
dns:
* (SEMVER-MINOR) expose `getDefaultResultOrder` (btea) #46973
doc:
* add KhafraDev to collaborators (Matthew Aitken) #47510
fs:
* (SEMVER-MINOR) add `recursive` option to `readdir` and `opendir` (Ethan Arrowood) #41439
* (SEMVER-MINOR) add support for `mode` flag to specify the copy behavior of the `cp` methods (Tetsuharu Ohzeki) #47084
http:
* (SEMVER-MINOR) add `highWaterMark` option `http.createServer` (HinataKah0) #47405
stream:
* (SEMVER-MINOR) preserve object mode in `compose` (Raz Luvaton) #47413
test_runner:
* (SEMVER-MINOR) add `testNamePatterns` to `run` API (Chemi Atlow) #47628
* (SEMVER-MINOR) execute `before` hook on test (Chemi Atlow) #47586
* (SEMVER-MINOR) support combining coverage reports (Colin Ihrig) #47686
wasi:
* (SEMVER-MINOR) make `returnOnExit` true by default (Michael Dawson) #47390
PR-URL: #47820
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs that need a full CI run.semver-minorPRs that contain new features and should be released in the next minor version.wasiIssues and PRs related to the WebAssembly System Interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@mhdawson@nodejs-github-bot@richardlau@jasnell@guybedford@cjihrig@tniessen@VoltrexKeyva