468 Commits

Author SHA1 Message Date
Martin Pitt
31e647f113 Switch autopkgtest evaluation to cloud results
Change AutoPackageTest.results() to evaluate the Swift results instead of the
adt-britney ones.

TODO:
 - Add more tests (like for adt-britney)
 - Drop triggering of adt-britney tests
 - Drop adt-britney tests (which fail now)
 - Adjust TestBoottestEnd2End.test_with_adt
2015-07-31 09:41:51 +02:00
Martin Pitt
52ae2eca09 Show regression vs. always-failed in cloud results 2015-07-30 14:08:46 +02:00
Martin Pitt
2bf6eb5652 Switch autopkgtest evaluation to cloud results
Change AutoPackageTest.results() to evaluate the Swift results instead of the
adt-britney ones.

TODO:
 - Add more tests (like for adt-britney)
 - Drop triggering of adt-britney tests
 - Drop adt-britney tests (which fail now)
2015-07-28 11:04:34 +02:00
Martin Pitt
3e7c808e1c Consider manually re-ran failed tests
When collecting results, not only check pending tests, but also new results for
failed tests. This picks up new test results from manual retries which might
now have succeeded.
2015-07-15 08:22:37 +02:00
Martin Pitt
ce775eeb5d Add test results from swift
Until now, autopkgtest results were triggered via an external "adt-britney"
command from lp:auto-package-testing. This required a lot of state files and
duplicated effort, uses hardcoded absolute paths to these external tools, and
is quite hard to understand and maintain. We also want to move away from
Jenkins and rsyncing state files.

Directly retrieve autopkgtest results from a publicly readable and browsable
Swift container, with a debci-compatible layout
(https://wiki.debian.org/debci/DistributedSpec). This now tracks both requests
and results on a per-architecture granularity, so that we can track
per-architecture regressions/always-failed.

Introduce a new ADT_SWIFT_URL config option that sets the swift base URL. If
this key is not set, the behaviour does not change compared to previous
versions, and no results will be retrieved from the cloud.

This still keeps the old adt-britney requests/results as the authoritative
data and for now merely shows the swift results in addition. With that we can
compare the results and run the cloud testing in parallel to find/fix problems
until we switch over. Due to that, the code to britney.py is temporary, does
*not* use AutoPackageTest.results(), and instead just reads the internal
results map.
2015-07-10 06:21:46 +02:00
Martin Pitt
add46d2904 Store autopkgtest flag in sources
Extend read_sources to store a new AUTOPKGTEST boolean flag, which is true if
the Testsuite: field exists and starts with "autopkgtest" (this covers autodep8
cases like autopkgtest-pkg-perl).

Extend TestData.add() to take a new testsuite argument which specifies the
source's Testsuite: field.
2015-07-01 15:49:06 +02:00
Celso Providelo
50e0bc137d Add 'boottest' excuse failure reason when it has failed even if the previous tests had already failed. 2015-02-20 17:02:00 -02:00
Celso Providelo
c76874fda5 Test ADT & BootTest criteria running simultaneously. Fixed minor issue related to doubling-blocking promotions. 2015-02-20 14:12:51 -02:00
Celso Providelo
496a2f3134 Suppress boottest SKIPPED notice on excuses, it's unnecessary noise. 2015-02-10 15:56:35 -05:00
Celso Providelo
b9890e1b7c Adding links to the boottest jobs (results) in the public and the private servers. 2015-02-10 14:51:44 -05:00
Celso Providelo
011aa3570e Stop announcing skipped boottest attempts. 2015-02-10 13:49:43 -05:00
Celso Providelo
1e8dc398e9 Merge the boottest-jenkins script wrapper into BootTest class for simplicity and extend the API to match what we already for auto-package-testing (ADT). 2015-02-04 08:54:00 -05:00
Celso Providelo
06ea2ab941 Request boottests for sources, not binaries. Jenkins glue will drive adt properly. 2015-02-03 12:27:22 -05:00
Joe Talbott
056a0f6d37 Handle boottest like autopkgtest and remove boottest config file 2015-01-30 17:51:44 -05:00
Francis Ginther
c340a46e7a Correct copy-n-paste of 'e.' for 'excuse.'. 2015-01-26 15:09:50 -06:00
Celso Providelo
913539ffe9 Allow hints for ignoring boottest results (force and force-skiptest). 2015-01-23 10:17:10 -02:00
Celso Providelo
eeaf8e3deb Silently skipping boottesting for sources not yet built on the allowed architectures (all and armhf). 2015-01-22 21:30:03 -02:00
Celso Providelo
ed31f1129b Cosmetic changes for adding excuse labels (html) and more readable image manifest path. 2015-01-22 16:44:18 -02:00
Celso Providelo
a84720951a merging cleaned test-refactoring 2015-01-22 15:18:37 -02:00
Celso Providelo
b8e5851905 Reverting whitespace cleanup. 2015-01-22 15:16:49 -02:00
Celso Providelo
1bfe4c69eb Addressing cjwatson points, mainly moving 'excuse' handling logic back to britney. 2015-01-22 14:43:37 -02:00
Celso Providelo
f7e1fa67c0 Implementing boottest entry points for checking phone-image presence and test current status. 2015-01-21 10:25:40 -02:00
Celso Providelo
fe5f4c09ac Very basic bootstack testing criteria support. 2015-01-19 17:59:19 -02:00
Celso Providelo
46281510e3 Refactoring the existing test (autopkgtest), so its features can be re-used for other criterias (boottest) tests. 2015-01-19 17:16:46 -02:00
Colin Watson
7959019916 Use Launchpad's new DistributionSourcePackageRelease:+latestbuild/archtag redirects. 2015-01-09 11:57:33 +00:00
Colin Watson
d1d7bb27b0 remove vestige of maybe_nbs 2014-12-10 12:44:23 +00:00
Colin Watson
c1ad351f9a Merge trunk 2014-12-10 12:24:34 +00:00
Colin Watson
7c8fd39803 Merge trunk up to 2014-08-05 2014-12-10 11:39:27 +00:00
Colin Watson
24e20560e7 Merge trunk up to 2014-07-13 2014-12-10 11:08:56 +00:00
Colin Watson
b3562dbfe8 Merge trunk up to 2014-05-24 2014-12-10 10:36:01 +00:00
Colin Watson
6904969c7c Merge trunk up to 2013-12-06 2014-12-09 16:02:16 +00:00
Colin Watson
11af066dda Make sure that self.binaries['tpu'][arch] is properly initialised. 2014-12-09 15:36:09 +00:00
Colin Watson
9627ee7661 Merge trunk up to second commit from 2013-11-27 (rewritten installability tester) 2014-12-09 15:12:29 +00:00
Colin Watson
3290b4cccf Merge trunk up to first commit from 2013-11-27 2014-12-09 14:48:58 +00:00
Niels Thykier
b2cef666f4 britney: Ignore "remark" hints as they are not meant for us
The "remark" hint is only intended for showing up in the output of "d"
(or via hint grep).  It has no effect on Britney's behaviour.

Admittedly, the original code would have ignored it as well.  But this
change makes it explicit and not simply a "ignored due to insufficient
permissions".

Signed-off-by: Niels Thykier <niels@thykier.net>
2014-11-23 19:19:33 +01:00
Colin Watson
da9e838067 Revert to r414; this gets things wrong if there are sources with some Architecture: all binaries in unstable and some incompletely-built architecture-dependent ones. 2014-11-12 12:36:53 +00:00
Colin Watson
301dd2df1e Refine merging of binaries: only count unstable-architecture-independent as built if all binaries are now architecture-independent. 2014-11-12 12:17:50 +00:00
Colin Watson
4cc353296a When merging binaries, count a binary as built in unstable if the testing architecture is architecture-dependent and the unstable architecture is architecture-independent. 2014-11-12 12:08:46 +00:00
Ivo De Decker
b7f3100b91 excuses: show cruft and missing builds
For out-of-date binaries, generate different excuses when the build is
missing, or when old (cruft) binaries for previous version are still around.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2014-11-08 11:33:05 +00:00
Ivo De Decker
70c4a7cc55 Link to the freeze policy for blocked packages
Don't tell people to mail debian-release.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2014-11-07 15:21:22 +00:00
Martin Pitt
d57c0bbeb8 autopkgtest: Update public Jenkins URL to not depend on /view/<Release> to be created 2014-10-31 08:35:03 +01:00
Colin Watson
9dec8a1daf Fix log message if Dates is missing. 2014-10-23 18:28:42 -04:00
Adam D. Barratt
f516b38256 Don't remove arch:all binaries when migrating *pu binNMUs
As part of a migration, we remove all the existing binaries built by
the source (possibly on a particular architecture) from testing; this
includes architecture-independent binary packages. However, when a
binNMU is in *pu, only the arch-dependent binary pakcages are present.

As a result, after the migration the architecture-independent packages
are no longer present in testing. This usually isn't a practical
problem, as dak will re-add them when it generates the packages files.

It is, however, wrong and will break if a source migration is tempted
during the same run as (and after) the *pu binary migration happened.

The simple fix is to not remove the architecture-independent packages
when performing such migrations.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2014-09-21 15:50:50 +00:00
Niels Thykier
3c91f65f1f britney.py: Fix bug where nuninst would be copied incorrectly
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-23 10:56:20 +02:00
Colin Watson
1982bf4bd1 Remove a stray "break" that caused broken out-of-date output. 2014-08-19 12:49:35 +01:00
Niels Thykier
666dd187e4 britney.py: Fix a regression in nuninst counting for hints
In the rare case that a hint removed an uninstallable binary, the
binary could still be included in the nuninst counter.

Regression introduced in a46dd88.

Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-07 19:56:19 +02:00
Niels Thykier
30d686164c do_all(): Only sort_actions after recurse runs
sort_actions() can be quite expensive and it is wasteful to resort
actions after each successful "easy"-hint.

Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-06 20:57:38 +02:00
Niels Thykier
513fea07b8 britney.py: Skip lundo maintenance in non-hint recurse runs
There are no uses of "lundo" left for a non-hint recurse run (i.e.
the "main run"), so there is no point in building it.

The "lundo"-list is still used in the recurse run of a "hint"-hint.

Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-06 20:57:38 +02:00
Niels Thykier
8ea2157d79 Avoid unnecessary nuninst regressions for break archs
The "do_all"-method now checks the architectures of all changes
applied.  If they entirely consist of items from "break archs", then
"do_all" will disregard the current "break archs" setting when
comparing nuninst counters.

This change avoids unintended installability regressions on break
arches when a hint (manual or automatic) apply only to packages on
break arches.

Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-06 20:57:31 +02:00
Niels Thykier
b53e8fa501 Move the nuninst checker function to britney_util
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-08-05 07:56:29 +02:00