autopkgtests should be run in -ci jobs

Bug #1334141 reported by Michi Henning
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Services
New
Undecided
Unassigned
unity-scopes-api
Fix Released
Medium
Michi Henning

Bug Description

We need a way to run Jussi's recent autopkg test from Jenkins, as well as locally. Otherwise, we will forget to run the test, and it'll go stale on us over time because it'll gradually drop off people's memory.

Checking that the autopkg stuff still works locally needs to be easy: ideally, a cmake target. If that isn't doable, a python script or some such, so we don't have to spend ages setting up a chroot and the like by hand.

Related branches

Changed in unity-scopes-api:
importance: Undecided → Medium
Revision history for this message
Michał Sawicz (saviq) wrote :

FWIW it is being run in proposed already:

http://d-jenkins.ubuntu-ci:8080/view/Utopic/view/AutoPkgTest/job/utopic-adt-unity-scopes-api/

Those get triggered whenever the package in question, or any of its dependencies, get updated in proposed (ubuntu proposed, not devel-proposed image).

AFAIK the long-term plan is to transition all non-make-check (e.g. autopilot, qml UI tests) to autopkgtests, meaning there's a standard way to execute them (DEP-8) locally or remotely.

The first thing that should happen, IMO, is they should be run in -ci jobs for packages that ship them, hence the ubuntu-ci-services-itself task.

summary: - Need a test for autopkg test
+ autopkgtests should be run in -ci jobs
Revision history for this message
Michał Sawicz (saviq) wrote :

Ah and I believe CI Airline is being built around that already.

Revision history for this message
Michi Henning (michihenning) wrote :

I fixed the broken autopkg test and added a local test for it, so we will at least notice if the test goes stale.
Also updated instructions in HACKING for what to do when adding more autopkg tests and how to
run the tests in a VM locally, the same way Jenkins does. (Thanks Saviq!)

Changed in unity-scopes-api:
assignee: nobody → Michi Henning (michihenning)
status: New → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-scopes-api/devel at revision 423, scheduled for release in unity-scopes-api, milestone Unknown

Changed in unity-scopes-api:
status: In Progress → Fix Committed
Changed in unity-scopes-api:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.