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

LLNL / spack / 4315
65%
develop: 68%

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

pending completion
4315

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

Jobs
ID Job ID Ran Files Coverage
3 4315.3 (TEST_SUITE=unit) 06 Oct 2016 08:57AM UTC 0
64.93
Travis Job 4315.3
Source Files on build 4315
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4315
  • 784944b2 on github
  • Prev Build on features/db-locking (#4309)
  • Next Build on features/db-locking (#4316)
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