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

bedrock-kv / bedrock / c6545a600a81cc2df2ef47af067210437c8046be-PR-97
76%
develop: 73%

Build:
Build:
LAST BUILD BRANCH: feature/q67-phase-a
DEFAULT BRANCH: develop
Ran 17 Jul 2026 02:16AM UTC
Jobs 1
Files 226
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

17 Jul 2026 02:15AM UTC coverage: 75.754% (+3.1%) from 72.651%
c6545a600a81cc2df2ef47af067210437c8046be-PR-97

Pull #97

github

jallum
Fix three flaky test races failing develop CI (bedrock-yp2) (#111)

## Summary

Three timing-sensitive tests each failed one recent develop CI run,
always on the OTP 27.2 / Elixir 1.17.3 matrix job (the slowest). In
every failing log the product behaved correctly — the test's
synchronization lost a race. This PR fixes the test-code races with
minimal changes; no product code is touched.

- **`distributor/server_test.exs`** (run 29548302754): `Process.monitor`
is attached after the distributor starts; when the sweep delta is
rejected quickly the distributor exits before the monitor attaches, so
the `:DOWN` arrives with `:noproc` instead of `:normal`. The DOWN
assertion now accepts either; the `stopped` telemetry assertion still
verifies the exit reason was `:normal`.
- **`distributor/readoption_test.exs`** (run 29447945622):
`:sys.get_state(distributor)` raced with the distributor stopping
normally — the test's expected outcome. Dropped the `get_state` (the
placeholder-vs-adopted pid distinction is covered by the earlier
sweep/re-adoption test) and applied the same `:noproc` guard to the
DOWN.
- **`olivine/genserver_integration_test.exs`** (run 29548013855): a 1 ms
`GenServer.call` intended to "succeed or timeout gracefully" wasn't
wrapped, so a real timeout on a slow runner crashed the test. Now
caught, falling through to the existing process-survives assertion.

## Testing

- All 44 tests in the three affected files pass locally.
- `mix format --check-formatted` and `mix credo` clean on the changed
files.

Closes bedrock-yp2.
Pull Request #97: [INTEGRATION] bedrock-q67 Phase A: shards heal their own coverage — placeholder reads, on-demand materializers, death healing, warm re-adoption, idle spin-down

755 of 833 new or added lines in 41 files covered. (90.64%)

6 existing lines in 5 files now uncovered.

6508 of 8591 relevant lines covered (75.75%)

914.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
90.5
lib/bedrock/control_plane/distributor/server.ex
12
84.62
lib/bedrock/data_plane/commit_proxy/metadata.ex
6
79.71
0.76% lib/bedrock/control_plane/director/recovery/materializer_bootstrap_phase.ex
6
90.48
lib/bedrock/control_plane/distributor/recruitment.ex
5
65.52
32.18% lib/bedrock/control_plane/director/server.ex
5
94.38
lib/bedrock/system_keys/values.ex
3
98.31
-1.25% lib/bedrock/data_plane/commit_proxy/finalization.ex
3
91.26
4.52% lib/bedrock/data_plane/resolver/server.ex
2
96.36
lib/bedrock/control_plane/distributor/placeholder/server.ex
2
61.76
12.81% lib/bedrock/data_plane/materializer/olivine/server.ex
1
55.81
1.27% lib/bedrock/control_plane/coordinator/director_management.ex
1
27.27
7.4% lib/bedrock/control_plane/coordinator/server.ex
1
62.77
0.97% lib/bedrock/control_plane/director/recovery/persistence_phase.ex
1
83.33
lib/bedrock/control_plane/distributor/placeholder/state.ex
1
95.12
-1.75% lib/bedrock/data_plane/commit_proxy/routing_data.ex
1
92.75
-0.35% lib/bedrock/data_plane/commit_proxy/server.ex
1
95.45
-4.55% lib/bedrock/data_plane/log/tracing.ex
1
92.86
-0.22% lib/bedrock/data_plane/materializer/olivine/logic.ex
1
30.0
17.5% lib/bedrock/service/foreman.ex
1
22.89
0.0% lib/bedrock/service/foreman/impl.ex
1
0.0
0.0% lib/bedrock/service/foreman/server.ex

Coverage Regressions

Lines Coverage ∆ File
2
61.76
12.81% lib/bedrock/data_plane/materializer/olivine/server.ex
1
73.81
0.0% lib/bedrock/control_plane/director/recovery.ex
1
98.18
-1.82% lib/bedrock/data_plane/materializer/basalt/logic.ex
1
29.73
13.94% lib/bedrock/data_plane/materializer/olivine/pulling.ex
1
22.89
0.0% lib/bedrock/service/foreman/impl.ex
Jobs
ID Job ID Ran Files Coverage
1 c6545a600a81cc2df2ef47af067210437c8046be-PR-97.1 17 Jul 2026 02:16AM UTC 226
75.75
GitHub Action Run
Source Files on build c6545a600a81cc2df2ef47af067210437c8046be-PR-97
  • Tree
  • List 226
  • Changed 51
  • Source Changed 0
  • Coverage Changed 51
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #97
  • PR Base - develop (#10A20BF6...)
  • Delete
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