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

Chaguar / committer / 34935812121
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: bench/sidecar-end-to-end
DEFAULT BRANCH: main
Ran 15 Sep 2026 06:16AM UTC
Jobs 3
Files 140
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

15 Sep 2026 06:10AM UTC coverage: 90.578% (-0.001%) from 90.579%
34935812121

Pull #826

github

cendhu
[vc, sidecar] Delete a snapshot database clone on admin request

#### Type of change

- New feature
- Documentation update

#### Description

- Adds `DeleteDBCloneForSnapshot(tx_id)`, propagating sidecar → coordinator → VC.
  The VC drops the database named by the `_snapshot` record's `clone_database`
  field and clears that field via a versioned namespace write; clearing it *is*
  the deletion signal, since `SnapshotState` carries no deletion timestamp. The
  record is retained, so the snapshot's status and hash stay queryable after its
  database is gone.
- Deletion is refused unless the snapshot's status is `CHECKPOINTED`
  (`FAILED_PRECONDITION`). Until then the clone is the only artifact from which
  the snapshot hash can be recomputed or a contested hash re-verified, so
  dropping it would be unrecoverable.
- Reports `INVALID_ARGUMENT` for an empty `tx_id` and `NOT_FOUND` for an unknown
  one. A repeated delete of an already-cleared record succeeds: the caller cannot
  distinguish a retry of its own request from a duplicate, and both mean the
  database is gone. That check precedes the status gate, so a retry of a delete
  that already succeeded stays a success.
- Adds `ClearCloneDatabase` to `statedb.SnapshotUpdate`, so the deletion path can
  clear `clone_database` through the shared `_snapshot` record accessor. The clear
  re-asserts `CHECKPOINTED` and sets `ExpectedStatus` to it, so the locked row must
  still be `CHECKPOINTED` for the clear to apply.
- Adds `statedb.SnapshotStateManager.Read(tx_id)` and the `statedb.ErrSnapshotNotFound`
  sentinel it reports, extracted from `ReadLatest`'s read-and-decode step so both agree
  on how a missing row and an undecodable value are reported. `ReadLatest` keeps
  treating a missing row as corruption, since its key comes from the pointer rather
  than from a caller.
- Records `DeleteDBCloneForSnapshot` calls in one embedded `mock.deleteCloneRecorder`
  shared by the mock coordinator and the mock vcse... (continued)
Pull Request #826: [vc, sidecar] Delete a snapshot database clone on admin request

98 of 107 new or added lines in 11 files covered. (91.59%)

12 existing lines in 4 files now uncovered.

9585 of 10582 relevant lines covered (90.58%)

11665.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
84.16
-0.11% service/vc/database_snapshot.go
2
81.21
0.38% service/sidecar/sidecar.go
2
89.9
-0.42% service/vc/validator_committer_service.go
1
80.22
2.44% utils/statedb/snapshot_state.go

Coverage Regressions

Lines Coverage ∆ File
4
94.34
-2.78% mock/coordinator.go
3
91.08
-0.64% service/coordinator/validator_committer_manager.go
3
93.37
-1.66% service/coordinator/signature_verifier_manager.go
2
97.22
-2.78% service/verifier/verifier_server.go
Jobs
ID Job ID Ran Files Coverage
1 core-db-test - 34935812121.1 15 Sep 2026 06:19AM UTC 107
48.55
GitHub Action Run
2 unit-test - 34935812121.2 15 Sep 2026 06:17AM UTC 95
86.0
GitHub Action Run
3 db-test - 34935812121.3 15 Sep 2026 06:16AM UTC 140
78.52
GitHub Action Run
Source Files on build 34935812121
  • Tree
  • List 140
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #826
  • PR Base - main (#34934205956)
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