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

Fix broken Node builds #61

Merged
merged 2 commits into from
May 30, 2022
Merged

Fix broken Node builds #61

merged 2 commits into from
May 30, 2022

Conversation

unflxw
Copy link
Contributor

@unflxw unflxw commented May 30, 2022

This PR fixes the builds for the express-apollo, koa and next-js test setups, which are currently broken on main.

Pin broken builds to npm version 7

Using npm version 7 seems to avoid a bug where the build for the @appsignal/nodejs package is not ran before npm install, causing the installation to fail as it depends on the Transmitter, which needs to be transpiled first.

The bug seems similar to npm/cli#4552, although that seems to be fixed in npm 8.10.0, and upgrading to that version did not fix the problem. I have been unable to reproduce the bug outside of Semaphore CI, which further complicates investigating it.

Update Node 15 builds to nearest Node LTS

Node 15 is deprecated, so npm loudly complains about it during the installation process. This is not, in itself, the cause of the broken builds, but it is misleading and pollutes the output.

This commit upgrades all Node-based Dockerfiles to Node 16.

unflxw added 2 commits May 30, 2022 09:19
Using npm version 7 seems to avoid a bug where the build for the
`@appsignal/nodejs` package is not ran before `npm install`,
causing the installation to fail as it depends on the Transmitter,
which needs to be transpiled first.

The bug seems similar to [npm/cli#4552][bug], although that seems
to be fixed in npm 8.10.0, and upgrading to that version did not
fix the problem. I have been unable to reproduce the bug outside
of Semaphore CI, which further complicates investigating it.
Node 15 is deprecated, so npm loudly complains about it during the
installation process. This is not, in itself, the cause of the
broken builds, but it is misleading and pollutes the output.

This commit upgrades all Node-based Dockerfiles to Node 16.
@unflxw unflxw added the chore label May 30, 2022
@unflxw unflxw self-assigned this May 30, 2022
@tombruijn tombruijn merged commit f5608d7 into main May 30, 2022
@tombruijn tombruijn deleted the npm-853-node-16 branch May 30, 2022 11:28
shairyar pushed a commit that referenced this pull request Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants