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: return a number from process.constrainedMemory() constantly #52039

Closed
wants to merge 1 commit into from

Conversation

legendecas
Copy link
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 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 legendecas marked this pull request as ready for review March 11, 2024 03:13
@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@legendecas 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 pending requests for changes, and a CI started. labels Mar 14, 2024
@nodejs-github-bot 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
Copy link
Collaborator

nodejs-github-bot commented Mar 14, 2024

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 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>
@legendecas
Copy link
Member Author

Landed in 0eb2b72

@legendecas legendecas closed this Mar 14, 2024
@legendecas legendecas deleted the process/contrained branch March 14, 2024 16:28
@legendecas legendecas removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Mar 14, 2024
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Mar 26, 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: nodejs#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 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>
jcbhmr pushed a commit to jcbhmr/node that referenced this pull request May 15, 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: nodejs#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>
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++. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants