lp://staging/~doanac/qa-dashboard/live-status

Created by Andy Doan and last modified
Get this branch:
bzr branch lp://staging/~doanac/qa-dashboard/live-status
Only Andy Doan can upload to this branch. If you are Andy Doan please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Andy Doan
Project:
Ubuntu CI Dashboard
Status:
Merged

Recent revisions

694. By Andy Doan

merge with trunk

693. By Andy Doan

a hack to deal with tastypie bug

setting USE_TZ=True is pain. It causes lots of django warnings and
broke some of our exsiting test case logic. This backs out the
settings change for USE_TZ and monkey-patches the actual buggy spot
in code so that we can use the admin panel properly

692. By Andy Doan

add unit test for ran_at type checking

NOTE: The fix for this is being merged into trunk, but this branch
already had a nice place to add a unit-test for it. See commit:

 http://bazaar.launchpad.net/~doanac/qa-dashboard/smoke-pull-regression/revision/691

for the fix this test is intended for

691. By Andy Doan

change tastypie requirement 0.9.15

This is whats been packaged. I've tested and it works the same
way.

690. By Andy Doan

Add a REST API to Smoke objects

This gives us the ability to have our jenkins jobs notify the
dashboard in realtime about smoke status and not have to wait
until the job has been pushed to the public server and then
polled by the pull-script.

In addition to a fairly thorough set of unit-tests, I've also
created a pretty easy CLI to do some exploratory testing with:

 http://paste.ubuntu.com/6454113/

That script will probably land in the lp:ubuntu-test-cases/touch repo
in some form or another.

Some notes to keep in mind:

* The API does not allow for delete operations (just to help decrease
  the amount of damage someone might accidentally do).

* It doesn't require auth[entication|orization] for GETS, but
  use's Django users + Tastypie ApiKey for PUT and PATCH operations.

* I had to use two hacks with Tastypie:
  1) 0.9.16 because 0.10 migrations don't work with python 2.7 and
     django 1.5

  2) settings.US_TZ had to be enabled as noted in the settings.py
     due to a tastypie bug.

I'm not really excited about #2, but given the limited use of "writes"
we have in the dashboard, I think this may be fairly safe/isolated.

689. By Andy Doan

update SmokeImage.save to auto-fill required build-number fields

The next commit is going to allow a REST API to create SmokeImage
objects. This allows that API to get the same good-ness our
pull script gets.

688. By Andy Doan

ensure SmokeResults get changed to complete on pull script

I also noticed while working on this that when the result already
exists, our code path wasn't passing in an actual datetime object
which was required for that code path.

687. By Andy Doan

allow front page to denote image testing is in progress

this changes values reported for testing needs small updates

686. By Andy Doan

allow image results to indicate tests status when not complete

This changes the "ran_at" column to be able to indicate things like
Queued, Running, Syncing, and then the actual ran_at date.

685. By Andy Doan

add a new "status" field to SmokeResult

This is step one in supporting live-status updates for the
mega jobs. A result can now have states other than just "complete".

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/qa-dashboard
This branch contains Public information 
Everyone can see this information.

Subscribers