-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Heartbeat] Don't use inet / be silent when setting up projects #34936
Conversation
Pinging @elastic/uptime (Team:Uptime) |
@@ -117,7 +117,7 @@ func setupProjectDir(workdir string) error { | |||
} | |||
|
|||
// setup the project linking to the global synthetics library | |||
return runSimpleCommand(exec.Command("npm", "install"), workdir) | |||
return runSimpleCommand(exec.Command("npm", "install", "--no-audit"), workdir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add these options to speed the npm install script up.
audit=false
update-notifier=false
fetch-timeout=30000
fetch-retry-factor=0
package-lock=false
progress=false
We could also bake this inside a .npmrc
file and run only npm install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Using the internet and performing other checks is unnecessary in this context, and just slows down what should be fast. Will need to be manually tested to ensure that no internet connection is needed in airgapped envs (cherry picked from commit 5ed7e8d)
…) (#34944) Using the internet and performing other checks is unnecessary in this context, and just slows down what should be fast. Will need to be manually tested to ensure that no internet connection is needed in airgapped envs (cherry picked from commit 5ed7e8d) Co-authored-by: Andrew Cholakian <andrewvc@elastic.co>
Using the internet and performing other checks is unnecessary in this context, and just slows down what should be fast. Will need to be manually tested to ensure that no internet connection is needed in airgapped envs
Using the internet and performing other checks is unnecessary in this context, and just slows down what should be fast. Will need to be manually tested to ensure that no internet connection is needed in airgapped envs
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.