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

DavidCain / mitoc-trips / 221
86%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2019 02:26AM UTC
Jobs 1
Files 130
Run time 6s
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
221

push

travis-ci

DavidCain
Start using database locks more intelligently

Also, add test coverage to affected areas of code.

A great deal of this code base does not have any mechanisms in place to
prevent updating content based off stale data.

For example:
- When editing trips, the last user to submit an update has the
  authoritative edit (we don't warn if editing on stale data)
- Long-running jobs like the Winter School lottery might have state
  change partway through their run, and have unexpected results!

We do *some* locking at the Celery level (to make that two workers
aren't accidentally running the tasks concurrently), but that's about
it. We don't make much use of database transactions, nor do we
explicitly select rows for update.

Declining to deal with concurrency was a conscious design decision.
there were fairly few users of this site (concurrency was not much of a
concern).

However, as this site grows in popularity, and the Winter School lottery
gets even bigger/hairier, we should start using locks judiciously.

577 of 1388 branches covered (41.57%)

Branch coverage included in aggregate %.

4730 of 6796 relevant lines covered (69.6%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 221.1 (GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='') 16 Sep 2019 02:26AM UTC 0
64.85
Travis Job 221.1
Source Files on build 221
  • Tree
  • List 0
  • Changed 9
  • Source Changed 6
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #221
  • 77190b5f on github
  • Prev Build on master (#219)
  • Next Build on master (#223)
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

© 2025 Coveralls, Inc