981 Commits

Author SHA1 Message Date
Martin Pitt
e43cec8fad Make force-badtest hints apply to lower versions
We usually bump force-badtest versions for the devel series, which can cause
apparent regressions in stable tests, or when running tests against
devel-release when bumping the version for devel-proposed.
2016-05-09 10:26:34 +02:00
Martin Pitt
0d0c9f3592 trigger lxd from linux 2016-04-19 15:02:35 +02:00
Martin Pitt
1c94ef1aac Stop triggering juju from gccgo-*, it uses golang almost everywhere now 2016-04-11 14:56:32 +02:00
Martin Pitt
f9802e9b49 tests/test_autopkgtest.py: some PEP-8 fixes 2016-04-04 17:10:28 +02:00
Martin Pitt
cbb79a9171 Don't show versions of autopkgtests if they are all running
If a particular test is running on all architectures, the tested version is not
very useful and often even wrong, as we can't yet predict which version will
actually be used (sometimes from testing, sometimes from unstable depending on
apt pinning). So only show it once we have at least one result.
2016-04-04 17:05:39 +02:00
Martin Pitt
f4ca9d9775 Add test for version that is newer in testing 2016-03-29 15:02:39 +02:00
Martin Pitt
e7b1c6fe25 tests: Verify that "Not considered" or "Valid candidate" appears in excuses 2016-03-29 14:50:42 +02:00
Martin Pitt
cc46972caa Run/show autopkgtests for force-skiptest again
Revert commit 551/bug 1522893 again, as we still want to see test results even
for force-skip'ed packages in some cases.

In cases where we really don't want to run the tests at all, we need to flush
the AMQP queues manually and remove pending.json after the package got
accepted.
2016-03-21 10:47:47 +01:00
Martin Pitt
ac979a9e1e autopkgtest: Don't fail hard on 404 download errors
Dial back commit 570 a bit: We should tolerate 404's, something went wrong on
uploading the result. We still want to fail hard on any other error as these
would indicate infra problems.
2016-03-14 08:07:53 +01:00
Martin Pitt
d0337785d8 run-autopkgtest: put requests into appropriate per-context AMQP queue 2016-03-04 08:15:35 +01:00
Martin Pitt
f4fd77c9ed Send PPA test requests into PPA AMQP queues
This separates them from Ubuntu and upstream test requests, avoids that any of
those can completely starve the other two, and makes queues easier to manage.
2016-03-03 12:49:35 +01:00
Martin Pitt
53c338581b Don't check components when testing PPAs, as they do not have this concept 2016-03-02 11:40:14 +01:00
Martin Pitt
1abbba8081 Teach excuse_unsat_deps() about components ogre model 2016-03-01 13:35:23 +01:00
Martin Pitt
dd1cb74cab Add autopkgtest test case for different tested package versions on different architectures 2016-02-25 16:33:18 +01:00
Martin Pitt
f056f2afce Add version-independent per-architecture force-badtest hints
Some tests are known-broken on a particular architecture only.
force-badtest'ing the entire version is overzealous as it hides regressions on
the other architectures that we expect to work. It's also hard to maintain as
the version has to be bumped constantly.

Support hints of the form "force-badtest srcpkg/architecture/all" (e. g.
"force-badtest chromium-browser/armhf/all"). The special version "all" will
match any version.
2016-02-25 14:14:14 +01:00
Martin Pitt
4fa1220bfd Support force-{bad,skip}test hints for multiple versions 2016-02-25 14:12:14 +01:00
Martin Pitt
cacd7d7667 Autopkgtest: Show force-badtest results more prominently
Add new state "IGNORE-FAIL" for regressions which have a 'force' or
'force-badtest' hint. In the HTML, show them as yellow "Ignored failure"
(without a retry link) instead of "Regression", and drop the separate
"Should wait for ..." reason, as that is hard to read for packages with a long
list of tests.

This also makes retry-autopkgtest-regressions more useful as this will now only
run the "real" regressions.
2016-02-25 09:45:33 +01:00
Iain Lane
ca4ed75019 Merge change from Niels Thykier to fix --hint-tester 2016-02-23 09:29:09 +00:00
Dimitri John Ledkov
2838b7b79f Teach excuse_unsat_deps() about components ogre model. 2016-02-18 14:02:31 +00:00
Martin Pitt
fc7696d26b run-autopkgtest: Add --all-proposed option
This is useful if two packages in -proposed depend on each other for successful
testing but don't have versioned dependencies.
2016-02-17 17:54:43 +01:00
Martin Pitt
c9f7ef6fce Adjust URL for retrying failed tests
retry.cgi is now request.cgi.
2016-02-16 10:18:43 +01:00
Martin Pitt
735abeed3e run-autopkgtest: Add --build-git option 2016-02-15 16:08:28 +01:00
Martin Pitt
cd3ac8cfbf Autopkgtest: Trim triggered tests for gccgo-6
Similar to commit 504, gccgo-6 builds all binary packages of gcc-5.
2016-02-11 09:56:40 +01:00
Martin Pitt
83f1635e6b Don't use latest timestamp from results.cache if it is shared
When using a shared results cache with PPAs (silos) we cannot rely on the
latest time stamp from the distro's results.cache. As soon as there is a new
run for a package in Ubuntu proper, that updated time stamp hides all previous
results for the PPA, and causes tests to be re-requested unnecessarily.
2016-02-09 16:58:09 +01:00
Martin Pitt
7636d1c862 Remove extra debug logging again
Revert commit 568, LP#1537866 is understood now.
2016-02-09 16:15:26 +01:00
Martin Pitt
b20421efc3 Add retry links to PPA excuses
autopkgtest-retrier supports "ppa=" GET arguments now.
2016-02-04 21:54:53 +01:00
Martin Pitt
b5fd32ec7b Fail hard on unexpected HTTP errors
In the CI train we sometimes run into transient "HTTP Error 502: Proxy Error".
As we don't keep a results.cache there, this leads to retrying tests for which
we already have a result in swift, but can't download it. Treat this as a hard
failure now, to let the next britney run try again. This will also tell us if
we need to handle any other status code than 200, 204 (empty result), or 401
(container does not exist).
2016-02-04 15:13:17 +01:00
Martin Pitt
d395524307 mock_swift.py: Use status code 401 on nonexisting container, like the real Swift 2016-02-04 14:08:40 +01:00
Martin Pitt
b2af42ee8b Add more debug logging to investigate LP#1537866 2016-02-03 20:21:27 +01:00
Martin Pitt
2e393a0c31 Add option for using a shared r/o results.cache
This is needed by the CI train, where we

  (1) don't want to cache intermediate results for PPA runs, as they might
      "accidentally" pass in between and fail again for the final silo,

  (2) want to seed britney with the Ubuntu results.cache, to detect regressions
      relative to Ubuntu.

Introduce ADT_SHARED_RESULTS_CACHE option which can point to a path to
results.cache. This will then not be updated by britney.
2016-01-27 12:01:00 +01:00
Martin Pitt
158d79999f Fix KeyError crash with NBS binaries in testing
Traceback (most recent call last):
   File "/var/lib/britney/britney.py", line 3390, in <module>
     Britney().main()
   File "/var/lib/britney/britney.py", line 295, in __init__
     self.merge_binaries('testing', 'unstable', arch)
   File "/var/lib/britney/britney.py", line 785, in merge_binaries
     target_version = target_sources[value[SOURCE]][VERSION]
 KeyError: 'insighttoolkit4'
2016-01-27 09:57:55 +01:00
Martin Pitt
6269ca4813 Drop boottest support
This was a giant copy&paste, was disabled four months ago, and the
infrastructure for this ceased to exist.

If this comes back, the AutoPackageTest class should be generalized to also
issue phone boot tests (exposed as new architectures, which should then be
called "platforms"), to avoid all this duplicated code.
2016-01-27 09:34:22 +01:00
Martin Pitt
ec420195bc Add retry links to autopkgtest regressions
Generate https://autopkgtest.ubuntu.com/retry.cgi links for re-running tests
that regressed.

Change Excuse.html() back to usual % string formatting to be consistent with
the rest of the code.
2016-01-25 11:21:16 +01:00
Martin Pitt
80a9121f62 show full diff on test failures 2016-01-25 10:39:42 +01:00
Martin Pitt
18dc37dca5 Don't create heidi files if HEIDI_OUTPUT option is empty 2016-01-20 10:16:02 +01:00
Robert Bruce Park
f196cb5ae9 Oops. 2016-01-19 18:16:57 -08:00
Robert Bruce Park
e2425bb6fb Make Heidi optional. 2016-01-19 17:33:01 -08:00
Martin Pitt
40d12bfc74 Add link to the autopkgtest artifacts for PPA runs
For PPA runs we don't have autopkgtest.u.c., thus stop linking to it and
instead directly link to the test artifacts.
2016-01-19 21:32:16 +01:00
Robert Bruce Park
7ad23cdfdd Add & fix tests. 2016-01-19 12:22:51 -08:00
Robert Bruce Park
fbb4293091 Stop setting artifacts link if log is running.shtml. 2016-01-19 12:05:32 -08:00
Robert Bruce Park
7478b80b85 Iterate. 2016-01-19 11:34:12 -08:00
Robert Bruce Park
b2ed1ce367 Fix URL. 2016-01-19 11:25:04 -08:00
Robert Bruce Park
e412932daf Set artifacts link if ADT_PPAS is defined. 2016-01-19 11:08:11 -08:00
Didier Roche
b17221164f Add new env, test-git and test-bzr parameters to run-autopkgtest 2016-01-08 15:52:36 +01:00
Martin Pitt
2b61398004 Skip second-stage upgrade testing if UPGRADE_OUTPUT option is absent or empty
This is useful to speed up britney in dry run mode, if we are only interested
in builds and package tests.
2015-12-18 16:37:23 +01:00
Martin Pitt
7fc34b1ab6 Autopkgtest: Do not leak full AMQP url to log, it contains a password 2015-12-15 06:43:35 +01:00
Martin Pitt
a4f3abacad Add direct log link to excuses
If we have a result, directly link to the log file on swift in excuses.html.
The architecture name still leads to the package history as before.
If result is still pending, link to the "running tests" page instead.
2015-12-14 16:57:19 +01:00
Martin Pitt
123eb43320 Autopkgtest: Use correct Swift container for ADT_PPAS
When using ADT_PPAS, the results won't go into the "autopkgtest-%SERIES"
container but into the PPA specific "autopkgtest-%SERIES-LPUSER-PPANAME" one.
2015-12-14 10:58:02 +01:00
Martin Pitt
6d0c3a1fa6 Autopkgtest: Keep the actual run IDs
Don't clobber passed run IDs with newer failed results. This is potentially a
bit more expensive as we might re-fetch failed results at every run after a
PASS, but the IDs in our cache will be correct so that we can expose them in
the UI.
2015-12-08 14:17:58 +01:00
Martin Pitt
d81f6542b9 test_autopkgtest.py: Rename class to just "T" for easier running of selected tests 2015-12-08 13:07:16 +01:00