Skip to content

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

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

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

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

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
3m 19s
Run Atlas tests
Report Coverage
38s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 19 warnings, and 3 notices
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 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 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 (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 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-08-22 15:50:38.768 sysadminctl[3675:19104] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-08-22 15:50:38.701 sysadminctl[3675:19104] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-08-22 15:50:38.462 sysadminctl[3675:19104] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-08-22 15:50:37.819 sysadminctl[3675:19104] ---------------------------- 2025-08-22 15:50:37.819 sysadminctl[3675:19104] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-08-22 15:50:37.819 sysadminctl[3675:19104] ----------------------------
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-713c43772bc254865d4d990de82b3771 Expired
140 Bytes
sha256:e9d0c4d1f5800bac567b8e790ec094a22b911b48af733f32881fbc41a0fac68e
run-tests-permissions-226c0e014191b57083655b2f4d6e9dcc Expired
140 Bytes
sha256:5ea0c35a032b6daec3348bd165382a5a3a02874b731a9c947d35b13a558684c6
run-tests-permissions-b47e7b40fb644b1f32eb9be4729d1aef Expired
140 Bytes
sha256:8464f6d8003d4ea08b4866bef0dcffb7bae6cd992fba8bdfb1f1f394dfb463a2