40 Commits

Author SHA1 Message Date
Ludwig Nussel
67daf27c59 Merge pull request #760 from lnussel/reviewoptions
Add options for review team an release managers
2017-03-16 10:40:28 +01:00
Jimmy Berry
21b887f5f2 leaper: allow self submission. 2017-03-15 15:08:21 -05:00
Ludwig Nussel
1af91580ac Add options for review team an release managers 2017-03-15 17:32:48 +01:00
Ludwig Nussel
bc7ee557fb Also mention where a package came from in 42.1 2017-03-14 13:51:46 +01:00
Ludwig Nussel
cad7c8520f Correctly report unchanged devel project
Refactor check for same origin into separate function
2017-03-14 13:51:39 +01:00
Ludwig Nussel
96136f324e Add note if a package is also in SLE 2017-03-14 13:51:33 +01:00
Jimmy Berry
134d340dcf leaper: notify submit request authors of automatic submission. 2017-02-17 09:56:41 -06:00
Jimmy Berry
748fce38cc ReviewBot & leaper: provide deduplicate method for leaper comment.
Otherwise, leaper will indicate an unhandled request twice.
2017-02-15 10:01:20 -06:00
Jimmy Berry
dcf435430c leaper: utilize ReviewBot check_action__default() message. 2017-02-15 09:45:18 -06:00
Jimmy Berry
b0f4a5fe2b leaper: drop extra definition of check_action__default().
The second definition being the current behavior and added later would seem
to be the desired implementation.
2017-02-15 09:05:45 -06:00
Ludwig Nussel
5b61b92808 Merge pull request #684 from jberry-suse/leaper-comment-to-reviewbot
ReviewBot: refactor leaper comment from log functionality.
2017-02-15 09:59:32 +01: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
Jimmy Berry
015d59cdc7 ReviewBot: refactor leaper comment from log functionality.
Simple interface:
- comment_handler_add(): Add handler to start recording log messages
  for comment.
- comment_write(): Write comment from log messages if not similar to
  previous comment.

See leaper.py for example usage.
2017-02-10 15:58:57 -06:00
Ludwig Nussel
cb02316478 Put links to source diffs
Easily clickable links are a convenient feature.
2017-01-31 17:11:33 +01:00
Ludwig Nussel
f4406fb2b2 explicitly mention if a package exists with different sources 2017-01-26 13:18:38 +01:00
Ludwig Nussel
da8e9d3c71 Leaper tuning for SLE 2017-01-18 17:04:19 +01:00
Jimmy Berry
de00cf092e Provide target_project in Leaper._check_factory() and use for SLE. 2017-01-17 22:30:34 -06:00
Jimmy Berry
ed667886ed leaper.py: disable parse_lookup() when running against ibs. 2017-01-17 22:26:43 -06:00
Jimmy Berry
6275fc52bc leaper.py: indicate if origin differs from the expected origin. 2017-01-11 14:37:26 -06:00
Jimmy Berry
8db3461a00 Port osc-check_source.py to ReviewBot as check_source.py.
In the process of porting many improvements and bug fixes were added. Usage
follows the standard ReviewBot format and allows for new execution styles,
but the following examples replicate previous usage.

# Review all requests assigned to factory-auto.
./check_source.py --group factory-auto review

# Review request 13370.
./check_source.py --group factory-auto id 13370

# --project translates to project command.
# No longer automatically includes $project:NonFree.
./check_source.py --group factory-auto project openSUSE:Factory

New options available are:

--ignore-devel          ignore devel projects for target package
--devel-whitelist=FILE  file containing whitelisted projects (one per line)
--review-team=GROUP     review team group added to requests with > 8 diff
--repo-checker=USER     repo checker user added after accepted review

Note that --ignore-devel used to be provided as env[IGNORE_DEVEL_PROJECTS].

Some highlights about what was cleaned up:
- cryptic variable names replaced
- replaced custom osc queries with osc.core calls where applicable
- removed the need to load package information for all packages within
  target project which cuts runtime in half for single review
- removed extraneous code that performed extra steps for no reason
  os.path.dirname(os.path.realpath(__file__.replace('.pyc', '.py')))
  os.path.dirname(os.path.realpath(__file__))
  and _checker_prepare_dir() which needlessly chdir() twice.
- one logic branch failed to cleanup checkout directory
- new flags provide additional flexibility
2017-01-10 19:33:41 -06: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
91398166bc Move Factory approval option to right place 2016-10-17 11:35:22 +02:00
Ludwig Nussel
e70a88b65a set source in factory to false explicty
that way the bot leaves an explicit comment about the fact
2016-10-17 11:35:22 +02:00
Ludwig Nussel
cca138b4a6 Add options to approve all updates 2016-10-17 11:35:21 +02: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
e989e4c4fd Handle submissionf from SLE :Update correctly 2016-08-24 16:47:26 +02:00
Ludwig Nussel
d45a4995a9 SLE-12 submissions don't need review-team 2016-07-29 11:49:51 +02:00
Ludwig Nussel
1f406d07b7 Don't overwrite function
self.add_review is a function. local variable is just add_review
2016-07-29 11:46:12 +02:00
Ludwig Nussel
e55b482edc Wait for Factory submission even if origin changed 2016-07-29 11:39:56 +02:00
Ludwig Nussel
6c10b79174 Update lookup information on every run
manager42 might have updated it in the meantime
2016-07-29 10:55:37 +02:00
Ludwig Nussel
22a00df308 Refactor to check for Factory more often 2016-07-29 10:49:36 +02:00
Ludwig Nussel
66ad92c76a Adjust leaper logic
- allow upgrades from other SP
- allow Factory package updates that were from Factory in 42.1
2016-07-29 10:28:58 +02:00
Ludwig Nussel
92144dade4 Wait for Factory reviews 2016-06-14 13:51:26 +02:00
Ludwig Nussel
bcaa610a67 Handle separate lookup file in :NonFree 2016-06-10 10:59:36 +02:00
Ludwig Nussel
d16194caea Use decline message also on fallback
In fallback mode the bot would laccept a request on failure. It should also put the failure message in that case.
2016-06-07 15:12:02 +02:00
Ludwig Nussel
51bd96180a Only accept single action requests 2016-06-07 15:12:02 +02:00
Ludwig Nussel
51132f149e Auto accept submissions from fallback reviewer 2016-06-07 15:12:02 +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