Skip to content

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

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

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

Triggered via pull request July 15, 2025 12:30
Status Failure
Total duration 7m 16s
Artifacts 5

code_health.yaml

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

Annotations

3 errors, 17 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 MongoDB tests (macos-latest)
No ALTQ support in kernel ALTQ related functions disabled pf enabled
Run MongoDB tests (macos-latest)
No ALTQ support in kernel ALTQ related functions disabled
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.
Run MongoDB tests (macos-latest)
YES (0)
Run MongoDB tests (macos-latest)
2025-07-15 12:30:33.962 sysadminctl[855:4870] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-07-15 12:30:33.909 sysadminctl[855:4870] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-07-15 12:30:33.797 sysadminctl[855:4870] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-07-15 12:30:33.162 sysadminctl[855:4870] ---------------------------- 2025-07-15 12:30:33.163 sysadminctl[855:4870] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-07-15 12:30:33.163 sysadminctl[855:4870] ----------------------------
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)
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:095067be543884d8002e5cba37c43bc9746a42b9df86ae6524718273f0fefe7a
run-atlas-tests-permissions-6ac9c743a443481450ffb48c407de1fd Expired
140 Bytes
sha256:e6b006012bb1204fcd9e15b35edf9b709edf218c2aac0d6bb6aea7783dc46620
run-tests-permissions-29ef32ac87008dcdc6d99fd01b0141bb Expired
140 Bytes
sha256:5237e60e19ddab977e1cfb90418e506b2444e8526f7310d6d9be86f52925f52e
run-tests-permissions-7c348c5d77864493062e7347e8bae911 Expired
140 Bytes
sha256:2b6dd19d3d5c57321b2f55d13222aa4f56325e1b6b13a8de40f306e2d34f7ac8
test-results Expired
11.1 KB
sha256:b14b62cd3b76fbf6853b0109013659416460e854961d998223597ad0296803b9