Skip to content

Update build action to use latest prebuildify#106

Closed
tlhunter wants to merge 3 commits intomainfrom
tlhunter/prebuildify-main
Closed

Update build action to use latest prebuildify#106
tlhunter wants to merge 3 commits intomainfrom
tlhunter/prebuildify-main

Conversation

@tlhunter
Copy link
Copy Markdown
Member

@tlhunter tlhunter commented Mar 23, 2026

reverts changes in a0ac460 / #104
depends on DataDog/action-prebuildify#100
depends on DataDog/action-prebuildify#101

@tlhunter tlhunter requested review from a team as code owners March 23, 2026 16:52
gyuheon0h
gyuheon0h previously approved these changes Mar 23, 2026
Copy link
Copy Markdown
Contributor

@gyuheon0h gyuheon0h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx

@tlhunter
Copy link
Copy Markdown
Member Author

tlhunter commented Mar 23, 2026

This PR didn't fix anything:

Error: Could not find a process-discovery binary for linuxglibc-x64 nor a process-discovery WASM module.

Perhaps this is needed first DataDog/action-prebuildify#102

References the pin update branch (fe48fca) which includes the
v3 naming fix so that Rust prebuild binaries retain their crate
names instead of all being named node-napi.node.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
szegedi
szegedi previously approved these changes Mar 23, 2026
szegedi added a commit to DataDog/action-prebuildify that referenced this pull request Mar 23, 2026
The RUST=true code path scans all files from build/Release/ and
applies prebuildFilename() to generate output names. This works for
.node libraries but incorrectly renames plain binaries (e.g.
crashtracker-receiver) by adding a -napi.node suffix.

The old pre-PR#90 code used .replace('.node', '-napi.node') which was
a no-op for files without .node in their name, preserving binaries
as-is. The refactored code unconditionally applied the naming
convention.

Fix: only apply prebuildFilename() to .node files; copy other files
with their original name.

Fixes crashtracker test failures in DataDog/libdatadog-nodejs#106.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Overall package size

Self size: 36.05 MB
Deduped: 36.05 MB
No deduping: 36.05 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

szegedi added a commit to DataDog/action-prebuildify that referenced this pull request Mar 23, 2026
The RUST=true code path scans all files from build/Release/ and
applies prebuildFilename() to generate output names. This works for
.node libraries but incorrectly renames plain binaries (e.g.
crashtracker-receiver) by adding a -napi.node suffix.

The old pre-PR#90 code used .replace('.node', '-napi.node') which was
a no-op for files without .node in their name, preserving binaries
as-is. The refactored code unconditionally applied the naming
convention.

Fix: only apply prebuildFilename() to .node files; copy other files
with their original name.

Fixes crashtracker test failures in DataDog/libdatadog-nodejs#106.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tlhunter tlhunter force-pushed the tlhunter/prebuildify-main branch from 7268eba to a97d5c7 Compare March 23, 2026 19:26
@tlhunter tlhunter closed this Mar 23, 2026
@tlhunter tlhunter deleted the tlhunter/prebuildify-main branch March 23, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants