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

DavidCain / mitoc-trips / 221 / 1
86%
master: 86%

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

16 Sep 2019 02:21AM UTC coverage: 64.846% (+1.2%) from 63.631%
GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD=''

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

Source Files on job 221.1 (GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='')
  • 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 Build 30
  • Travis Job 221.1
  • 77190b5f on github
  • Prev Job for GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='' on master (#219.1)
  • Next Job for GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='' on master (#223.1)
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