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: merge RunInThisContext() with RunInContext() #43225

Merged

Conversation

daeyeon
Copy link
Member

@daeyeon daeyeon commented May 28, 2022

This commit resolves TODO in RunInThisContext() by merging
RunInThisContext() with RunInContext().

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

@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. vm Issues and PRs related to the vm subsystem. labels May 28, 2022
@daeyeon
Copy link
Member Author

daeyeon commented May 31, 2022

@addaleax Could you take a look when you have time? I tried to resolve the todo you wrote.

@daeyeon daeyeon force-pushed the master.todo.contextify-220528.Sat.e2de branch 4 times, most recently from ca2b036 to fe9eab5 Compare June 1, 2022 02:09
@RaisinTen RaisinTen added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 3, 2022
@RaisinTen
Copy link
Contributor

cc @nodejs/vm

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

src/node_contextify.cc Outdated Show resolved Hide resolved
@RaisinTen RaisinTen removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 6, 2022
@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 6, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 6, 2022
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@RaisinTen RaisinTen added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jun 6, 2022
@daeyeon
Copy link
Member Author

daeyeon commented Jun 10, 2022

The test failure looks irrelevant to this change. Can anyone pls help me re-run the CI?

@nodejs-github-bot

This comment was marked as outdated.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
@daeyeon daeyeon force-pushed the master.todo.contextify-220528.Sat.e2de branch from 6d86ee6 to 06a97fd Compare July 8, 2022 18:05
@daeyeon
Copy link
Member Author

daeyeon commented Jul 8, 2022

Thanks for keeping retry the CI test. I've rebased this PR again because of the same reason above.

@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2022
@aduh95
Copy link
Contributor

aduh95 commented Jul 9, 2022

Thanks for keeping retry the CI test. I've rebased this PR again because of the same reason above.

IMO you'll get better result by not rebasing the CI, every time we push new commits we have to re-run all the jobs including the one that were already green. FYI no need to rebase it yourself, by re-adding the request-ci label, it instructs the CI to rebase the PR on top of main and run the tests on all platforms. In fact it's better if you don't rebase but simply add a comment requesting a clean CI as we don't need to re-review the changes you just pushed.

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2022
@nodejs-github-bot
Copy link
Collaborator

@daeyeon
Copy link
Member Author

daeyeon commented Jul 9, 2022

@aduh95 A long-living curiosity I've had is cleared through your suggestion. Thanks!

@nodejs-github-bot
Copy link
Collaborator

@daeyeon daeyeon added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 10, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 10, 2022
@nodejs-github-bot
Copy link
Collaborator

@aduh95
Copy link
Contributor

aduh95 commented Jul 10, 2022

@daeyeon I'd suggest to not add the label, resuming CI is much more efficient than re-requesting CI as it can skip already passing jobs.

@daeyeon
Copy link
Member Author

daeyeon commented Jul 11, 2022

@aduh95 Regarding "resuming CI", after reading the collaborator guide, I guessed it maybe mean "Resume Build" in CI.

If there are Jenkins CI failures unrelated to the change in the pull request, try "Resume Build". It is in the left navigation of the relevant node-test-pull-request job.
https://github.com/nodejs/node/blob/main/doc/contributing/collaborator-guide.md#testing-and-ci

It says to try "Resume Build" in the left navigation, but I didn't find it there. Instead, I found a "Resume Build" string below "Test Result" in this page that looks disabled. Could you please check that's what you recommended? (I've recently joined the triagers team. So maybe I have no permission yet.)

@aduh95
Copy link
Contributor

aduh95 commented Jul 11, 2022

Yeah, triaggers don't have permission for that, adding the possibility for them to do it has been discussed in #40817 but it's not as trivial you'd think to implement.

Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

RSLGTM

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 11, 2022
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 11, 2022
@nodejs-github-bot nodejs-github-bot merged commit 7f29993 into nodejs:main Jul 11, 2022
@nodejs-github-bot
Copy link
Collaborator

Landed in 7f29993

@daeyeon
Copy link
Member Author

daeyeon commented Jul 11, 2022

Thank you all!

@daeyeon daeyeon deleted the master.todo.contextify-220528.Sat.e2de branch July 11, 2022 09:12
targos pushed a commit that referenced this pull request Jul 12, 2022
This commit resolves a TODO in `RunInThisContext()` by merging
`RunInThisContext()` with `RunInContext()`.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: #43225
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
targos pushed a commit that referenced this pull request Jul 20, 2022
This commit resolves a TODO in `RunInThisContext()` by merging
`RunInThisContext()` with `RunInContext()`.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: #43225
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
targos pushed a commit that referenced this pull request Jul 31, 2022
This commit resolves a TODO in `RunInThisContext()` by merging
`RunInThisContext()` with `RunInContext()`.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: #43225
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
This commit resolves a TODO in `RunInThisContext()` by merging
`RunInThisContext()` with `RunInContext()`.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: nodejs/node#43225
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
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++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants