test: cover webpack ESM and CommonJS package entrypoints - #2499
test: cover webpack ESM and CommonJS package entrypoints#2499jbeckwith-oai wants to merge 1 commit into
Conversation
Codex Review SummaryThis 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. |
Castiron custom code✅ No new custom-code files detected. 32 mixed files remain; 0 existing customizations changed. Compared 32 existing customizations unchanged
A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 33044045029 --repo openai/openai-node \
--name castiron-custom-code-33044045029-1 --dir /tmp/castiron-custom-code-33044045029-1
git apply --stat /tmp/castiron-custom-code-33044045029-1/custom-code.patch
cat /tmp/castiron-custom-code-33044045029-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 76b73a9c73aafe11c60a425a82898705f1db966d cbe0de6f187141892f48c7a7b259ecec8a1274fe
python3 scripts/castiron/custom_code_report.py report \
--base 76b73a9c73aafe11c60a425a82898705f1db966d \
--head cbe0de6f187141892f48c7a7b259ecec8a1274fe --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-cbe0de6f1871
cat /tmp/castiron-custom-code-cbe0de6f1871/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Summary
openai/index.jsand ESM bundlesopenai/index.mjs.bundle.js,index.html, single development server, and credential-free ecosystem harness.This independently landable follow-up to #2494 changes only the webpack fixture configuration. The native direct-browser production fix remains separate in #2495; webpack supports the package imports mapping, so both configurations already pass against current
main.Verification
env OPENAI_API_KEY= PUPPETEER_SKIP_DOWNLOAD=true pnpm tsn ecosystem-tests/cli.ts ts-browser-webpack --verbosepnpm lintpnpm exec tsc --noEmit./scripts/test tests/ecosystem-browser-credential-security.test.ts tests/ecosystem-cli.test.ts(24 passing tests)npm run build -- --config-name commonjsandnpm run build -- --config-name esm.openai/index.mjsmodule-graph assertion.