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

nats-io / nats-server / 26998576978
81%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2026 07:12AM UTC
Jobs 1
Files 64
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

04 Jun 2026 09:39AM UTC coverage: 81.651% (-0.2%) from 81.894%
26998576978

push

github

web-flow
[IMPROVED] Stream/consumer assignment handling refactors (#8262)

This PR is to do a couple refactors before introducing the desired state
approach that will eventually solve various edge cases with
stream/consumer scale/move and peer-management.

- The `bail` condition now equals for both stream and consumer info, and
uses a JS read lock for `rg.Preferred` and `rg.node`.
- Stream and consumer migration code now is in its own
`run(Stream|Consumer)Migration` method, which will be extended in later
PRs to handle desired state migrations.
- A failed stream update, which shouldn't be able to happen but needs
handling, should not result in underlying Raft state to be deleted, only
the stream should be stopped.
- Add test coverage for `process(Stream|Consumer)AssignmentResults`.

Relates to https://github.com/nats-io/nats-server/issues/6558

76433 of 93609 relevant lines covered (81.65%)

558302.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
1032
83.0
0.68% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
461
74.8
-0.44% src/github.com/nats-io/nats-server/server/jetstream_api.go
235
26.1
-46.81% src/github.com/nats-io/nats-server/server/msgtrace.go
89
90.42
-1.59% src/github.com/nats-io/nats-server/server/client.go
25
81.13
0.56% src/github.com/nats-io/nats-server/server/raft.go
17
88.75
-0.47% src/github.com/nats-io/nats-server/server/server.go
17
85.82
-0.16% src/github.com/nats-io/nats-server/server/stream.go
10
65.07
-0.14% src/github.com/nats-io/nats-server/server/opts.go
9
87.76
0.35% src/github.com/nats-io/nats-server/server/consumer.go
5
87.4
-0.17% src/github.com/nats-io/nats-server/server/monitor.go
4
93.57
0.0% src/github.com/nats-io/nats-server/server/gateway.go
4
89.88
-0.07% src/github.com/nats-io/nats-server/server/leafnode.go
4
82.99
-0.08% src/github.com/nats-io/nats-server/server/route.go
2
85.89
0.28% src/github.com/nats-io/nats-server/server/events.go
2
98.58
-1.42% src/github.com/nats-io/nats-server/server/jetstream_versioning.go
2
82.86
-0.19% src/github.com/nats-io/nats-server/server/parser.go
2
90.99
-0.17% src/github.com/nats-io/nats-server/server/sublist.go
1
82.82
0.05% src/github.com/nats-io/nats-server/server/memstore.go
Jobs
ID Job ID Ran Files Coverage
1 26998576978.1 05 Jun 2026 07:12AM UTC 64
81.65
GitHub Action Run
Source Files on build 26998576978
  • Tree
  • List 64
  • Changed 23
  • Source Changed 2
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26998576978
  • c8998296 on github
  • Prev Build on main (#26934465409)
  • Next Build on main (#27054386068)
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