Skip to content

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

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

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

Triggered via pull request July 15, 2025 14:50
Status Failure
Total duration 8m 11s
Artifacts 5

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 19s
Run Atlas tests
Report Coverage
47s
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#L16
Error: Invalid package config \\?\D:\a\mongodb-mcp-server\mongodb-mcp-server\dist\package.json. ❯ tests/integration/build.test.ts:16: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)
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 14:51:03.704 sysadminctl[859:4868] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-07-15 14:51:03.613 sysadminctl[859:4868] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-07-15 14:51:03.450 sysadminctl[859:4868] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-07-15 14:51:02.636 sysadminctl[859:4868] ---------------------------- 2025-07-15 14:51:02.636 sysadminctl[859:4868] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-07-15 14:51:02.636 sysadminctl[859:4868] ----------------------------
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.65 KB
sha256:f0bbde455d19ae6b5dc4218155de3beacfd53e082a3f4c4d5b1e140f1f1351cd
run-atlas-tests-permissions-054b5122fe6b282649e702c7372432a7 Expired
140 Bytes
sha256:733dcdf2e093f10dd58d8af6f61cce460fae59f9ac8695848c1f025807445db6
run-tests-permissions-7c5f00903dc5232af74f312f71ea8cdd Expired
140 Bytes
sha256:29e8bd2a00c7713f5c465796896b9b7e0c9fa05812e6f175de2428a732ab4c91
run-tests-permissions-7e5d1b9eadc3bd9a07b49417df46509b Expired
140 Bytes
sha256:d7d8756f78c17eaa4534d460c3a8f8dd9859809475ec6837d0d19e6dd77dd41a
test-results Expired
11.1 KB
sha256:da33642e59919d375a36fdfdd134caef475d3b143d549703a9b1b4ef3f18c301