Skip to content

Conversation

trentm
Copy link
Member

@trentm trentm commented Jul 18, 2022

The "Dist" step in the release process in Jenkinsfile was failing with

npm ERR! code ELSPROBLEMS
npm ERR! missing: @babel/cli@^7.8.4, required by [email protected]
... ditto for every *dev* dependency ...

The part that was actually failing was 'npm ls --omit=dev --all --parseable'
in "gen-notice.sh" when run in a dist try that only has the non-dev deps
installed.

The issue was a too-old npm: node 16.15.0 includes npm 8.5.5, but we
require npm v8.7.0 to get support for 'npm ls --omit=dev ...'
(npm/cli#4744).


Initial discussion for this was on the PR for the 3.37.0 release here: #2830 (comment)
I wasn't able to reproduce this on my dev machine initially because (a) initially I'd been using node v16.15.1 which has a new-enough npm and (b) when I did attempt to repro with v16.15.0 I was foiled because at some point I had upgraded the npm version in my local node v16.15.0 (bad me).

The "Dist" step in the release process in Jenkinsfile was failing with

    npm ERR! code ELSPROBLEMS
    npm ERR! missing: @babel/cli@^7.8.4, required by [email protected]
    ... ditto for every *dev* dependency ...

The part that was actually failing was 'npm ls --omit=dev --all --parseable'
in "gen-notice.sh" when run in a dist try that only has the non-dev deps
installed.

The issue was a too-old npm: node 16.15.0 includes npm 8.5.5, but we
require npm v8.7.0 to get support for 'npm ls --omit=dev ...'
(npm/cli#4744).
@trentm trentm requested a review from astorm July 18, 2022 22:51
@trentm trentm self-assigned this Jul 18, 2022
@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Jul 18, 2022
@ghost
Copy link

ghost commented Jul 18, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-07-18T22:51:22.374+0000

  • Duration: 20 min 9 sec

Test stats 🧪

Test Results
Failed 0
Passed 257308
Skipped 0
Total 257308

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run module tests for <modules> : Run TAV tests for one or more modules, where <modules> can be either a comma separated list of modules (e.g. memcached,redis) or the string literal ALL to test all modules

  • run benchmark tests : Run the benchmark test only.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@trentm trentm merged commit 93e2d53 into main Jul 19, 2022
@trentm trentm deleted the trentm/fix-release-dist-in-ci branch July 19, 2022 15:07
@trentm trentm mentioned this pull request Jul 19, 2022
trentm added a commit that referenced this pull request Aug 2, 2022
Change #2831 showed an example where node v16.15.0 and ealier were
insufficient for our dist build. The dist build *for release* is done by
CI that specifies the requisite node version, but it could be helpful
for a local dev to have a sufficient version.

.nvmrc is just advisory, so there is no expected impact.
trentm added a commit that referenced this pull request Aug 3, 2022
Change #2831 showed an example where node v16.15.0 and ealier were
insufficient for our dist build. The dist build *for release* is done by
CI that specifies the requisite node version, but it could be helpful
for a local dev to have a sufficient version.

.nvmrc is just advisory, so there is no expected impact.
PeterEinberger pushed a commit to fpm-git/apm-agent-nodejs that referenced this pull request Aug 20, 2024
Change elastic#2831 showed an example where node v16.15.0 and ealier were
insufficient for our dist build. The dist build *for release* is done by
CI that specifies the requisite node version, but it could be helpful
for a local dev to have a sufficient version.

.nvmrc is just advisory, so there is no expected impact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-nodejs Make available for APM Agents project planning.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants