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

mongodb-js / devtools-shared / 42059624173
76%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 03:57PM UTC
Jobs 28
Files 172
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

05 Nov 2026 03:53PM UTC coverage: 80.55% (+0.01%) from 80.537%
42059624173

push

github

web-flow
fix(mongodb-runner): fix precedence bug in replset primary selection (#950)

`m.priority ?? 0 >= (m2.priority ?? 0)` parses as
`m.priority ?? (0 >= ...)`, so any member with an explicitly set
priority was treated as highest regardless of its value. Both call
sites (the member lookup in processRSMembers and the primary
computation in _startServers) now use a shared findPrimary() helper
that returns the primary member with the intended comparison.

On a priority tie, findPrimary() prefers a member with an unset
priority, since replSetInitiate defaults the initial primary's unset
priority to 1. Without this rule, `rsMembers: [{ priority: 0 }, {}]`
selected the explicitly-zero member, every member ended up with
priority 0, and the server rejected the configuration ("must contain
at least one non-arbiter member with priority > 0" — verified against
mongod 8.0, which now yields priorities [0, 1] with the unset member
as primary). Unit tests cover highest-priority selection, ties,
unset-vs-explicit priorities, and an empty member list.

2256 of 3085 branches covered (73.13%)

Branch coverage included in aggregate %.

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

4830 of 5712 relevant lines covered (84.56%)

764.55 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 get-os-info 42059624173.1 05 Nov 2026 04:17PM UTC 2
65.0
GitHub Action Run
2 shell-bson-parser 42059624173.2 05 Nov 2026 03:57PM UTC 3
100.0
GitHub Action Run
3 mongodb-downloader 42059624173.3 05 Nov 2026 04:00PM UTC 3
78.42
GitHub Action Run
4 mongodb-server-log-checker 42059624173.4 05 Nov 2026 03:57PM UTC 2
75.68
GitHub Action Run
5 devtools-connect 42059624173.5 05 Nov 2026 04:17PM UTC 9
64.1
GitHub Action Run
6 devtools-proxy-support 42059624173.6 05 Nov 2026 04:00PM UTC 13
86.08
GitHub Action Run
7 monorepo-tools 42059624173.7 05 Nov 2026 04:17PM UTC 16
68.67
GitHub Action Run
8 node-webpack-startup-snapshot-checker 42059624173.8 05 Nov 2026 03:57PM UTC 4
90.0
GitHub Action Run
9 mongodb-schema 42059624173.9 05 Nov 2026 04:00PM UTC 14
94.24
GitHub Action Run
10 mongodb-cloud-info 42059624173.10 05 Nov 2026 03:57PM UTC 2
95.56
GitHub Action Run
11 mongodb-artifact-url 42059624173.11 05 Nov 2026 03:57PM UTC 3
82.2
GitHub Action Run
12 dl-center 42059624173.12 05 Nov 2026 03:57PM UTC 2
89.74
GitHub Action Run
13 mongodb-redact 42059624173.13 05 Nov 2026 03:57PM UTC 7
97.26
GitHub Action Run
14 mongodb-ns 42059624173.14 05 Nov 2026 03:57PM UTC 2
94.5
GitHub Action Run
15 aggregation-stage-icons 42059624173.15 05 Nov 2026 04:00PM UTC 3
100.0
GitHub Action Run
16 oidc-http-server-pages 42059624173.16 05 Nov 2026 03:57PM UTC 7
94.92
GitHub Action Run
17 mongodb-ts-autocomplete 42059624173.17 05 Nov 2026 03:57PM UTC 7
90.16
GitHub Action Run
18 ts-autocomplete 42059624173.18 05 Nov 2026 03:57PM UTC 2
70.75
GitHub Action Run
19 saslprep 42059624173.19 05 Nov 2026 04:00PM UTC 8
95.04
GitHub Action Run
20 connection-string-policy 42059624173.20 05 Nov 2026 03:57PM UTC 2
95.92
GitHub Action Run
21 oidc-mock-provider 42059624173.21 05 Nov 2026 04:17PM UTC 3
7.59
GitHub Action Run
22 signing-utils 42059624173.22 05 Nov 2026 04:17PM UTC 5
86.76
GitHub Action Run
23 native-machine-id 42059624173.23 05 Nov 2026 04:00PM UTC 2
92.86
GitHub Action Run
24 sbom-tools 42059624173.24 05 Nov 2026 03:57PM UTC 14
80.31
GitHub Action Run
25 mongodb-constants 42059624173.25 05 Nov 2026 04:17PM UTC 17
96.76
GitHub Action Run
26 mongodb-runner 42059624173.26 05 Nov 2026 04:17PM UTC 15
78.01
GitHub Action Run
27 mongodb-build-info 42059624173.27 05 Nov 2026 03:57PM UTC 3
93.38
GitHub Action Run
28 device-id 42059624173.28 05 Nov 2026 03:57PM UTC 2
100.0
GitHub Action Run
Source Files on build 42059624173
  • Tree
  • List 172
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42059624173
  • fa944ed4 on github
  • Prev Build on main (#42027191652)
  • Next Build on main (#42059881803)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc