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

APN-Pucky / tyrant_optimize / 41361472244
71%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2026 11:25PM 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 11:18PM UTC coverage: 70.592% (+0.08%) from 70.512%
41361472244

push

github

web-flow
Fix parallel db access (#118)

* document changes

* 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>

* add changelog update

* check for file error codes

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

76 of 86 new or added lines in 1 file covered. (88.37%)

4844 of 6862 relevant lines covered (70.59%)

10529229.61 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
55.01
0.63% tyrant_optimize.cpp
Jobs
ID Job ID Ran Files Coverage
1 41361472244.1 01 Nov 2026 11:25PM UTC 15
70.59
GitHub Action Run
Source Files on build 41361472244
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9067cf5e on github
  • Prev Build on master (#41357367141)
  • Next Build on master (#41361949578)
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