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

test: fix Windows async-context-frame memory failure #54823

Merged

Conversation

Qard
Copy link
Member

@Qard Qard commented Sep 6, 2024

Possible alternative to #54818 to fix the issue with AsyncContextFrame tests crashing with memory errors on Windows. I suspect we're just spinning up too much stuff and eating all the memory.

cc @nodejs/diagnostics

@Qard Qard added test Issues and PRs related to the tests. async_local_storage AsyncLocalStorage labels Sep 6, 2024
@Qard Qard requested a review from jasnell September 6, 2024 21:20
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Sep 6, 2024
@Qard Qard added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 6, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 6, 2024
@nodejs-github-bot

This comment was marked as outdated.

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.61%. Comparing base (ce19715) to head (925a713).
Report is 328 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54823      +/-   ##
==========================================
+ Coverage   87.60%   87.61%   +0.01%     
==========================================
  Files         650      650              
  Lines      182943   182997      +54     
  Branches    35399    35419      +20     
==========================================
+ Hits       160270   160341      +71     
+ Misses      15936    15924      -12     
+ Partials     6737     6732       -5     

see 31 files with indirect coverage changes

@jasnell
Copy link
Member

jasnell commented Sep 6, 2024

I canceled that run to limit what is running on CI right now. I think there are too many concurrent test runs going causing things to fail out. Trying to get things untangled. Will start it again once things appear more stable.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Sep 7, 2024

@jasnell
Copy link
Member

jasnell commented Sep 7, 2024

Ok restarted CI. Some of the other tests may still flake out until this is rebased on tip of main but really only interested in the windows run for this specific test. If it looks good then let's rebase this on tip of main and run again.

Comment on lines +45 to +46
// TODO(qard): I think high concurrency causes memory problems on Windows
// concurrency: tests.length
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// TODO(qard): I think high concurrency causes memory problems on Windows
// concurrency: tests.length
// TODO(qard): I think high concurrency causes memory problems on Windows.
// concurrency: tests.length

@jasnell
Copy link
Member

jasnell commented Sep 7, 2024

CI looks good! Let's go with this.

@Qard
Copy link
Member Author

Qard commented Sep 7, 2024

Thanks for managing the CI on that! Sorry for the trouble. 😅

@lpinca
Copy link
Member

lpinca commented Sep 7, 2024

Can we also revert 407b61c?

@jasnell
Copy link
Member

jasnell commented Sep 7, 2024

@lpinca

Can we also revert 407b61c?

I suppose we can but I'd like to give it a few days after this lands to make sure it does, in fact, resolve the flakiness.

@jasnell jasnell added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Sep 7, 2024
@jasnell jasnell added the fast-track PRs that do not need to wait for 48 hours to land. label Sep 8, 2024
Copy link
Contributor

github-actions bot commented Sep 8, 2024

Fast-track has been requested by @jasnell. Please 👍 to approve.

@jasnell
Copy link
Member

jasnell commented Sep 8, 2024

Requesting fast-track in order to help improve CI stability.

@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Sep 8, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/54823
✔  Done loading data for nodejs/node/pull/54823
----------------------------------- PR info ------------------------------------
Title      test: fix Windows async-context-frame memory failure (#54823)
Author     Stephen Belanger <admin@stephenbelanger.com> (@Qard)
Branch     Qard:fix-async-context-frame-window-failure -> nodejs:main
Labels     test, fast-track, author ready, async_local_storage
Commits    1
 - test: fix Windows async-context-frame memory failure
Committers 1
 - Stephen Belanger <stephen.belanger@datadoghq.com>
PR-URL: https://github.com/nodejs/node/pull/54823
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54823
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Fri, 06 Sep 2024 21:20:38 GMT
   ✔  Approvals: 4
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/54823#pullrequestreview-2287302578
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/54823#pullrequestreview-2287457244
   ✔  - Jake Yuesong Li (@jakecastelli): https://github.com/nodejs/node/pull/54823#pullrequestreview-2287489551
   ✔  - Rafael Gonzaga (@RafaelGSS) (TSC): https://github.com/nodejs/node/pull/54823#pullrequestreview-2288434091
   ℹ  This PR is being fast-tracked
   ✘  This PR needs to wait 17 more hours to land (or 0 hours if there is 1 more approval (👍) of the fast-track request from collaborators).
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-09-07T00:04:28Z: https://ci.nodejs.org/job/node-test-pull-request/62086/
- Querying data for job/node-test-pull-request/62086/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/10756651585

@jasnell jasnell removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 8, 2024
@jakecastelli jakecastelli added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 8, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 8, 2024
@nodejs-github-bot nodejs-github-bot merged commit e1e312d into nodejs:main Sep 8, 2024
79 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in e1e312d

@Qard Qard deleted the fix-async-context-frame-window-failure branch September 9, 2024 19:17
aduh95 pushed a commit that referenced this pull request Sep 12, 2024
PR-URL: #54823
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
@RafaelGSS RafaelGSS mentioned this pull request Sep 16, 2024
@targos targos added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Sep 22, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
PR-URL: nodejs#54823
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async_local_storage AsyncLocalStorage author ready PRs that have at least one approval, no pending requests for changes, and a CI started. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. fast-track PRs that do not need to wait for 48 hours to land. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants