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 (973144b) to head (925a713).
Report is 34 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54823      +/-   ##
==========================================
- Coverage   87.62%   87.61%   -0.01%     
==========================================
  Files         650      650              
  Lines      182997   182997              
  Branches    35415    35419       +4     
==========================================
- Hits       160348   160341       -7     
- Misses      15918    15924       +6     
- Partials     6731     6732       +1     

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 <[email protected]> (@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 <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/54823
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54823
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
--------------------------------------------------------------------------------
   ℹ  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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
@RafaelGSS RafaelGSS mentioned this pull request Sep 16, 2024
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. 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.

7 participants