• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / devtools-shared / 28511749931
79%
main: 79%

Build:
Build:
LAST BUILD BRANCH: MONGOSH-3244-idx-variable
DEFAULT BRANCH: main
Ran 01 Jul 2026 10:56AM UTC
Jobs 27
Files 158
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jul 2026 10:40AM UTC coverage: 79.079%. First build
28511749931

Pull #809

github

ivandevp
fix(devtools-proxy-support): serialize SSH reinit and cap consecutive failures HELP-96049

When the SSH tunnel breaks during hibernate, concurrent _connect() callers all
hit initialize(reinitializeClient=true) simultaneously. Because that path
bypasses the connectingPromise deduplication guard, every caller raced through
the reinit — each calling sshClient.end() + createSshClient() + connect() —
producing N new server-side SSH sessions per MongoDB driver retry cycle. With
the driver retrying every ~10 s indefinitely, sessions accumulated without
bound (300+ observed in the field, exhausting the bastion's RAM).

Two changes:

1. Serialize concurrent reinit attempts via reinitializingPromise. The first
   caller to reach initialize(true) owns the reinit; subsequent concurrent
   callers await that same promise and then fall through to initialize(false)
   to use the freshly-connected client. Only one new SSH session is opened per
   reinit cycle regardless of how many _connect() callers are in flight.

2. Cap consecutive reinit failures. A new consecutiveReinitFailures counter
   increments each time _doReinit() fails and resets to zero on success. After
   MAX_CONSECUTIVE_REINIT_FAILURES (3) consecutive failures the agent sets
   closed=true, causing all subsequent initialize() calls to throw
   'Disconnected.' immediately. This surfaces a clean error to the MongoDB
   driver rather than looping indefinitely and leaking sessions.
Pull Request #809: fix(devtools-proxy-support): serialize SSH reinit and cap consecutive failures HELP-96049

1921 of 2692 branches covered (71.36%)

Branch coverage included in aggregate %.

4127 of 4956 relevant lines covered (83.27%)

639.06 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 devtools-proxy-support 28511749931.1 01 Jul 2026 10:57AM UTC 12
85.57
GitHub Action Run
2 oidc-mock-provider 28511749931.2 01 Jul 2026 10:57AM UTC 3
7.59
GitHub Action Run
3 download-url 28511749931.3 01 Jul 2026 10:57AM UTC 3
81.48
GitHub Action Run
4 saslprep 28511749931.4 01 Jul 2026 10:57AM UTC 8
95.04
GitHub Action Run
5 signing-utils 28511749931.5 01 Jul 2026 10:57AM UTC 5
87.05
GitHub Action Run
6 shell-bson-parser 28511749931.6 01 Jul 2026 10:57AM UTC 6
80.23
GitHub Action Run
7 mongodb-build-info 28511749931.7 01 Jul 2026 10:57AM UTC 3
93.38
GitHub Action Run
8 mongodb-redact 28511749931.8 01 Jul 2026 10:57AM UTC 7
97.26
GitHub Action Run
9 oidc-http-server-pages 28511749931.9 01 Jul 2026 10:57AM UTC 7
94.92
GitHub Action Run
10 mongodb-downloader 28511749931.10 01 Jul 2026 10:57AM UTC 3
70.23
GitHub Action Run
11 native-machine-id 28511749931.11 01 Jul 2026 10:57AM UTC 2
92.86
GitHub Action Run
12 monorepo-tools 28511749931.12 01 Jul 2026 10:57AM UTC 16
68.67
GitHub Action Run
13 node-webpack-startup-snapshot-checker 28511749931.13 01 Jul 2026 10:57AM UTC 4
90.0
GitHub Action Run
14 mongodb-server-log-checker 28511749931.14 01 Jul 2026 10:57AM UTC 2
75.68
GitHub Action Run
15 mongodb-constants 28511749931.15 01 Jul 2026 10:57AM UTC 17
96.76
GitHub Action Run
16 sbom-tools 28511749931.16 01 Jul 2026 10:57AM UTC 14
80.31
GitHub Action Run
17 mongodb-cloud-info 28511749931.17 01 Jul 2026 10:57AM UTC 2
95.56
GitHub Action Run
18 ts-autocomplete 28511749931.18 01 Jul 2026 10:57AM UTC 2
70.75
GitHub Action Run
19 query-parser 28511749931.19 01 Jul 2026 10:57AM UTC 4
84.33
GitHub Action Run
20 mongodb-ts-autocomplete 28511749931.20 01 Jul 2026 10:57AM UTC 7
90.16
GitHub Action Run
21 mongodb-runner 28511749931.21 01 Jul 2026 10:57AM UTC 11
80.95
GitHub Action Run
22 devtools-connect 28511749931.22 01 Jul 2026 10:57AM UTC 9
63.68
GitHub Action Run
23 dl-center 28511749931.23 01 Jul 2026 10:57AM UTC 2
89.87
GitHub Action Run
24 device-id 28511749931.24 01 Jul 2026 10:56AM UTC 2
100.0
GitHub Action Run
25 get-os-info 28511749931.25 01 Jul 2026 10:57AM UTC 2
65.0
GitHub Action Run
26 aggregation-stage-icons 28511749931.26 01 Jul 2026 10:56AM UTC 3
100.0
GitHub Action Run
27 mongodb-ns 28511749931.27 01 Jul 2026 10:57AM UTC 2
92.23
GitHub Action Run
Source Files on build 28511749931
  • Tree
  • List 158
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28511749931
  • Pull Request #809
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc