1535 Commits

Author SHA1 Message Date
Niels Thykier
b63ade583c Rename and turn SuiteInfo into a proper class
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
e63aa05708 Add Suites to keep track of all suites
At the moment, it is just a glorified dict.  However, we will
eventually use it to get rid of the hardcoded references to "testing"
etc. all over the code.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
37f02d611c Revert "Rename autopkgtest related hints"
This reverts commit a07fa9f9070fc9c328021db5cc3e4c4f3063798e.

The new names are just as unhelpful and confusing as the old ones.
Undo for now.
2018-07-25 18:17:36 +00:00
Niels Thykier
a07fa9f907 Rename autopkgtest related hints
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-25 16:51:03 +00:00
Paul Gevers
bfa5c9f191
Don't show excuses for packages that are PASS, NEUTRAL, RUNNING-ALWAYSFAIL or ALWAYSFAIL 2018-07-25 18:06:29 +02:00
Paul Gevers
0da1e4d589
autopkgtest: Drop broken reference update
1) the update didn't happen for all but the first

2) we don't want a package that fixes a regression in unstable to influence the
   reference for another package until it actually migrates, so this updating
   is flawed.
2018-07-21 13:21:39 +02:00
Paul Gevers
624b185ba6
autopkgtest: enable NEUTRAL state for the case where all tests were skipped (or none available)
Closes: #901847
2018-07-21 13:21:39 +02:00
Niels Thykier
d2fe22348d Merge branch 'rename-alwaysfailed-in-excuses' into 'master'
Rephrase 'Always failed' as it is confusing in Debian

See merge request release-team/britney2!1
2018-07-21 10:24:51 +00:00
Paul Gevers
8bbe112735
Rephrase 'Always failed' as it is confusing in Debian 2018-07-21 10:28:17 +02:00
Niels Thykier
6a2ca127c7 .gitlab-ci: Only publish on commits to master
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:45:27 +00:00
Niels Thykier
c07a10f0bf Update coveragerc to exclude sitecustomize.py
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:40:08 +00:00
Niels Thykier
3d076d9bb0 .gitlab-ci.yml: Run tests with coverage on gitlab
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:39:47 +00:00
Niels Thykier
28953b2224 Add .gitlab-ci to generate docs
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:39:47 +00:00
Niels Thykier
d11152b366 Remove the "valid candidate"/"Not considered" messages
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-21 07:48:33 +00:00
Niels Thykier
5dd4a5141c Avoid explicit state in non-actionable excuses
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-21 07:48:10 +00:00
Niels Thykier
1c79e19b67 doc/short-intro: Use literal style for package names etc.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-11 06:36:56 +00:00
Niels Thykier
8ecde14d48 doc: Replace a md link with a rst link
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-11 06:34:05 +00:00
Niels Thykier
e51a3b91ff autopkgtest.py: Avoid unnecessary indirection
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-06 06:51:47 +00:00
Niels Thykier
4a7d3f4bbd doc: Fix typo
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-04 05:49:48 +00:00
Niels Thykier
d371323206 doc/contributing: Use literal rather than italics
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-04 05:46:06 +00:00
Niels Thykier
d4d8f672a5 Document how to build the documentation
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-04 05:45:16 +00:00
Niels Thykier
de8a84695c doc: Update git repo links
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-04 05:45:02 +00:00
Niels Thykier
086ec7e542 Let ADT influence age for migrations
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 20:41:00 +00:00
Niels Thykier
bfa028595f britney: Leave upgrade_output alone with --dry-run
Closes: https://bugs.debian.org/763521
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:33 +00:00
Niels Thykier
7897942f24 Make UPGRADE_OUTPUT optional
All the output is a duplicate of what is being sent to the root logger
(albeit in a different format) and in e.g. our test suite the output
is entirely redundant.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:33 +00:00
Niels Thykier
d35a831a0c Remove remaining calls to output_write and output_write itself
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:33 +00:00
Niels Thykier
a344a9b375 Rewrite handling of logging old libraries
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:30 +00:00
Niels Thykier
3d05b834ad Refactor logging of uninst
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:25 +00:00
Niels Thykier
ef8c56f189 Migrate output_write to use a logger
With a bit of code we can replace the manual file-handling for
"upgrade_output" with a logger.  This will enable us to refactor other
bits that currently depend on "output_write" by making those bits use
a logger instead.

This also migrates "do_hint" to use the new output logger.  This is
due to "do_hint" being the only method relying on writing of partial
lines and maintaining support for that in "output_write" would have
been non-trivial.

To ensure "pretty" formatting to stdout, the messages in
"output_write" are now chopped into multiple lines.

The only visible change is that the output to stdout from
"output_write" now also includes the prefix with a timestamp.
However, then contents of "upgrade_output" remain unchanged
deliberately.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:25 +00:00
Niels Thykier
9e6fcc0ed3 Avoid lying about orig-nuninst counters in force-hint
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:25 +00:00
Niels Thykier
6d81e0b1fd Drop redundant "Apparently successful"-note
We already know the item is successful when we print it and the next
line ("final:") will confirm it any way.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-02 18:41:25 +00:00
Niels Thykier
d7792657a7 doc: Use a different style for hints config and file names
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-01 04:25:54 +00:00
Niels Thykier
58d855a31f Move install+config docs from README to doc/setting-up-britney.rst
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-01 04:22:41 +00:00
Niels Thykier
e5f3dfdf88 Drop obsolete BUGS file
AFAICT all of the items are no longer relevant.  Not to mention we
have a separate bug tracker (now?) that is much more suited for bugs
plus sphinx docs that could easily grow a "Known Issues" section as
well.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-01 03:57:57 +00:00
Niels Thykier
58658bbcbb .travis.yml: Use master branch for brtiney2-tests
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-30 18:29:39 +00:00
Niels Thykier
8ac55c436c Avoid duplicate pkgs names in ood excuse
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 10:12:21 +00:00
Niels Thykier
e20b27ed4a Grant elbrus autopkgtests hints
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:35:10 +00:00
Niels Thykier
b1e10e0f54 Grant HINTS_HELPERS autopkgtest hints
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:34:14 +00:00
Niels Thykier
e2b212d1ee Enable autopkgtests
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:30:43 +00:00
Niels Thykier
26c7e130f5 Sync britney_nobreakall.conf
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:22:02 +00:00
Niels Thykier
dd5d646625 Set ADT_{REGRESSION_PENALITY,SUCCESS_BOUNTY} to 0 for now
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:21:48 +00:00
Niels Thykier
d3638cc08f Make adt_baseline config optional
Given that only one value is defined ("reference"), it is a better
option to allow the config to be unset when one does not want to have
adt_baseline set to "reference".

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-29 07:19:02 +00:00
Niels Thykier
92817767b6 Merge remote-tracking branch 'github/autopkgtest' 2018-04-29 07:12:54 +00:00
Paul Gevers
a4d0c4a854
Don't start the tests before arch:all has been build (if applicable) 2018-04-25 21:50:46 +02:00
Paul Gevers
022d6ed564
Packages need passing tests on all tested architectures to receive the bounty 2018-04-16 21:37:30 +02:00
Paul Gevers
7e8ec20bc1
Put autopkgtest state files in their own namespace 2018-04-16 20:52:24 +02:00
Paul Gevers
575993d77b
Drop some linux-meta hardcoded stuff; not in Debian and bug 779559 is fixed long time 2018-04-16 20:52:24 +02:00
Niels Thykier
d7045af2b7 Leverage defaultdict to simplify some code
Notable omissions are "pending_tests" and "tests_results".  This is
omission is due to these (some times) being initialized from the
output of "json.load" (so we cannot assume defaultdict semantics
without manually imported the data into one).

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:25:06 +00:00
Niels Thykier
641df09570 Fix typo in a comment
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:14:24 +00:00
Niels Thykier
686721e91f Rewrite some set constructs
The first case is to avoid a creating a list, which is then converted
to a set only to throw away the list again.  Here we can just create
the set right away without a list inbetween.

The second case is "if x in [...]:" is better written as "if x in
{...}:" as sets provides faster "__contains__" (assuming you are on a
"recent enough python3", which britney is).

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:11:54 +00:00