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

escapewindow / scriptworker / 424
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fxci
DEFAULT BRANCH: master
Ran 01 Dec 2016 06:21PM UTC
Jobs 1
Files 16
Run time 1s
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
424

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.

1693 of 1693 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 424.1 (NO_TESTS_OVER_WIRE=1) 01 Dec 2016 06:21PM UTC 0
100.0
Travis Job 424.1
Source Files on build 424
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #424
  • 8136dd6d on github
  • Prev Build on fix-gpg (#423)
  • Next Build on fix-gpg (#426)
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