966 Commits

Author SHA1 Message Date
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
Niels Thykier
77ec8a34f9 Optimize some hash lookups
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:11:32 +00:00
Niels Thykier
499f7d993c Move loop-invariant out of loop
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:11:02 +00:00
Niels Thykier
74fe0c8b8e Use finally to close handles from urlopen
Arguable, this is not a problem in the code as the failure case
invokes sys.exit.  However, this is more future proof as the sys.exit
may be replaced (or we may later catch another exception that is
"recoverable").

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:08:36 +00:00
Niels Thykier
2c34b70492 Remove unused import
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 10:07:52 +00:00
Paul Gevers
def9d81c76
Make retry URL configurable (two flavors) 2018-04-11 11:17:00 +02:00
Paul Gevers
9a28ec184b
Revert "autopkgtest: Drop retry_url from the excuses as this works different in Debian"
This reverts commit 054830d03f0a04c0306e5e71752646c2f2de2626.
2018-04-11 11:17:00 +02:00
Paul Gevers
cb716e3186
Don't excuse.force() on skiptest hint 2018-04-11 11:16:59 +02:00
Paul Gevers
6252826fad
autopkgtest: add adt_baseline = reference option
- revert most of commit adbe6d5 as checking the version in testing doesn't work
  when other packages migrate and cause regressions

- Alternative way of determining if a package is regressing, by comparison to a
  reference set. The reference set is to be created by a holy trigger that
  doesn't take packages from the base suite, but instead tests in the testing
  suite. This reference needs a retry when a package causing regression
  migrates nevertheless, e.g. due to hints or to bounty/penalty policy.
2018-04-11 11:16:59 +02:00
Niels Thykier
9030ff4d99 do_all: Simplify the assignments to a variable
At a glance, it looks like the value of "better" variable can be
decided from 3-4 places.  However, due to the code flow only two of
those assignments are truly "live"/useful.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-01 10:52:38 +00:00
Niels Thykier
ba74012678 Fix shinx warning
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-31 07:05:04 +00:00
Niels Thykier
41978869ce Migrate solver's ad-hoc debug logging
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-31 07:04:35 +00:00
Niels Thykier
b478460b96 Merge branch 'master' into autopkgtest 2018-03-31 06:06:15 +00:00
Niels Thykier
1e9fc7e826 britney: Log to stdout by default
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-31 06:05:41 +00:00
Niels Thykier
8eaee4309e Rewrite "self.log -> self.logger.<severity>" for autopkgtest
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-31 05:57:43 +00:00
Niels Thykier
f752ea4ac7 Merge branch 'master' into autopkgtest 2018-03-31 05:35:06 +00:00
Niels Thykier
e441902d92 doc: Fix missing letter in title
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-31 05:32:51 +00:00
Paul Gevers
e667e4dcaf doc: Initial version for piuparts solutions 2018-03-31 05:32:06 +00:00
Paul Gevers
f25060edf4 doc: Wording/typos 2018-03-31 05:31:52 +00:00
Niels Thykier
e069d5e837 Merge remote-tracking branch 'github/master'
Fixes the travis test-runner on github
2018-03-31 05:17:51 +00:00