Skip to content

@sentry/profiling-node@7.120.4 doesn't use pre build binaries #17442

Description

@AdriVanHoudt

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.120.4

Framework Version

/

Link to Sentry event

/

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Clean install @sentry/profiling-node@7.120.4.
We're seeing this mainly on CI using Node 22.18.0 on Linux x64 ubuntu 22 using pnpm 9.15.9.

I suspect that the changes in this PR #17083 caused the install script of profiling-node to be deleted which then makes it force rebuild the binaries.

Locally I've seen it fail differently where it complains to be missing node-gyp completely, which is not the same error exactly but it does feel related. (MacOS 15.6, Node 22.18.0, pnpm 9.15.9)

I can easily PR the install script back if that ends up being the issue.

Expected Result

It used pre build binaries on supported systems

Actual Result

.../node_modules/@sentry/profiling-node install$ node-gyp rebuild
.../node_modules/@sentry/profiling-node install: gyp info it worked if it ends with ok
.../node_modules/@sentry/profiling-node install: gyp info using node-gyp@10.3.1
.../node_modules/@sentry/profiling-node install: gyp info using node@22.18.0 | linux | x64
.../node_modules/@sentry/profiling-node install: gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
.../node_modules/@sentry/profiling-node install: gyp http GET https://nodejs.org/download/release/v22.18.0/node-v22.18.0-headers.tar.gz
.../node_modules/@sentry/profiling-node install: gyp http 200 https://nodejs.org/download/release/v22.18.0/node-v22.18.0-headers.tar.gz
.../node_modules/@sentry/profiling-node install: gyp http GET https://nodejs.org/download/release/v22.18.0/SHASUMS256.txt
.../node_modules/@sentry/profiling-node install: gyp http 200 https://nodejs.org/download/release/v22.18.0/SHASUMS256.txt
.../node_modules/@sentry/profiling-node install: gyp info spawn /usr/bin/python3
.../node_modules/@sentry/profiling-node install: gyp info spawn args [
.../node_modules/@sentry/profiling-node install: gyp info spawn args '/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/@sentry/profiling-node install: gyp info spawn args 'binding.gyp',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-f',
.../node_modules/@sentry/profiling-node install: gyp info spawn args 'make',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-I',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '/home/runner/_work/loctax/loctax/node_modules/.pnpm/@sentry+profiling-node@7.120.4/node_modules/@sentry/profiling-node/build/config.gypi',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-I',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-I',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '/home/runner/.cache/node-gyp/22.18.0/include/node/common.gypi',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dvisibility=default',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dnode_root_dir=/home/runner/.cache/node-gyp/22.18.0',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dnode_gyp_dir=/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dnode_lib_file=/home/runner/.cache/node-gyp/22.18.0/<(target_arch)/node.lib',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dmodule_root_dir=/home/runner/_work/loctax/loctax/node_modules/.pnpm/@sentry+profiling-node@7.120.4/node_modules/@sentry/profiling-node',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '--depth=.',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '--no-parallel',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '--generator-output',
.../node_modules/@sentry/profiling-node install: gyp info spawn args 'build',
.../node_modules/@sentry/profiling-node install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/@sentry/profiling-node install: gyp info spawn args ]
.../node_modules/@sentry/profiling-node install: gyp info spawn make
.../node_modules/@sentry/profiling-node install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/@sentry/profiling-node install: make: Entering directory '/home/runner/_work/loctax/loctax/node_modules/.pnpm/@sentry+profiling-node@7.120.4/node_modules/@sentry/profiling-node/build'
.../node_modules/@sentry/profiling-node install:   ACTION Regenerating Makefile
.../node_modules/@sentry/profiling-node install: /bin/sh: 1: /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py: Permission denied
.../node_modules/@sentry/profiling-node install: make: *** [Makefile:343: Makefile] Error 126
.../node_modules/@sentry/profiling-node install: make: Leaving directory '/home/runner/_work/loctax/loctax/node_modules/.pnpm/@sentry+profiling-node@7.120.4/node_modules/@sentry/profiling-node/build'
.../node_modules/@sentry/profiling-node install: gyp ERR! build error 
.../node_modules/@sentry/profiling-node install: gyp ERR! stack Error: `make` failed with exit code: 2
.../node_modules/@sentry/profiling-node install: gyp ERR! stack at ChildProcess.<anonymous> (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/@sentry/profiling-node install: gyp ERR! System Linux 6.8.0-1033-aws
.../node_modules/@sentry/profiling-node install: gyp ERR! command "/opt/hostedtoolcache/node/22.18.0/x64/bin/node" "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
.../node_modules/@sentry/profiling-node install: gyp ERR! cwd /home/runner/_work/loctax/loctax/node_modules/.pnpm/@sentry+profiling-node@7.120.4/node_modules/@sentry/profiling-node
.../node_modules/@sentry/profiling-node install: gyp ERR! node -v v22.18.0
.../node_modules/@sentry/profiling-node install: gyp ERR! node-gyp -v v10.3.1
.../node_modules/@sentry/profiling-node install: gyp ERR! not ok 
.../node_modules/@sentry/profiling-node install: Failed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions