nodejs icon indicating copy to clipboard operation
nodejs copied to clipboard

feat(autoprofile): added prebuilds

Open kirrg001 opened this issue 2 years ago • 3 comments

refs 149946

Move away from manual prebuilds for the autoprofile package to using prebuildify.

The PR replaces the prebuilds for darwin x64 and linux x64 (musl + glibc) and adds more prebuilds for darwin arm64 (m1), linux arm64 and armv6 and armv7 (raspberry pi).

This is the first iteration. The next iteration is to get rid of the manual prebuilds in the shared metrics package.

Testing / QA

Installing the autoprofiler on darwin x64 from local source without prebuild

npm i ~/dev/instana/nodejs/packages/autoprofile/instana-autoprofile-3.1.0.tgz --save --verbose added 39 packages, and audited 40 packages in 14s

Installing the autoprofiler on darwin x64 from local source with prebuild

npm i ~/dev/instana/nodejs/packages/autoprofile/instana-autoprofile-3.1.0.tgz --save --verbose added 39 packages, and audited 40 packages in 3s

Installing the autoprofiler on darwin x64 from npm including manual prebuilds

npm i @instana/autoprofile@latest --save added 38 packages, and audited 39 packages in 13s

-> caused by a bug in the node-gyp-fallback script.

Installing the autoprofiler on linux x64 musl from npm including manual prebuilds

=> [3/3] RUN npm install @instana/autoprofile --save --verbose 10.8s

Installing the autoprofiler on linux x64 musl from local source with prebuild

=> [4/4] RUN npm install instana-autoprofile-3.1.0.tgz --save --verbose 6.3s

Installing the autoprofiler on linux x64 musl from local source without prebuild

=> [5/5] RUN npm install instana-autoprofile-3.1.0.tgz --save --verbose 18.3s

Installing the autoprofiler on linux x64 glibc from npm including manual prebuilds

=> [4/4] RUN npm install @instana/autoprofile --save --verbose 7.8s

Installing the autoprofiler on linux x64 glibc from local source with prebuild

=> [4/4] RUN npm install instana-autoprofile-3.1.0.tgz --save --verbose 6.5s

Installing the autoprofiler on linux x64 glibc from local source without prebuild

=> [4/4] RUN npm install instana-autoprofile-3.1.0.tgz --save --verbose 16.6s

Installing the autoprofiler on linux arm64 glibc from npm including manual prebuilds

=> [4/4] RUN npm install @instana/autoprofile --save --verbose 118.7s

Installing the autoprofiler on linux arm64 glibc from local source with prebuild

=> [4/4] RUN npm install instana-autoprofile-local-with-prebuild.tgz --save --verbose 31.1s.

Tasks

  • [x] create a pull request for https://github.com/prebuild/prebuildify-cross/issues/18
  • [ ] bump prebuildify-cross to 5.1.0
  • [x] manually test on darwin
  • [x] manually test on linux
  • [x] code QA

kirrg001 avatar Jan 05 '24 12:01 kirrg001

RFR but do not merge. We need to wait for the merge & release of https://github.com/prebuild/prebuildify-cross/issues/18.

kirrg001 avatar Jan 09 '24 15:01 kirrg001

Awesome work 🥳

aryamohanan avatar Jan 10 '24 06:01 aryamohanan

prebuildify-cross released 5.1.0. Will update 👍

kirrg001 avatar Feb 02 '24 14:02 kirrg001

Closing because of wrong branch name. https://github.com/instana/nodejs/pull/1135

kirrg001 avatar Apr 29 '24 12:04 kirrg001