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

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

Build:
DEFAULT BRANCH: master
Ran 17 Sep 2019 03:21AM UTC
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

17 Sep 2019 03:16AM UTC coverage: 64.892%. Remained the same
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.

578 of 1388 branches covered (41.64%)

Branch coverage included in aggregate %.

4736 of 6801 relevant lines covered (69.64%)

0.7 hits per line

Source Files on job 225.1 (GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='')
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 33
  • Travis Job 225.1
  • 71d22ad7 on github
  • Prev Job for GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='' on master (#223.1)
  • Next Job for GEAR_DATABASE_USER='travis' GEAR_DATABASE_PASSWORD='' on master (#228.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