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

LLNL / spack / 4315 / 3
65%
develop: 68%

Build:
Build:
LAST BUILD BRANCH: features/package-hash
DEFAULT BRANCH: develop
Ran 06 Oct 2016 08:57AM UTC
Files 141
Run time 7s
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

06 Oct 2016 08:42AM UTC coverage: 64.929% (+0.05%) from 64.884%
TEST_SUITE=unit

push

travis-ci

tgamblin
Use a single lock file for stages and a single file for prefixes.

- Locks now use fcntl range locks on a single file.

How it works for prefixes:

- Each lock is a byte range lock on the nth byte of a file.

- The lock file is ``spack.installed_db.prefix_lock`` -- the DB tells us
  what to call it and it lives alongside the install DB.  n is the
  sys.maxsize-bit prefix of the DAG hash.

For stages, we take the sha1 of the stage name and use that to select a
byte to lock.

With 100 concurrent builds, the likelihood of a false lock collision is
~5.36e-16, so this scheme should retain more than sufficient paralellism
(with no chance of false negatives), and get us reader-writer lock
semantics with a single file, so no need to clean up lots of lock files.

7846 of 12084 relevant lines covered (64.93%)

0.65 hits per line

Source Files on job 4315.3 (TEST_SUITE=unit)
  • Tree
  • List 0
  • Changed 13
  • Source Changed 13
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4315
  • Travis Job 4315.3
  • 784944b2 on github
  • Prev Job for TEST_SUITE=unit on features/db-locking (#4309.3)
  • Next Job for TEST_SUITE=unit on features/db-locking (#4316.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc