Repository navigation
test(bun): run plugin integration tests on the Bun runtime and document experimental support - #11272
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Overall package sizeSelf size: 9.56 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.5.3 | 131.25 kB | 531.9 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
🎉 All green!🧪 All tests passed 🔄 Datadog retried 1 test - 1 passed on retry 🎯 Code Coverage (details) 🔗 Commit SHA: 92cea77 | Docs | View more details | Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11272 +/- ##
=========================================
Coverage 99.15% 99.15%
=========================================
Files 1126 1136 +10
Lines 187020 188374 +1354
Branches 82 86 +4
=========================================
+ Hits 185431 186790 +1359
+ Misses 1588 1584 -4
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-11-23 23:16:37 Comparing candidate commit 92cea77 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2446 metrics, 11 unstable metrics.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…nt experimental support Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16cd8bc to
fd129ad
Compare
What does this PR do?
Adds a test harness that runs the existing plugin integration tests on the Bun runtime, so experimental Bun support has a regression guard. It also adds a short "Bun (experimental)" section to the root README, listing what does and doesn't work. There are no runtime (
packages/*/src) changes.DD_TEST_RUNTIME=bunmakesspawnProcImplfork the test application with the pinned Bun binary (integration-tests/bun/plugin-runtime.js).--loader/--import/-rare translated to--preload, andloader-hook.mjs/register.jsbecomeinitialize.mjs. The Mocha host and the sandbox install stay on Node. When the switch is unset, fork options are returned unchanged.integration-tests/bun/known-failures.jsonis a baseline keyed by spec file and full test title. Each entry also records an error signature (name, code and message, with ANSI colors and repository paths normalized). A Mocha root hook (known-failures.js) behaves as follows:test:integration:plugins:bunruns the plugin suites on Bun.generate:bun-plugin-failuresregenerates the baseline.test:integration:bun:harnessruns the harness unit tests.bun-plugin-integrationjob ininstrumentation.yml, with 5 shards covering service-free plugins: express, http, fetch, pino, winston, crypto, dns and openai.Motivation
Bun support is tracked in #3749. The experimental Bun fixes (#11267, #11268, #11269) need a regression guard that fails when Bun behavior changes, and Node behavior must stay unchanged.
Additional Notes
npm run test:integration:bun:harness: 23 passing. ESLint on the changed files andnpm run lint:editorconfigpass.Runnable#run. Wrapping the test body would miss Mocha-generated timeouts, andafterEachruns after Mocha has counted the failure. A--grepexclusion would stop running the known failures, so unexpected passes would go undetected.integration-tests/bun/README.md.Link to Devin session: https://datadog-poc.devinenterprise.com/sessions/3506f93df4974581afb7bdc2f02bec6f
Open in Devin Desktop: https://datadog-poc.devinenterprise.com/desktop/session/3506f93df4974581afb7bdc2f02bec6f?variant=devin
Requested by: @eam1813