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

APN-Pucky / tyrant_optimize / 41359149472
71%
master: 71%

Build:
Build:
LAST BUILD BRANCH: copilot/fix-example-job-failure
DEFAULT BRANCH: master
Ran 01 Nov 2026 10:57PM UTC
Jobs 1
Files 15
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

01 Nov 2026 10:50PM UTC coverage: 70.608% (+0.02%) from 70.593%
41359149472

push

github

APN-Pucky
Fix db corruption/crash with concurrent tuo processes

load_db crashed with std::out_of_range when it read database.yml
mid-write by another process, since a truncated line left substr()
calling with pos > size. There was also no synchronization around
database.yml, so concurrent writers could corrupt the file, and each
writer only ever held its own subset of evaluated matchups, so the
last process to finish silently discarded everyone else's results.

- Bounds-check every substr in the db parser and skip malformed/
  truncated lines instead of crashing.
- Serialize write_db across processes with an interprocess file lock.
- Merge with whatever is currently on disk (keeping the higher-count
  result per matchup) instead of overwriting, so parallel runs
  accumulate into the shared db rather than clobbering each other.
- Publish via a temp file + atomic rename so a concurrent reader can
  never observe a half-written file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

76 of 83 new or added lines in 1 file covered. (91.57%)

636 existing lines in 1 file now uncovered.

4843 of 6859 relevant lines covered (70.61%)

9761209.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
55.04
0.0% tyrant_optimize.cpp

Coverage Regressions

Lines Coverage ∆ File
636
55.04
0.0% tyrant_optimize.cpp
Jobs
ID Job ID Ran Files Coverage
1 41359149472.1 01 Nov 2026 10:57PM UTC 15
70.61
GitHub Action Run
Source Files on build 41359149472
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 09fbd777 on github
  • Prev Build on fix_parallel_db_access (#41359299544)
  • Next Build on fix_parallel_db_access (#41360909469)
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