Skip to content

fix: do not inline process.env during bun run and bun test - #7614

Merged
Jarred-Sumner merged 7 commits into
mainfrom
dave/disable-inlining
Dec 13, 2023
Merged

Jarred-Sumner merged 7 commits into
mainfrom
dave/disable-inlining

Conversation

@small-angel

Copy link
Copy Markdown
Contributor

What does this PR do?

No longer inline env vars in bun run and bun test. this fixes #7609.

In bun test, explicitly setting NODE_ENV applies.

In bun test, dynamically reading NODE_ENV reads test if an explicit node_env is set

Removes check for adding BUN_HMR_ENABLED as this variable is not documented anywhere and never was functional due to a typo.

console.log(process.env.BUN_HMR_ENABLED);process.exit(0)

How did you verify your code works?

many new tests for different configs. bundler is tested by existing

@small-angel
small-angel requested review from a team and dylan-conway and removed request for a team December 13, 2023 01:06
Comment thread src/cli/test_command.zig Resolved
@github-actions

github-actions Bot commented Dec 13, 2023 •

Copy link
Copy Markdown
Contributor

❌ @Paperdave 3 files with test failures on bun-darwin-aarch64:

  • test/cli/run/require-cache.test.ts
  • test/integration/next/default-pages-dir/test/next-build.test.ts
  • test/js/third_party/webpack/webpack.test.ts

View test output

#35b31aecd2058870f3d967f5c0439ef8fac5ddf5

@github-actions

github-actions Bot commented Dec 13, 2023 •

Copy link
Copy Markdown
Contributor

❌ @Paperdave 1 files with test failures on linux-x64:

  • test/integration/next/default-pages-dir/test/next-build.test.ts

View test output

#35b31aecd2058870f3d967f5c0439ef8fac5ddf5

@github-actions

github-actions Bot commented Dec 13, 2023 •

Copy link
Copy Markdown
Contributor

❌ @Paperdave 1 files with test failures on linux-x64-baseline:

  • test/integration/next/default-pages-dir/test/next-build.test.ts

View test output

#35b31aecd2058870f3d967f5c0439ef8fac5ddf5

@github-actions

github-actions Bot commented Dec 13, 2023 •

Copy link
Copy Markdown
Contributor

❌ @Paperdave 8 files with test failures on bun-darwin-x64-baseline:

  • test/integration/next/default-pages-dir/test/dev-server.test.ts
  • test/integration/next/default-pages-dir/test/next-build.test.ts
  • test/js/bun/spawn/spawn-streaming-stdout.test.ts
  • test/js/bun/util/which.test.ts
  • test/js/node/fs/fs.test.ts
  • test/js/node/watch/fs.watchFile.test.ts
  • test/js/third_party/webpack/webpack.test.ts
  • test/js/web/timers/setTimeout.test.js

View test output

#35b31aecd2058870f3d967f5c0439ef8fac5ddf5

@github-actions

Copy link
Copy Markdown
Contributor

❌ @Paperdave 8 files with test failures on bun-darwin-x64:

  • test/integration/next/default-pages-dir/test/next-build.test.ts
  • test/js/bun/ffi/ffi.test.js
  • test/js/bun/spawn/spawn-streaming-stdout.test.ts
  • test/js/bun/util/which.test.ts
  • test/js/node/fs/fs.test.ts
  • test/js/node/watch/fs.watchFile.test.ts
  • test/js/third_party/webpack/webpack.test.ts
  • test/js/web/timers/setTimeout.test.js

View test output

#35b31aecd2058870f3d967f5c0439ef8fac5ddf5

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.

You still cant override process.env.NODE_ENV at runtime

2 participants