122 Commits

Author SHA1 Message Date
Jimmy Berry
52af5b3d75 check_source: print message if checking devel project.
Currently, no indication unless ends in decline. More important when moving
option to config rather than flag.
2017-10-11 22:14:42 -05:00
Ludwig Nussel
afbe1495de Merge pull request #1166 from DimStar77/fa-norename
check_source: Ensure the source and destination package name matches
2017-10-09 14:01:10 +02:00
272348bc21
check_source: Ensure the source and destination package name matches 2017-10-06 17:24:25 +02:00
Jimmy Berry
a825af82a0 check_source: lookup staging group using StagingAPI rather than flag. 2017-10-04 15:31:28 -05:00
Jimmy Berry
c081de6025 check_source: interpret "None" as python None for review-team and repo-checker.
Allows for disabling adding those reviews from the command line.
2017-10-04 15:31:22 -05:00
Jimmy Berry
1e9c389617 check_source: drop inaccurate "with > 8 diff" from --review-team option. 2017-10-04 15:15:18 -05:00
Jimmy Berry
73df8871f1 check_source: drop unnecessary dest from add_option(). 2017-10-04 15:13:32 -05:00
Jimmy Berry
6afbc550ad check_source: rename perl and asciidoc to match name. 2017-08-18 15:18:04 -05:00
Jimmy Berry
0980989206 check_source: remove DIFFCOUNT algorithm and instead always add review_team. 2017-08-18 15:15:26 -05:00
Jimmy Berry
8711b45f4a Merge pull request #1017 from jberry-suse/source_check-repo_checker-default
check_source: change repo_checker default to new OBS username.
2017-08-14 11:44:16 -05:00
Jimmy Berry
12b84757a2 check_source: add devel review for delete request using MaintenanceChecker logic. 2017-07-27 19:31:46 -05:00
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
c08887e3ec check_source: change repo_checker default to new OBS username.
To distinguish from the old factory-repo-checker and use a generic name
applicable to Leap as well.
2017-07-18 22:51:26 -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