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

mongodb-js / devtools-shared / 28783495978
79%

Build:
DEFAULT BRANCH: main
Ran 06 Jul 2026 10:15AM 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

06 Jul 2026 10:00AM UTC coverage: 79.079% (+0.09%) from 78.993%
28783495978

push

github

web-flow
fix(devtools-proxy-support): serialize SSH reinit and cap consecutive failures COMPASS-10804 (#809)

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.

1921 of 2692 branches covered (71.36%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 1 file covered. (100.0%)

4127 of 4956 relevant lines covered (83.27%)

639.61 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 mongodb-cloud-info 28783495978.1 06 Jul 2026 10:15AM UTC 2
95.56
GitHub Action Run
2 oidc-http-server-pages 28783495978.2 06 Jul 2026 10:15AM UTC 7
94.92
GitHub Action Run
3 sbom-tools 28783495978.3 06 Jul 2026 10:15AM UTC 14
80.31
GitHub Action Run
4 download-url 28783495978.4 06 Jul 2026 10:15AM UTC 3
81.48
GitHub Action Run
5 query-parser 28783495978.5 06 Jul 2026 10:15AM UTC 4
84.33
GitHub Action Run
6 monorepo-tools 28783495978.6 06 Jul 2026 10:15AM UTC 16
68.67
GitHub Action Run
7 mongodb-ts-autocomplete 28783495978.7 06 Jul 2026 10:15AM UTC 7
90.16
GitHub Action Run
8 ts-autocomplete 28783495978.8 06 Jul 2026 10:15AM UTC 2
70.75
GitHub Action Run
9 devtools-connect 28783495978.9 06 Jul 2026 10:15AM UTC 9
63.68
GitHub Action Run
10 mongodb-ns 28783495978.10 06 Jul 2026 10:15AM UTC 2
92.23
GitHub Action Run
11 mongodb-constants 28783495978.11 06 Jul 2026 10:15AM UTC 17
96.76
GitHub Action Run
12 mongodb-build-info 28783495978.12 06 Jul 2026 10:15AM UTC 3
93.38
GitHub Action Run
13 mongodb-runner 28783495978.13 06 Jul 2026 10:15AM UTC 11
80.95
GitHub Action Run
14 saslprep 28783495978.14 06 Jul 2026 10:15AM UTC 8
95.04
GitHub Action Run
15 mongodb-downloader 28783495978.15 06 Jul 2026 10:15AM UTC 3
70.23
GitHub Action Run
16 shell-bson-parser 28783495978.16 06 Jul 2026 10:15AM UTC 6
80.23
GitHub Action Run
17 dl-center 28783495978.17 06 Jul 2026 10:15AM UTC 2
89.87
GitHub Action Run
18 oidc-mock-provider 28783495978.18 06 Jul 2026 10:15AM UTC 3
7.59
GitHub Action Run
19 native-machine-id 28783495978.19 06 Jul 2026 10:15AM UTC 2
92.86
GitHub Action Run
20 mongodb-server-log-checker 28783495978.20 06 Jul 2026 10:15AM UTC 2
75.68
GitHub Action Run
21 device-id 28783495978.21 06 Jul 2026 10:15AM UTC 2
100.0
GitHub Action Run
22 signing-utils 28783495978.22 06 Jul 2026 10:15AM UTC 5
87.05
GitHub Action Run
23 mongodb-redact 28783495978.23 06 Jul 2026 10:15AM UTC 7
97.26
GitHub Action Run
24 get-os-info 28783495978.24 06 Jul 2026 10:15AM UTC 2
65.0
GitHub Action Run
25 node-webpack-startup-snapshot-checker 28783495978.25 06 Jul 2026 10:15AM UTC 4
90.0
GitHub Action Run
26 aggregation-stage-icons 28783495978.26 06 Jul 2026 10:15AM UTC 3
100.0
GitHub Action Run
27 devtools-proxy-support 28783495978.27 06 Jul 2026 10:15AM UTC 12
85.57
GitHub Action Run
Source Files on build 28783495978
  • Tree
  • List 158
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28783495978
  • ab39c183 on github
  • Prev Build on main (#28612370422)
  • Next Build on main (#28783608403)
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