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

module: skip NODE_COMPILE_CACHE when policy is enabled by joyeecheung · Pull Request #52577 · nodejs/node · GitHub

/ node Public

module: skip NODE_COMPILE_CACHE when policy is enabled - #52577

Merged
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
joyeecheung:cache-policy
Apr 25, 2024
Merged

module: skip NODE_COMPILE_CACHE when policy is enabled#52577
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
joyeecheung:cache-policy

Conversation

Copy link
Copy Markdown
Member

It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled.

It might be worth designing a policy for the compilation cache. For
now, just skip the cache when policy is enabled.
joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 18, 2024
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 Apr 18, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 18, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member Author

huh there isn't a team for policy, it seems, so cc @nodejs/startup @nodejs/loaders @nodejs/security

Comment thread src/env.cc
return;
}
if (!options()->experimental_policy.empty()) {
Debug(this,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could this be a warning instead?

joyeecheung Apr 18, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The environment variable is designed to be as silent as possible. I don't think there's anything to warn - you don't get a speed up and that is all, your code will still work as intended. If you are using policy it's likely that you are already aware this is already leading to a slowdown for every module loaded due to all the checks required.

benjamingr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

thanks for following up with this!

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 22, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 22, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member Author

Updated the test to skip in no crypto builds because policy requires crypto to work.

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 22, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 22, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

joyeecheung added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 25, 2024
joyeecheung added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Apr 25, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 25, 2024
nodejs-github-bot merged commit 2231be6 into nodejs:main Apr 25, 2024

Copy link
Copy Markdown
Collaborator

Landed in 2231be6

aduh95 pushed a commit that referenced this pull request Apr 29, 2024
It might be worth designing a policy for the compilation cache. For
now, just skip the cache when policy is enabled.

PR-URL: #52577
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung added a commit to joyeecheung/node that referenced this pull request Jan 23, 2025
It might be worth designing a policy for the compilation cache. For
now, just skip the cache when policy is enabled.

PR-URL: nodejs#52577
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
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

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. 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