Skip to content

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

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

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

Triggered via pull request July 15, 2025 12:53
Status Failure
Total duration 5m 35s
Artifacts 5

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 28s
Run Atlas tests
Report Coverage
42s
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#L34
Error: Invalid package config \\?\D:\a\mongodb-mcp-server\mongodb-mcp-server\dist\package.json. ❯ tests/integration/build.test.ts:34: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 (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:53:46.375 sysadminctl[1249:7041] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-07-15 12:53:46.321 sysadminctl[1249:7041] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-07-15 12:53:46.149 sysadminctl[1249:7041] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-07-15 12:53:45.486 sysadminctl[1249:7041] ---------------------------- 2025-07-15 12:53:45.486 sysadminctl[1249:7041] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-07-15 12:53:45.486 sysadminctl[1249:7041] ----------------------------
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)
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:af1cbce13fda4ec7bbb3ff983e0990812562bf13578ed42d41baa5eabe4eabda
run-atlas-tests-permissions-3e932673499891202d73c2b934c750d6 Expired
140 Bytes
sha256:62be57cb19967de49c519e0b9528bf70dd7e6657f522617f39b478a472643a87
run-tests-permissions-0ef709d8df608dd89532d6593c2852d9 Expired
140 Bytes
sha256:217e8f97ce7b791274e014101a46442f2c8529f750b6f1e67b5ea2abbb6b5313
run-tests-permissions-42cf47745911a7271eb3dc7c7b005193 Expired
140 Bytes
sha256:4162df3ad0f2a3814eb7e91bbed233ff1a715cafe6fb4ef83ae86fcaca41f858
test-results Expired
11.1 KB
sha256:736120fd952e6b03e2e4dd66f054b73b06a801af91ba902f5644bd5f2a781173