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

escapewindow / scriptworker / 423
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fxci
DEFAULT BRANCH: master
Ran 30 Nov 2016 08:31PM UTC
Jobs 1
Files 16
Run time 2s
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
423

push

travis-ci

escapewindow
allow for three states in the rebuild_gpg_homedirs lockfile

Previously, we had a single lockfile.  This meant we were busy
re-creating the gpg homedirs, so don't duplicate the effort, and don't
try to read from the new homedirs just yet.  Once we were done
rebuilding, we removed the lockfile, so scriptworker could clean up, and
the next rebuild could happen.

However, because there was only two states (locked/unlocked) and there
were potentially three competing actions (rebuild1, scriptworker
copy/cleanup, rebuild2), the latter two raced to see who could fire
first.  And because the copy and cleanup were not instantaneous, having
the second rebuild start nuking the directory before the copy was
finished was a problem.

The solution here is to allow for two states in an existing lockfile
(locked/ready) and the non-existent lockfile makes three.  A nonexistent
lockfile means feel free to launch the next rebuild, first creating the
lockfile.  A locked lockfile means don't read from the new gpg homedirs,
and don't try to launch a new rebuild.  A ready state means feel free to
read from the new gpg homedirs, but don't start a new rebuild yet.

1689 of 1689 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 423.1 (NO_TESTS_OVER_WIRE=1) 30 Nov 2016 08:31PM UTC 0
100.0
Travis Job 423.1
Source Files on build 423
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #423
  • 88f05937 on github
  • Prev Build on fix-gpg (#422)
  • Next Build on fix-gpg (#424)
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