Skip to content

switch back to hoisted linker for bun#8142

Merged
BridgeAR merged 8 commits intomasterfrom
sandbox-timeout-debug
Apr 28, 2026
Merged

switch back to hoisted linker for bun#8142
BridgeAR merged 8 commits intomasterfrom
sandbox-timeout-debug

Conversation

@rochdev
Copy link
Copy Markdown
Member

@rochdev rochdev commented Apr 28, 2026

What does this PR do?

Switch back to hoisted linker for bun.

Motivation

Bun 1.3 switched the default linker to isolated. However, it still has many unresolved issues even with the latest version, so it's safer to use the more robust hoisted linker until those issues are resolved to avoid flakiness.

Additional Notes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Overall package size

Self size: 5.66 MB
Deduped: 6.5 MB
No deduping: 6.5 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

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

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Apr 28, 2026

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 68.52% (-0.04%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1329a8b | Docs | Datadog PR Page | Give us feedback!

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 28, 2026

Benchmarks

Benchmark execution time: 2026-04-28 20:23:54

Comparing candidate commit 1329a8b in PR branch sandbox-timeout-debug with baseline commit 9cc799d in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1342 metrics, 102 unstable metrics.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.11%. Comparing base (9cc799d) to head (1329a8b).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8142      +/-   ##
==========================================
+ Coverage   73.53%   74.11%   +0.58%     
==========================================
  Files         784      786       +2     
  Lines       36369    36400      +31     
==========================================
+ Hits        26744    26979     +235     
+ Misses       9625     9421     -204     
Flag Coverage Δ
aiguard-macos 36.38% <ø> (-0.09%) ⬇️
aiguard-ubuntu 36.49% <ø> (-0.09%) ⬇️
aiguard-windows 36.29% <ø> (-0.09%) ⬇️
apm-capabilities-tracing-macos 48.10% <ø> (-0.07%) ⬇️
apm-capabilities-tracing-ubuntu-active 48.17% <ø> (-0.03%) ⬇️
apm-capabilities-tracing-ubuntu-latest 48.14% <ø> (-0.03%) ⬇️
apm-capabilities-tracing-ubuntu-maintenance 48.17% <ø> (-0.03%) ⬇️
apm-capabilities-tracing-ubuntu-oldest 48.16% <ø> (-0.03%) ⬇️
apm-capabilities-tracing-windows 47.97% <ø> (-0.02%) ⬇️
apm-integrations-child-process 36.04% <ø> (-0.10%) ⬇️
apm-integrations-couchbase-18 35.04% <ø> (-0.09%) ⬇️
apm-integrations-couchbase-eol 35.09% <ø> (-0.12%) ⬇️
apm-integrations-oracledb 35.10% <ø> (-0.09%) ⬇️
appsec-express 52.73% <ø> (-0.07%) ⬇️
appsec-fastify 49.21% <ø> (-0.07%) ⬇️
appsec-graphql 49.49% <ø> (-0.07%) ⬇️
appsec-kafka 41.97% <ø> (-0.09%) ⬇️
appsec-ldapjs 41.31% <ø> (-0.08%) ⬇️
appsec-lodash 41.34% <ø> (-0.08%) ⬇️
appsec-macos 56.76% <ø> (-0.07%) ⬇️
appsec-mongodb-core 45.63% <ø> (-0.12%) ⬇️
appsec-mongoose 46.51% <ø> (-0.07%) ⬇️
appsec-mysql 48.69% <ø> (-0.07%) ⬇️
appsec-node-serialize 40.51% <ø> (-0.08%) ⬇️
appsec-passport 44.52% <ø> (-0.08%) ⬇️
appsec-postgres 48.28% <ø> (-0.07%) ⬇️
appsec-sourcing 40.01% <ø> (-0.08%) ⬇️
appsec-stripe 42.24% <ø> (-0.08%) ⬇️
appsec-template 40.68% <ø> (-0.08%) ⬇️
appsec-ubuntu 56.84% <ø> (-0.07%) ⬇️
appsec-windows 56.65% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-bluebird 29.75% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-body-parser 37.64% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-child_process 35.41% <ø> (-0.10%) ⬇️
instrumentations-instrumentation-cookie-parser 31.68% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-express 31.90% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 31.80% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-express-session 37.27% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-fs 29.43% <ø> (-0.10%) ⬇️
instrumentations-instrumentation-generic-pool 30.53% <ø> (ø)
instrumentations-instrumentation-http 36.88% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-knex 29.72% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-light-my-request 37.20% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-mongoose 30.89% <ø> (-0.02%) ⬇️
instrumentations-instrumentation-multer 37.41% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-mysql2 35.38% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-passport 41.17% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport-http 40.87% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport-local 41.38% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-pg 34.91% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-promise 29.68% <ø> (-0.10%) ⬇️
instrumentations-instrumentation-promise-js 29.69% <ø> (-0.10%) ⬇️
instrumentations-instrumentation-q 29.72% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-url 29.69% <ø> (-0.10%) ⬇️
instrumentations-instrumentation-when 29.70% <ø> (-0.10%) ⬇️
llmobs-ai 38.35% <ø> (-0.09%) ⬇️
llmobs-anthropic 37.84% <ø> (-0.07%) ⬇️
llmobs-bedrock 37.06% <ø> (-0.08%) ⬇️
llmobs-google-genai 37.49% <ø> (-0.02%) ⬇️
llmobs-langchain 37.02% <ø> (-0.05%) ⬇️
llmobs-openai 41.18% <ø> (-0.08%) ⬇️
llmobs-vertex-ai 37.67% <ø> (-0.09%) ⬇️
platform-core 30.03% <ø> (ø)
platform-esbuild 32.83% <ø> (ø)
platform-instrumentations-misc 31.22% <ø> (ø)
platform-shimmer 35.72% <ø> (ø)
platform-unit-guardrails 31.39% <ø> (ø)
platform-webpack 20.73% <ø> (ø)
plugins-azure-durable-functions 25.36% <ø> (ø)
plugins-azure-event-hubs 25.51% <ø> (ø)
plugins-azure-service-bus 24.92% <ø> (ø)
plugins-bullmq 40.68% <ø> (+0.03%) ⬆️
plugins-cassandra 35.24% <ø> (+0.04%) ⬆️
plugins-cookie 26.47% <ø> (ø)
plugins-cookie-parser 26.28% <ø> (?)
plugins-crypto 25.70% <ø> (ø)
plugins-dd-trace-api 35.35% <ø> (-0.09%) ⬇️
plugins-express-mongo-sanitize 26.42% <ø> (ø)
plugins-express-session 26.24% <ø> (ø)
plugins-fastify 39.25% <ø> (-0.09%) ⬇️
plugins-fetch 35.91% <ø> (-0.09%) ⬇️
plugins-fs 35.64% <ø> (-0.10%) ⬇️
plugins-generic-pool 25.40% <ø> (ø)
plugins-google-cloud-pubsub 42.99% <ø> (-0.08%) ⬇️
plugins-grpc 38.01% <ø> (-0.09%) ⬇️
plugins-handlebars 26.46% <ø> (?)
plugins-hapi 37.38% <ø> (+0.04%) ⬆️
plugins-hono 37.50% <ø> (-0.09%) ⬇️
plugins-ioredis 35.68% <ø> (-0.09%) ⬇️
plugins-knex 26.14% <ø> (ø)
plugins-langgraph 35.03% <ø> (-0.09%) ⬇️
plugins-ldapjs 24.02% <ø> (ø)
plugins-light-my-request 25.88% <ø> (ø)
plugins-limitd-client 29.98% <ø> (-0.09%) ⬇️
plugins-lodash 25.47% <ø> (ø)
plugins-mariadb 36.55% <ø> (?)
plugins-memcached 35.34% <ø> (-0.08%) ⬇️
plugins-microgateway-core 36.34% <ø> (-0.09%) ⬇️
plugins-modelcontextprotocol-sdk 34.27% <ø> (-0.09%) ⬇️
plugins-moleculer 38.03% <ø> (-0.09%) ⬇️
plugins-mongodb 36.50% <ø> (-0.20%) ⬇️
plugins-mongodb-core 36.13% <ø> (-0.12%) ⬇️
plugins-mongoose 36.10% <ø> (ø)
plugins-multer 26.24% <ø> (ø)
plugins-mysql 36.28% <ø> (-0.09%) ⬇️
plugins-mysql2 36.40% <ø> (-0.09%) ⬇️
plugins-node-serialize 26.51% <ø> (ø)
plugins-opensearch 35.00% <ø> (-0.09%) ⬇️
plugins-passport-http 26.30% <ø> (ø)
plugins-pino 31.78% <ø> (-0.09%) ⬇️
plugins-postgres 34.51% <ø> (+0.04%) ⬆️
plugins-process 25.70% <ø> (ø)
plugins-pug 26.47% <ø> (ø)
plugins-redis 35.89% <ø> (-0.09%) ⬇️
plugins-router 39.77% <ø> (-0.09%) ⬇️
plugins-sequelize 25.18% <ø> (ø)
plugins-test-and-upstream-amqp10 35.65% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-amqplib 40.82% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-apollo 36.51% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-avsc 35.41% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-bunyan 31.13% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-connect 37.84% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-graphql 37.18% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-koa 37.45% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-protobufjs 35.63% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-rhea 41.03% <ø> (?)
plugins-undici 36.51% <ø> (-0.09%) ⬇️
plugins-url 25.70% <ø> (ø)
plugins-valkey 35.36% <ø> (-0.08%) ⬇️
plugins-vm 25.70% <ø> (ø)
plugins-winston 31.45% <ø> (-0.09%) ⬇️
plugins-ws 38.97% <ø> (-0.09%) ⬇️
profiling-macos 39.21% <ø> (-0.09%) ⬇️
profiling-ubuntu 39.39% <ø> (-0.09%) ⬇️
profiling-windows 38.92% <ø> (-0.09%) ⬇️
serverless-azure-functions-client 25.25% <ø> (ø)
serverless-azure-functions-eventhubs 25.25% <ø> (ø)
serverless-azure-functions-servicebus 25.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rochdev rochdev changed the title debug Switch back to hoisted linker for bun Apr 28, 2026
@rochdev rochdev marked this pull request as ready for review April 28, 2026 17:49
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c689371d0d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread integration-tests/helpers/index.js Outdated
...addOptions,
timeout: 90_000,
})
execHelper(`${BUN} add ${cappedDependencies.join(' ')} ${addFlags.join(' ')}`, addOptions)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Guard bun add against an empty dependency list

This call now runs even when dependencies is empty (the default path used by tests like integration-tests/init.spec.js via useSandbox()), so it executes bun add with no package argument. bun add --help documents Usage: bun add [flags] <package><@version>, and invoking it without a package emits error: no package specified to add; on Bun versions that return non-zero for this error, sandbox creation fails before tests run. Please skip this bun add invocation when cappedDependencies.length === 0.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe we want it to fail in case no dependencies are found? So it should likely be fine, what do you think @rochdev?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Some usage of sandbox don't have depedencies, so that's a valid use case. It doesn't crash either, it just outputs the help, so that's why everything is passing. Not the end of the world, but it would indeed be better to skip the line entirely instead so I will push a fix.

BridgeAR
BridgeAR previously approved these changes Apr 28, 2026
Copy link
Copy Markdown
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

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

LGTM, while we might want to look at the comment being brought up (I think that is actually totally acceptable or even wanted)

@BridgeAR BridgeAR merged commit 95010b2 into master Apr 28, 2026
974 of 977 checks passed
@BridgeAR BridgeAR deleted the sandbox-timeout-debug branch April 28, 2026 21:24
@rochdev rochdev changed the title Switch back to hoisted linker for bun switch back to hoisted linker for bun Apr 28, 2026
dd-octo-sts Bot pushed a commit that referenced this pull request Apr 29, 2026
* skip unnecessary install when no dependencies are defined
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Apr 29, 2026
BridgeAR pushed a commit that referenced this pull request Apr 30, 2026
* skip unnecessary install when no dependencies are defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants