105 Commits

Author SHA1 Message Date
Jimmy Berry
060b50f072 ReviewBot: add comment_handler option and use in leaper. 2017-07-12 15:31:30 -05:00
Jimmy Berry
2c1a21704d ReviewBot: copy default review messages before each review. 2017-07-12 15:31:30 -05:00
Jimmy Berry
3b1c11f45c ReviewBot: provide only_one_action option and use in leaper and check_source. 2017-07-12 15:31:30 -05:00
Jimmy Berry
7bcf94a35f ReviewBot: provide request_default_return option and use in leaper. 2017-07-12 15:31:30 -05:00
Ludwig Nussel
1c7a37bc0e Turn off automatic submission from Factory 2017-07-03 17:23:00 +02:00
Jimmy Berry
c1dc56c251 leaper: correct invalid diff link when package present in SLE. 2017-06-27 01:15:25 -05:00
Ludwig Nussel
e2cd308062 Merge pull request #890 from lnussel/leaper
Add more klickable links
2017-06-19 16:49:27 +02:00
Jimmy Berry
d804a9d333 leaper: drop extraneous _ prefix to src_srcinfo during in_sle_origin check. 2017-05-11 23:34:35 -05:00
Jimmy Berry
f203f0c5e0 leaper: indicate if submission is already accepted to SLE origin.
It seems unlikely that checking for requests would be acceptable for SLE.
2017-05-09 20:18:23 -05:00
Ludwig Nussel
18fd77c51f Add more klickable links 2017-05-09 17:33:45 +02:00
Jimmy Berry
585a9d1f84 leaper: do not add review team for SLE requests for FORK'd packages. 2017-04-20 22:18:25 -05:00
Ludwig Nussel
3029046697 Add clickable link to groups 2017-04-18 16:57:21 +02:00
Ludwig Nussel
cfc57126e1 Refactor adding group reviews 2017-04-18 16:51:54 +02:00
Ludwig Nussel
6de8f95655 Add legal review for forks 2017-04-18 16:38:48 +02:00
Jimmy Berry
5f77f48437 leaper: reset automatic_submission to False on each review.
Perhaps this should be handled on a larger scale where initial variable
states are not set in __init__ but rather in special method or reset in
some manor.
2017-04-10 23:17:09 -05:00
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