Skip to content

fix: atlas connectCluster defaults to readOnly DB roles - MCP-125 #1636

fix: atlas connectCluster defaults to readOnly DB roles - MCP-125

fix: atlas connectCluster defaults to readOnly DB roles - MCP-125 #1636

Triggered via pull request August 22, 2025 15:46
@blvablva
synchronize #471
MCP-125
Status Failure
Total duration 5m 39s
Artifacts 3

code_health.yaml

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

Annotations

9 errors, 18 warnings, and 3 notices
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/unit/common/roles.test.ts > getDefaultRoleFromConfig > should return the correct role for a read-write config with update disabled: tests/unit/common/roles.test.ts#L87
AssertionError: expected { …(2) } to deeply equal { roleName: 'readAnyDatabase', …(1) } - Expected + Received { "databaseName": "admin", - "roleName": "readAnyDatabase", + "roleName": "readWriteAnyDatabase", } ❯ tests/unit/common/roles.test.ts:87:22
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/unit/common/roles.test.ts > getDefaultRoleFromConfig > should return the correct role for a read-write config with update disabled: tests/unit/common/roles.test.ts#L87
AssertionError: expected { …(2) } to deeply equal { roleName: 'readAnyDatabase', …(1) } - Expected + Received { "databaseName": "admin", - "roleName": "readAnyDatabase", + "roleName": "readWriteAnyDatabase", } ❯ tests/unit/common/roles.test.ts:87:22
Run Atlas tests
Process completed with exit code 1.
tests/unit/common/roles.test.ts > getDefaultRoleFromConfig > should return the correct role for a read-write config with update disabled: tests/unit/common/roles.test.ts#L87
AssertionError: expected { …(2) } to deeply equal { roleName: 'readAnyDatabase', …(1) } - Expected + Received { "databaseName": "admin", - "roleName": "readAnyDatabase", + "roleName": "readWriteAnyDatabase", } ❯ tests/unit/common/roles.test.ts:87:22
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/unit/common/roles.test.ts > getDefaultRoleFromConfig > should return the correct role for a read-write config with update disabled: tests/unit/common/roles.test.ts#L87
AssertionError: expected { …(2) } to deeply equal { roleName: 'readAnyDatabase', …(1) } - Expected + Received { "databaseName": "admin", - "roleName": "readAnyDatabase", + "roleName": "readWriteAnyDatabase", } ❯ tests/unit/common/roles.test.ts:87:22
Report Coverage
Unable to download artifact(s): Artifact not found for name: test-results Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
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-08-22 15:46:51.215 sysadminctl[3245:16696] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-08-22 15:46:51.175 sysadminctl[3245:16696] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-08-22 15:46:51.068 sysadminctl[3245:16696] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-08-22 15:46:50.509 sysadminctl[3245:16696] ---------------------------- 2025-08-22 15:46:50.510 sysadminctl[3245:16696] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-08-22 15:46:50.510 sysadminctl[3245:16696] ----------------------------
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
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
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
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
Run MongoDB tests (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677

Artifacts

Produced during runtime
Name Size Digest
run-atlas-tests-permissions-7aff43a1a75b35e4668c3a593ad31d37
140 Bytes
sha256:903516cce57bd2265d6a3f8f4bfbf9123d43dbd42f5fd5cfbda22510f7e6973e
run-tests-permissions-4d0521a28f47dfeb803e1da3ab145936
140 Bytes
sha256:be49cbad085dd622d71c67312d2a586de1025b7637bd86d27d9511731540c2d1
run-tests-permissions-edaad9e3dd1a8da9cff863f2732ead71
140 Bytes
sha256:b51f81ca101a462ba5450bfb28a5397f8c020043917c283af308a40d063308fa