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

jzombie / rust-triplets / 40417719200
96%

Build:
DEFAULT BRANCH: main
Ran 26 Oct 2026 11:17PM UTC
Jobs 1
Files 51
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

26 Oct 2026 11:08PM UTC coverage: 96.031% (-0.02%) from 96.046%
40417719200

push

github

web-flow
feat: Ensure unique negative texts per batch in triplet sampler (#177)

### Fixed

- **Negatives are now unique within each batch by text.** All pair/triplet
  batch paths track accepted negative chunk texts (`stable_hash_str` of the
  rendered text in a zero-cost `nohash-hasher` set) alongside the existing
  full-tuple `(anchor, positive, negative)` `seen` set. A candidate whose
  negative text already appears in the batch is rejected; the sampler redraws
  **only the negative** (up to 4 retries, anchor/positive kept, swap hoisted
  before the loop) instead of discarding the whole triplet. Checks are atomic
  (check-then-commit, no partial `seen` mutation) and the anchor-vs-positive
  text guard runs before the retry loop since no negative redraw can fix it.
  Best-effort pre-pad: `pad_with_reuse` may still duplicate when the unique
  pool is smaller than `batch_size`.
- Removed the legacy serial triplet builder chain (`make_triplet_with_anchor`,
  `finalize_triplet_with_negative`, and its helpers) now that all batch paths
  build through `make_triplet_with_unique_negative`; the two unit tests that
  exercised it now run against the live builder.

### Changed

- Added `nohash-hasher` dependency (pass-through hashing for the `u64`
  negative-text keys; avoids re-hashing in the sampler hot loop).
- Deterministic batch sequences change (triplet/pair snapshot hashes updated
  for default and `bm25-mining` features) because dedup rejections shift RNG
  consumption. The weighted-mixture test now asserts a frequency band instead
  of an exact 3:1 count for the same reason (split purity stays exact).
- Bumped `tokio` from 1.53.1 to 1.54.1 (#179)
- Bumped `serde_json` from 1.0.151 to 1.0.154 (#176)
- Bumped `indoc` from 2.0.7 to 2.0.8 (#174)
- Bumped `rustls` from 0.23.45 to 0.23.46 (RUSTSEC-2026-0346 through RUSTSEC-2026-0349)
- Bumped `rustls-webpki` from 0.103.15 to 0.103.16 (RUSTSEC-2026-0382)
- Bumped `webpki-root-certs` from 1.0.7 to 1.0.11 (RUSTSEC-202... (continued)

189 of 195 new or added lines in 1 file covered. (96.92%)

3 existing lines in 1 file now uncovered.

22212 of 23130 relevant lines covered (96.03%)

14711.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
97.81
-0.23% crates/triplets-core/src/sampler/mod.rs

Coverage Regressions

Lines Coverage ∆ File
3
97.81
-0.23% crates/triplets-core/src/sampler/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 40417719200.1 26 Oct 2026 11:17PM UTC 51
96.03
GitHub Action Run
Source Files on build 40417719200
  • Tree
  • List 51
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40417719200
  • 9fe33a87 on github
  • Prev Build on main (#38472798552)
  • Next Build on main (#40562252506)
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