FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: return a number from process.constrainedMemory() constantly by legendecas · Pull Request #52039 · nodejs/node · GitHub

/ node Public

src: return a number from process.constrainedMemory() constantly - #52039

Closed
legendecas wants to merge 1 commit into
nodejs:mainfrom
legendecas:process/contrained
Closed

src: return a number from process.constrainedMemory() constantly#52039
legendecas wants to merge 1 commit into
nodejs:mainfrom
legendecas:process/contrained

Conversation

Copy link
Copy Markdown
Member

0 is already a special value returned from
uv_get_constrained_memory representing unknown or no constraint.
Make process.constrainedMemory() constantly return a number instead
to avoid polymorphic return type.

Also, test/parallel/test-process-constrained-memory.js is evaluated with tools/run-worker.js, it is not necessary to run the test in a worker context manually.

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. labels Mar 11, 2024
`0` is already a special value returned from
`uv_get_constrained_memory` representing unknown or no constraint.
Make `process.constrainedMemory()` constantly return a number instead
to avoid polymorphic return type.
legendecas marked this pull request as ready for review March 11, 2024 03:13
legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

legendecas added commit-queue Add this label to land a pull request using GitHub Actions. author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Mar 14, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 14, 2024

nodejs-github-bot commented Mar 14, 2024
edited by legendecas
Loading

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/52039
✔  Done loading data for nodejs/node/pull/52039
----------------------------------- PR info ------------------------------------
Title      src: return a number from process.constrainedMemory() constantly (#52039)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     legendecas:process/contrained -> nodejs:main
Labels     c++, author ready, needs-ci
Commits    1
 - src: return a number from process.constrainedMemory() constantly
Committers 1
 - Chengzhong Wu 
PR-URL: https://github.com/nodejs/node/pull/52039
Reviewed-By: theanarkh 
Reviewed-By: Luigi Pinca 
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Vinícius Lourenço Claro Cardoso 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/52039
Reviewed-By: theanarkh 
Reviewed-By: Luigi Pinca 
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Vinícius Lourenço Claro Cardoso 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Mon, 11 Mar 2024 03:12:45 GMT
   ✔  Approvals: 4
   ✔  - theanarkh (@theanarkh): https://github.com/nodejs/node/pull/52039#pullrequestreview-1927842122
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/52039#pullrequestreview-1928906443
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/52039#pullrequestreview-1929946866
   ✔  - Vinícius Lourenço Claro Cardoso (@H4ad): https://github.com/nodejs/node/pull/52039#pullrequestreview-1929954111
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2024-03-13T09:59:10Z: https://ci.nodejs.org/job/node-test-pull-request/57724/
- Querying data for job/node-test-pull-request/57724/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/8274632124

Unexpected report on GitHub CI failure.

nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Mar 14, 2024
legendecas added a commit that referenced this pull request Mar 14, 2024
`0` is already a special value returned from
`uv_get_constrained_memory` representing unknown or no constraint.
Make `process.constrainedMemory()` constantly return a number instead
to avoid polymorphic return type.

PR-URL: #52039
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>

Copy link
Copy Markdown
Member Author

Landed in 0eb2b72

legendecas closed this Mar 14, 2024
legendecas deleted the process/contrained branch March 14, 2024 16:28
legendecas removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Mar 14, 2024
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
`0` is already a special value returned from
`uv_get_constrained_memory` representing unknown or no constraint.
Make `process.constrainedMemory()` constantly return a number instead
to avoid polymorphic return type.

PR-URL: #52039
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
marco-ippolito pushed a commit that referenced this pull request May 3, 2024
`0` is already a special value returned from
`uv_get_constrained_memory` representing unknown or no constraint.
Make `process.constrainedMemory()` constantly return a number instead
to avoid polymorphic return type.

PR-URL: #52039
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL