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

LFDT-Panurus / panurus / 36569751760 / 21
85%
main: 85%

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 01:17PM UTC
Files 517
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

29 Sep 2026 12:40PM UTC coverage: 31.485% (-0.03%) from 31.519%
36569751760.21

push

github

adecaro
feat(selector): add sherdlock lock-contention diagnostics

Phases 1-2 of #2395: make sherdlock's lock contention observable, and give the
behaviour a reproducible baseline before changing the selector itself.

- Metrics: a lock_conflicts_total counter and a distinct_tokens_attempted
  histogram. The histogram is observed exactly once per Select() call, with the
  attempted-token set accumulated in the caller and unioned across every backoff
  round, so a StubbornSelector retry does not emit one sample per round; a call
  that never attempted a lock records nothing rather than a zero sample below the
  first bucket.

- A reproducible hot-token contention baseline test, plus shared selector test
  cases.

- driver.TokenLockStore.ListLocks and driver.LockRecord: read every held lock
  joined with the status of its consuming transaction. The SQL implementation
  checks rows.Err() after draining the iterator, because the shared rowIterator
  does not, and a mid-scan failure would otherwise return a truncated list with a
  nil error.

- cond.Exists, for correlated-subquery conditions.

- tokendiag: a new CGO-free CLI (cmd/tokendiag) that reports the currently held
  token locks with their age and consumer status, flags locks whose consumer has
  already reached a terminal status, and prints a script-friendly summary.
  Configuration is a YAML file; every scalar key can be overridden by a CORE_*
  environment variable, each bound up front so that viper's Unmarshal, which
  walks AllKeys(), actually visits keys supplied only through the environment.

- Documentation: docs/development/tokendiag.md, cmd/tokendiag/README.md and the
  metrics reference.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Co-authored-by: AkramBitar <akram@il.ibm.com>
Signed-off-by: AkramBitar <akram@il.ibm.com>

13400 of 42560 relevant lines covered (31.48%)

22.06 hits per line

Source Files on job itest-evm-t2.1 - 36569751760.21
  • Tree
  • List 517
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 36569751760
  • 019d7949 on github
  • Prev Job for on main (#36564573235.19)
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