Skip to content

chore(build): build a universal ESM and CommonJS package #1209

chore(build): build a universal ESM and CommonJS package

chore(build): build a universal ESM and CommonJS package #1209

Triggered via pull request July 15, 2025 12:33
Status Failure
Total duration 6m 52s
Artifacts 5

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 10s
Run Atlas tests
Report Coverage
41s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

3 errors, 16 warnings, and 2 notices
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/integration/build.test.ts > Build Test > should have matching exports between CommonJS and ESM modules: tests/integration/build.test.ts#L33
Error: Invalid package config \\?\D:\a\mongodb-mcp-server\mongodb-mcp-server\dist\package.json. ❯ tests/integration/build.test.ts:33:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_PACKAGE_CONFIG' }
tests/integration/build.test.ts > Build Test > should successfully require CommonJS module: tests/integration/build.test.ts#L14
Error: Invalid package config \\?\D:\a\mongodb-mcp-server\mongodb-mcp-server\dist\package.json. ❯ tests/integration/build.test.ts:14:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_PACKAGE_CONFIG' }
Run MongoDB tests (ubuntu-latest)
1 added, 0 removed; done.
Run MongoDB tests (ubuntu-latest)
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run MongoDB tests (ubuntu-latest)
Updating certificates in /etc/ssl/certs...
Run MongoDB tests (ubuntu-latest)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run Atlas tests
1 added, 0 removed; done.
Run Atlas tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run Atlas tests
Updating certificates in /etc/ssl/certs...
Run Atlas tests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run MongoDB tests (macos-latest)
No ALTQ support in kernel ALTQ related functions disabled pf enabled
Run MongoDB tests (macos-latest)
pfctl: Use of -f option, could result in flushing of rules present in the main ruleset added by the system at startup. See /etc/pf.conf for further details. No ALTQ support in kernel ALTQ related functions disabled
Run MongoDB tests (macos-latest)
YES (0)
Run MongoDB tests (macos-latest)
2025-07-15 12:33:48.016 sysadminctl[842:4772] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-07-15 12:33:47.925 sysadminctl[842:4772] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-07-15 12:33:47.794 sysadminctl[842:4772] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-07-15 12:33:47.311 sysadminctl[842:4772] ---------------------------- 2025-07-15 12:33:47.311 sysadminctl[842:4772] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-07-15 12:33:47.311 sysadminctl[842:4772] ----------------------------
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520

Artifacts

Produced during runtime
Name Size Digest
atlas-test-results Expired
9.64 KB
sha256:3ae8d99bb1c015a42b884298b3b9cadda1344130363c8019362ac68dca339de4
run-atlas-tests-permissions-812af3d73409f41b6ccfbd2937d9d1b8 Expired
140 Bytes
sha256:f75fd36217e58ff3b1f2b2e7ef2fa6d8371841684297d4676c1deef116965ce5
run-tests-permissions-1db1ebb33f9a6a51d5692b6eb0ea04c7 Expired
140 Bytes
sha256:761ff56d3d0ec582090c42069ecf399095259f11518be8596ef124c241ac5acf
run-tests-permissions-87b5ac490cb24b826d475fa81b8eafc9 Expired
140 Bytes
sha256:73844ceca56c4a933c7164456164847fe579d1fe7640238bc34d00558166f94c
test-results Expired
11.1 KB
sha256:62f36ae38f62a91063969c1aadd1717f88b0dc83c1feb1e0f11c68390fd76921