76 Commits

Author SHA1 Message Date
Martin Pitt
e0c4ec15b6 AutoPkgTest.update_pending_tests(): Reset self.requested_tests after merging into self.pending_tests 2015-07-06 11:31:21 +02:00
Martin Pitt
cc1bd60d19 Factor out "tests for source package" calculation 2015-07-06 10:24:51 +02:00
Martin Pitt
73bb510389 autopkgtest.py: Clarify comments where the "pending tests" state file lives 2015-07-03 07:35:41 +02:00
Martin Pitt
d5181ef32a autopkgtest AMQP: Don't declare queues
Don't use kombu's SimpleQueue() as that always declares queues and we neither
want that (we want to know when we try to talk to a nonexisting queue), nor
might the RabbitMQ ACL allow us to do that. So use kombu.Producer without queue
declaration.
2015-07-03 07:35:00 +02:00
Martin Pitt
335073e901 Add requesting tests through AMQP
Until now, autopkgtests were triggered via an external "adt-britney" command
from lp:auto-package-testing. This duplicated a lot of effort (such as its own
chdist and reverse dependency calculation), maintains a lot of state files,
uses hardcoded absolute paths to these external tools, and is quite hard to
understand and maintain. We want to get rid of all this.

Add logic to AutoPackageTest.request() to use britney's existing reverse
dependency maps and figure out the set of tests to run for packages in
unstable. These are being tracked in "requested_tests".

Add logic to AutoPackageTest.submit() to send test requests to the AMQP server
specified in the new "ADT_AMQP" config key. For testing this can be a file://
URL, and if not set no test requests will be sent at all.

The set of tests which were requested in previous runs are tracked in
UNSTABLE/autopkgtest/pending.txt, so that we don't re-request tests in
subsequent runs.

There is no implementation for collect() and results() yet, these will be done
in a separate commit.

Add initial test cases.
2015-07-02 17:41:49 +02:00
Martin Pitt
a3a523b4ed autopkgtest.py: Factorize logging into helper methods 2015-07-02 17:36:23 +02:00
Colin Watson
d412b71391 [r=adconrad] Fix autopkgtest version selection loop 2015-03-12 05:11:19 -06:00
Colin Watson
0a2b1fd4b0 Add a --distribution option; parameterise most mentions of "ubuntu" using it. 2014-07-24 15:28:12 +01:00
Jean-Baptiste Lallement
2a3a8cb657 autopkgtest.py: Document method read() and code simplification
britney.py: code simplification
2014-05-12 11:47:40 +02:00
Jean-Baptiste Lallement
7e80d47eb6 autopkgtest.py:
- A test for a package/version can be triggered by several distincts causes with different results. Modify the data structure to store this instead of only storing the last cause and result, leading to missing test results in excuses.
- Check if failures are regressions (there is at least one pass and migration is blocked) or if test has always been failing. In the latter case, migration is not blocked.
- Add colours to excuses.html to distinguishes the test results
- Point jenkins URL to lastBuild
2014-04-29 23:38:45 +02:00
Colin Watson
8f061cb9d1 autopkgtest rsync host change from jibel 2013-11-15 09:20:54 +00:00
Colin Watson
b74c1967aa better idiom 2013-10-31 09:39:29 -07:00
Jean-Baptiste Lallement
7615eb8d3f * Remove packages from the request file that are not valid for testing i.e excuse.run_autopkgtest = False. 2013-10-29 18:09:21 +01:00
Colin Watson
f4f6efbd3f autopkgtest.py: set release for adt-britney 2013-10-20 22:29:00 +01:00
Colin Watson
0ec8138015 Record autopkgtest status more accurately in pkgcauses: use the status for the version being recorded, not just the one for the latest version found. 2013-09-19 10:40:46 +01:00
Colin Watson
3e6fd501c9 aggregate all causes, but take the status from the latest version 2013-07-09 16:25:51 +01:00
Colin Watson
5d00fa864e fix pkglist lookup 2013-07-09 16:14:25 +01:00
Colin Watson
823899c6b3 Only record autopkgtest causes for the latest tested version. 2013-07-09 14:33:38 +01:00
Colin Watson
59705dda61 Improve "Requested autopkgtest" logging. 2013-07-02 12:34:41 +01:00
Colin Watson
8023ee2a40 Stop limiting adt-britney to amd64; this shouldn't make a difference anyway, per Jean-Baptiste. 2013-07-02 11:32:45 +01:00
Colin Watson
2e34feee1f Log autopkgtest status collection. 2013-06-24 11:00:58 +01:00
Colin Watson
41821072e2 Make autopkgtest request logging more useful by moving it after adt-britney request. 2013-06-17 17:57:44 +01:00
Colin Watson
6da7f96ca2 Pass Britney instances through to AutoPackageTest. 2013-06-17 17:24:50 +01:00
Colin Watson
5ed767701b Log autopkgtest requests. 2013-06-17 16:59:57 +01:00
Colin Watson
1cf35e27c8 Fix cause handling in AutoPackageTest.request. 2013-06-17 14:04:23 +01:00
Colin Watson
f961f74ef3 Run autopkgtests for valid candidates, and wait for the results. 2013-06-17 13:56:21 +01:00