-
Notifications
You must be signed in to change notification settings - Fork 68
fix: use npm v8 in expressapp container to workaround slow npm install from github #1484
Conversation
…l from github The switch to node v16 gets use npm v8, to workaround an issue with slow 'npm install <any github repo dependency>'. See: npm/cli#4896 In our case the github repo dependency was the command given to docker run this container: bash -c "npm install elastic-apm-node#SOME-COMMIT-SHA && node app.js" This also adds a package.json to more explicitly declare we are working with a node project workspace. Also avoid generating a package-lock file we won't use. Fixes: #1483
AFAICT that "apm-ci/pr-merge — This commit has test failures" is a warning
I am confused by that, but I'm ignoring them. The pipeline otherwise looks green to me: https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/PR-1484/1/pipeline/116 |
There is a missing end of file in Those checks can be validated locally, with the pre-commit tool, though in this case is more a cosmetic check |
@v1v Thanks. Some Qs: When I run
However, if I just
What am I supposed to run in a working copy to know what is going to fail in CI? |
pre-commit was added recently in compared to when this project started. Sometimes I run Though, it's not always the case... the existing integration in the CI does validate the change-set, so it will not run |
I also forgot to mention, once the |
The switch to node v16 gets use npm v8, to workaround an issue with
slow 'npm install '. See:
npm/cli#4896
In our case the github repo dependency was the command given to docker
run this container:
bash -c "npm install elastic-apm-node#SOME-COMMIT-SHA && node app.js"
This also adds a package.json to more explicitly declare we are working
with a node project workspace. Also avoid generating a package-lock file
we won't use.
Fixes: #1483