10 Commits

Author SHA1 Message Date
Jimmy Berry
a61cf8a2f0 check_source: utilize project config to allow for remote entries.
Rather than updating a local whitelist file for temporary devel project
whitelist entries it makes more sense to allow for remote configuration.
2017-07-18 23:48:47 -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
e942a38dc9 check_source: accept delete repository requests. 2017-05-30 14:38:25 +02:00
4269a0ea40 Fix wrong parsing from root 2017-05-17 23:12:15 +08:00
Jimmy Berry
d753d44236 check_source: skip staging process if only .changes modifications. 2017-04-19 10:13:06 -05:00
Jimmy Berry
c78b71a48d check_source: package_source_parse() drop unused apiurl parameter. 2017-04-19 09:21:45 -05:00
d49761ec4d
Delete requests should be handled by repo checker
Repo-checker at least has some code to validate if it's safe to delete
a package and gives us the information what else we would break with it.

https://progress.opensuse.org/issues/17746
2017-03-15 15:44:59 +01:00
Jimmy Berry
34f5006ab5 check_source: allow self-submission. 2017-02-10 11:19:25 -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