30 Commits

Author SHA1 Message Date
Stephan Kulow
ea9061ccf5 Import urllib2 python agnostic 2018-11-16 09:01:45 +01:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Ludwig Nussel
cc2fa88058 leaper: adjust for SLE 15SP1 and SLE12SP4 2018-06-28 14:24:35 +02:00
Ludwig Nussel
a471c0b9e8 Refactor _check_project into ReviewBot 2018-05-30 13:55:38 +02:00
Jimmy Berry
ea7ca0424e check_source_in_factory: allow repo-checker reviews.
This would be better done by using config, but that would require a larger
refactor since the underlying ReviewBot is not entirely setup when called
by leaper.
2018-03-15 10:44:40 -05:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
3cf49d9556 Python 2.6+ / 3.x style except clauses
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
Jimmy Berry
92a5f60369 ReviewBot: use super().check_source_submission() in subclasses.
No need to duplicate the log message in multiple places.
2017-02-10 16:09:51 -06:00
Ludwig Nussel
aecf680f87 Implment configurable submit request references
sr# only works within the same instance. Requests referenced in a
different instance need a different prefix.
2017-02-01 11:20:27 +01:00
Ludwig Nussel
f4406fb2b2 explicitly mention if a package exists with different sources 2017-01-26 13:18:38 +01:00
Ludwig Nussel
1919233883 Merge pull request #643 from sbahling/multiple_factory
check_source_in_factory: Allow checking sources against more than one…
2017-01-25 10:05:38 +01:00
Scott Bahling
eb732936f4 Also check and convert value retrieved from lookup file. 2017-01-23 17:32:08 +01:00
Ludwig Nussel
3c0b809563 limit history to workaround obs bug
obs doesn't honor the limit paramater for obs interconnect, so we
have to limit the loop ourselves
2017-01-18 17:04:18 +01:00
Ludwig Nussel
74d5072562 Merge pull request #642 from sbahling/config_limit
Make revision depth (limit) configurable
2017-01-18 11:03:03 +01:00
Scott Bahling
cee652c363 check_source_in_factory: Allow checking sources against more than one project.
--factory option can be specified multiple times to check against
  a list of projects. For example checking against Factory and Leap
  for the Backports project.

  Check will loop over each project and break as soon as a match is
  found. Project search order matches order of --factory options (at least
  in testing).
2017-01-17 16:08:11 +01:00
Scott Bahling
211e503ea9 Make revision depth (limit) configurable
Adds --limit option to specify how many revisions back to iterate over
when checking for match. Leaving default at 5.
2017-01-17 13:03:35 +01:00
Ludwig Nussel
dd26743202 Fetch request info from different api url 2017-01-11 17:43:11 +01:00
Jimmy Berry
7431af4a72 Rework ReviewBot.CommandLineInterface to provide class option. (#622)
Alleviates the need for a lot of duplicate code, some of which is already
out-of-sync.
2017-01-02 09:34:13 +01:00
Ludwig Nussel
56ee7bb3fe Adjust leaper for 42.3 2016-12-06 17:00:32 +01:00
Ludwig Nussel
9cab807172 Leaper fixes 2016-10-14 14:29:35 +02:00
Ludwig Nussel
4ae766064b Leaper overhaul
- add release manager explicitly when needed instead of relying on
  fallback.needed instead of relying on fallback. This allows the bot to
  actually decline requests that are certainly wrong.
- put comments in requests to communicate when the bot e.g. waits for a
  Factory submission.
2016-10-14 14:29:35 +02:00
Ludwig Nussel
9c4382c1a9 Accept requests that are only stuck in Factory staging
If only the review by a factory staging project is left in state new and
all others are in state accepted it means legal, opensuse-review team
etc have completed. So it's safe to consider such a request accepted for
inclusion into Factory. So let's not waste time waiting for the next
Factory checkin round.
2016-09-09 10:30:05 +02:00
Ludwig Nussel
b0617ecee1 Another debug message 2016-07-29 11:14:38 +02:00
Ludwig Nussel
bcaa610a67 Handle separate lookup file in :NonFree 2016-06-10 10:59:36 +02:00
Ludwig Nussel
d35e73d595 Introduce the Leap bot
Combination of factory source checker and maintainer check
2016-06-07 15:11:26 +02:00
6f7e3f2a02 Fixes the logic error in checkTagNotRequired() 2015-07-09 20:04:31 +08:00
Kristoffer Grönlund
c0aa673192 check_source_in_factory: Avoid crash if get_sourceinfo fails 2015-06-23 14:36:56 +02:00
Ludwig Nussel
a4bf2657d4 refactor _get_verifymd5 to get_sourceinfo 2015-05-28 13:04:08 +02:00
Ludwig Nussel
39362a03f3 refactor common functions into ReviewBot 2015-03-19 16:42:18 +01:00
Ludwig Nussel
a590787e33 new review bots factory-source and maintbot
factory-source checks if submissions contain sources already accepted in
Factory. maintbot makes sure maintenance submissions are authored by the
Factory package maintainer.

Both are based on a new generic ReviewBot.py class that can serve as
common framework for review bots.
2014-11-25 14:36:22 +01:00