621 Commits

Author SHA1 Message Date
Jimmy Berry
f9c78a6638 adi: create accept comment to be consistent with letter stagings. 2017-03-28 23:02:38 -05:00
Jimmy Berry
1dfa8d2568 stagingapi: provide accept_status_comment() based on accept command. 2017-03-28 23:01:33 -05:00
Jimmy Berry
1ece7d6375 accept: remove unused requests list in perform(). 2017-03-28 22:59:36 -05:00
Jimmy Berry
5a2cd2dc9a osc-staging: handle select --move cleanup of empty source project.
- handle build disable in select command just like comment instead of
  stagingapi move_between_project() for consistency and to reduce double
  checking the same information via extra API calls
- build_switch_staging_project() provides target_flag parameter rather
  than trying to figure out flag value since caller has the context to
  know and again reduces API calls
- build_switch_staging_project() checking conditions are essentially
  checking if True is True since non-adi projects will always have ring
  packages or rings disabled entirely. The condition of interest is
  non-empty. Additionally adi projects are removed if empty so not a
  terribly useful distinction to make.
- provide helper update_status_or_deactivate() to handle common logic
  and replace in calling locations
2017-03-28 22:33:35 -05:00
Jimmy Berry
5185a7f569 stagingapi: invalidate get_open_requests() memoize cache after supersede. 2017-03-28 19:52:43 -05:00
59e496effb Fix wrong call of cstaging 2017-03-24 17:25:00 +08:00
Ludwig Nussel
fa167b8073 Merge pull request #772 from nilxam/suppkg_rebuild
Rebuild staging project if it has support package was staged
2017-03-23 10:35:23 +01:00
Ludwig Nussel
a85e077925 Merge pull request #766 from jberry-suse/supersede-leap
refactor supersede logic and handle different source projects (additional cleanups)
2017-03-22 18:21:35 +01:00
06596972c9 Reset support_pkg_rebuild state to unknown while accepting 2017-03-21 19:39:09 +08:00
Ludwig Nussel
3cbe377b11 Merge pull request #768 from jberry-suse/cleanup-setprio
setprio: utilize project_status() and refactor to support list of stagings.
2017-03-20 15:41:01 +01:00
Ludwig Nussel
79a193ab78 Merge pull request #770 from jberry-suse/cleanup-obsolete-untracked
support --cleanup for obsolete and untracked requests in unselect and repair commands
2017-03-20 15:40:17 +01:00
Ludwig Nussel
99c358703f Merge pull request #765 from jberry-suse/cleanup-ignore
Cleanup ignore and always provide a comment.
2017-03-20 15:39:13 +01:00
Jimmy Berry
8ebe94bc5f stagingapi: get_ignored_requests() handle empty file. 2017-03-18 21:04:54 -05:00
Jimmy Berry
37ce041b9d repair: support the --cleanup flag to include all untracked requests. 2017-03-18 18:14:47 -05:00
Jimmy Berry
94a4629d2c unselect: support the --cleanup flag to include all obsolete requests. 2017-03-18 18:13:42 -05:00
Jimmy Berry
3505736fe0 stagingapi: project_status_requests() to extract all requests of type. 2017-03-18 18:06:51 -05:00
Jimmy Berry
e41c58cb3b stagingapi: refactor supersede logic and handle different source projects.
Primarily an issue for Leap in that requests originating from different
source projects may be submitted for the same package at once. Instead of
always superseding the previous request the request will only be
superseded if it originates from the same project.

If different sources md5s are found the request will be ignored and left
for manual review and an identical request will be declined.
2017-03-17 17:23:30 -05:00
Jimmy Berry
01868da548 stagingapi: do not attempt to supersede ignored requests. 2017-03-17 17:20:06 -05:00
Jimmy Berry
6669190e98 stagingapi: simplify finding action in superseded_request(). 2017-03-17 17:18:47 -05:00
Jimmy Berry
f5115930bc stagingapi: provide source_info_request() helper. 2017-03-17 17:17:58 -05:00
Jimmy Berry
8a33032c96 stagingapi: provide source_info() from ReviewBot. 2017-03-17 17:17:39 -05:00
Jimmy Berry
e1626db5e7 stagingapi: @memoize to get_ignored_requests() and get_open_requests().
Based on usage neither of these are refreshed during a single run, but
are called multiple times in function chains.
2017-03-17 17:16:49 -05:00
Jimmy Berry
76dc41ed45 ignore|uningore: use past tense in output. 2017-03-17 14:45:31 -05:00
Jimmy Berry
ee5f265265 ignore: add default comment message if none provided. 2017-03-17 14:44:27 -05:00
Jimmy Berry
12cd69c6ab ignore: remove validation since that is handled by RequestFinder. 2017-03-17 14:43:52 -05:00
Jimmy Berry
89c75ab227 unignore: add comment when a request is unignored.
Without a comment the only indication of when a request was unignored
is in the revision history of ignored_requests file.
2017-03-17 14:41:43 -05:00
Jimmy Berry
5927b2b283 unignore: utilize RequestFinder. 2017-03-17 14:41:11 -05:00
Jimmy Berry
d7e4cac7cb check: stagingapi.check_project_status() does not have verbose argument. 2017-03-17 14:13:34 -05:00
Jimmy Berry
84e1b66cd8 setprio: utilize project_status() and refactor to support list of stagings.
The existing setup was inconsistent in that it was copied from check, but
documented that it supported multiple specific stagings. Assuming that
would be a desired feature anyway it has been reworked.
2017-03-17 14:11:55 -05:00
Ludwig Nussel
331ec53e72 Merge pull request #762 from jberry-suse/project-status-aggregate
stagingapi: utilize aggregate backend call wherever possible.
2017-03-17 15:00:10 +01:00
Ludwig Nussel
3158189c09 Merge pull request #744 from lnussel/setprio
Add setprio command
2017-03-17 11:17:50 +01:00
Jimmy Berry
b4abfd8b58 stagingapi: refactor _get_staged_requests() to use project_status(). 2017-03-16 23:16:26 -05:00
Jimmy Berry
e17ee8cd53 stagingapi: handle empty string in load_prj_pseudometa(). 2017-03-16 22:42:28 -05:00
Jimmy Berry
959232e441 check: utilize project_status(). 2017-03-16 22:13:57 -05:00
Jimmy Berry
7b6ead4047 adi: utilize extract_staging_short() and project_status(). 2017-03-16 22:13:55 -05:00
Jimmy Berry
19a6d60c78 stagingapi: allow project_status() to utilize aggregate backend call. 2017-03-16 22:11:12 -05:00
Jimmy Berry
791d25046d stagingapi: correct spelling supseded_request() -> superseded_request(). 2017-03-16 18:33:40 -05:00
Jimmy Berry
7580e5504d stagingapi: allow staging to be None in project_status() to return all. 2017-03-16 14:35:12 -05:00
Ludwig Nussel
866a28adad Prepare repochecker for Leap 2017-03-16 17:04:05 +01:00
Ludwig Nussel
6e0826801f Add setprio command
raise priority for requests in review
2017-03-16 14:43:28 +01:00
Ludwig Nussel
e985d45cb3 Merge pull request #743 from jberry-suse/strategy-devel-min-map
request_splitter: add group min map to devel strategy.
2017-03-16 10:41:24 +01:00
Ludwig Nussel
4a03f9ab73 Merge pull request #750 from jberry-suse/unselect-empty-staging-deactivate
unselect: cleanup stagings left empty after request removal.
2017-03-16 10:41:06 +01:00
Jimmy Berry
1c646a3c9c list: remove duplicate empty list handling for dispatch_open_requests(). 2017-03-15 15:49:06 -05:00
Jimmy Berry
83acebb719 special strategy: drop python*. 2017-03-14 23:12:07 -05:00
Jimmy Berry
80e0ce4ea8 unselect: cleanup stagings left empty after request removal. 2017-03-14 23:03:02 -05:00
Jimmy Berry
8b5dc5d7c8 accept: refactor staging cleanup into stagingapi. 2017-03-14 23:02:52 -05:00
Jimmy Berry
6e7c158df7 request_splitter: add group min map to devel strategy. 2017-03-14 01:22:13 -05:00
Jimmy Berry
1b638a533b osc-staging: provide rebuild_check() to conditionally rebuild failures. 2017-03-14 00:24:23 -05:00
Ludwig Nussel
35a401806f Merge pull request #718 from jberry-suse/devel-project-tool
Devel project tool: review reminders
2017-03-10 15:32:52 +01:00
Ludwig Nussel
95cfd9699f Merge pull request #720 from jberry-suse/unselect-ignore-requestfinder
ignore: integrate with unselect and use requestfinder
2017-03-10 15:16:22 +01:00