GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_runner: Fix mock timer promisified setInterval return value by mika-fischer · Pull Request #50331 · nodejs/node

Conversation

@mika-fischer

@mika-fischer mika-fischer commented Oct 22, 2023

Copy link
Copy Markdown
Contributor

promisified setInterval can be passed a value that is returned by the async iterable. The mocked promisified setInterval used this value for its own purposes. This brings the mocked version in line with the original.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot

nodejs-github-bot commented Oct 22, 2023

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Oct 22, 2023
@mika-fischer mika-fischer mentioned this pull request Oct 22, 2023
node test mock timer promisified setTimeout & setInterval don't always return the specified value #50307
Closed
MoLow
MoLow approved these changes Oct 22, 2023
View reviewed changes
@MoLow
MoLow requested review from ErickWendel and benjamingr October 22, 2023 20:43
@mika-fischer
mika-fischer force-pushed the fix-50307 branch from 78d949e to af38302 Compare October 23, 2023 06:30
atlowChemi
atlowChemi approved these changes Oct 23, 2023
View reviewed changes
@atlowChemi atlowChemi added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. commit-queue-squash PRs the Commit Queue should land as one squashed commit. author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Oct 23, 2023
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 23, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55140/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mika-fischer
mika-fischer force-pushed the fix-50307 branch 2 times, most recently from 02d7e2e to e65beea Compare October 23, 2023 08:41
MoLow
MoLow approved these changes Oct 23, 2023
View reviewed changes
@MoLow MoLow added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 23, 2023
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 23, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55143/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ErickWendel
ErickWendel approved these changes Oct 23, 2023
View reviewed changes

@ErickWendel ErickWendel left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM. @mika-fischer congrats on your first PR on the nodejs repo!! It's really helpful!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow, atlowChemi, and GeoffreyBooth reacted with rocket emoji
All reactions
  • 🚀 3 reactions
@MoLow

MoLow commented Oct 23, 2023

Copy link
Copy Markdown
Member

@mika-fischer the PR needs a rebase

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mika-fischer added 3 commits October 23, 2023 14:24
@mika-fischer
test_runner: test return value of mocked promisified timers
ea2a31e
@mika-fischer
test_runner: fix mock timer promisified setInterval return value
88e13a7
promisified setInterval can be passed a value that is returned by the
async iterable. The mocked promisified setInterval used this value for
its own purposes. This brings the mocked version in line with the
original.

Fixes: nodejs#50307
@mika-fischer
test_runner: fix mock timer setInterval tests
06d8b9d
Some tests relied on the custom return value and were broken by the
change to always return the value provided by the caller.
@mika-fischer
mika-fischer force-pushed the fix-50307 branch from e65beea to 06d8b9d Compare October 23, 2023 12:29
@mika-fischer

mika-fischer commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

LGTM. @mika-fischer congrats on your first PR on the nodejs repo!! It's really helpful!

Thanks @ErickWendel!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mika-fischer

mika-fischer commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

@mika-fischer the PR needs a rebase

done @MoLow

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MoLow MoLow added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 23, 2023
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 23, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55149/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mika-fischer

mika-fischer commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

I'm not sure why some tests are failing, these seem unrelated to the changes in this PR. Let me know if there's anything I can do to move this along.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55158/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MoLow MoLow added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 23, 2023
@github-actions github-actions Bot mentioned this pull request Oct 24, 2023
CI Reliability 2023-10-24 nodejs/reliability#696
Open
27 tasks
@mika-fischer mika-fischer mentioned this pull request Oct 24, 2023
test_runner: mock timer promisified setTimeout cleanup goes wrong losing some timers #50365
Closed
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Oct 24, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 24, 2023

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/50331
✔  Done loading data for nodejs/node/pull/50331
----------------------------------- PR info ------------------------------------
Title      test_runner: Fix mock timer promisified setInterval return value (#50331)
Author     Mika Fischer  (@mika-fischer, first-time contributor)
Branch     mika-fischer:fix-50307 -> nodejs:main
Labels     author ready, needs-ci, commit-queue-squash, test_runner
Commits    3
 - test_runner: test return value of mocked promisified timers
 - test_runner: fix mock timer promisified setInterval return value
 - test_runner: fix mock timer setInterval tests
Committers 1
 - Mika Fischer 
PR-URL: https://github.com/nodejs/node/pull/50331
Reviewed-By: Moshe Atlow 
Reviewed-By: Chemi Atlow 
Reviewed-By: Erick Wendel 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/50331
Reviewed-By: Moshe Atlow 
Reviewed-By: Chemi Atlow 
Reviewed-By: Erick Wendel 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - test_runner: test return value of mocked promisified timers
   ⚠  - test_runner: fix mock timer promisified setInterval return value
   ⚠  - test_runner: fix mock timer setInterval tests
   ℹ  This PR was created on Sun, 22 Oct 2023 20:11:55 GMT
   ✔  Approvals: 3
   ✔  - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/50331#pullrequestreview-1692229637
   ✔  - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/50331#pullrequestreview-1691892475
   ✔  - Erick Wendel (@erickwendel): https://github.com/nodejs/node/pull/50331#pullrequestreview-1692276984
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2023-10-23T18:44:37Z: https://ci.nodejs.org/job/node-test-pull-request/55158/
- Querying data for job/node-test-pull-request/55158/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/6632107907
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

benjamingr
benjamingr approved these changes Oct 24, 2023
View reviewed changes
@github-actions github-actions Bot mentioned this pull request Oct 25, 2023
CI Reliability 2023-10-25 nodejs/reliability#697
Open
16 tasks
@MoLow MoLow added commit-queue PRs queued for automated landing through the Commit Queue. and removed commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. labels Oct 25, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 25, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 4f5db8b into nodejs:main Oct 25, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 25, 2023

Copy link
Copy Markdown
Collaborator

Landed in 4f5db8b

mika-fischer reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mika-fischer
mika-fischer deleted the fix-50307 branch October 25, 2023 07:29
@mika-fischer

mika-fischer commented Oct 25, 2023

Copy link
Copy Markdown
Contributor Author

Did the closure of #50307 get dropped somehow? Should I have specified it differently? Should I close the issue now manually?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MoLow MoLow linked an issue Oct 25, 2023 that may be closed by this pull request
node test mock timer promisified setTimeout & setInterval don't always return the specified value #50307
Closed
@benjamingr

benjamingr commented Oct 25, 2023

Copy link
Copy Markdown
Member

Typically it needs Fixes: or Closes: in the PR description for GH to pick it up.

Thank you for your contribution!

mika-fischer reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Oct 26, 2023
CI Reliability 2023-10-26 nodejs/reliability#698
Open
20 tasks
targos pushed a commit that referenced this pull request Nov 11, 2023
@mika-fischer @targos
test_runner: test return value of mocked promisified timers
e2c3b01
PR-URL: #50331
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Erick Wendel <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@targos targos mentioned this pull request Nov 12, 2023
v21.2.0 release proposal #50681
Merged
UlisesGascon pushed a commit that referenced this pull request Dec 11, 2023
@mika-fischer @UlisesGascon
test_runner: test return value of mocked promisified timers
4aaaff4
PR-URL: #50331
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Erick Wendel <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@UlisesGascon UlisesGascon mentioned this pull request Dec 12, 2023
v20.11.0 proposal #51124
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@benjamingr benjamingr benjamingr approved these changes
@ErickWendel ErickWendel ErickWendel approved these changes
@MoLow MoLow MoLow approved these changes
@atlowChemi atlowChemi atlowChemi approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue-squash PRs the Commit Queue should land as one squashed commit. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

node test mock timer promisified setTimeout & setInterval don't always return the specified value

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@mika-fischer @nodejs-github-bot @MoLow @benjamingr @ErickWendel @atlowChemi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.