2384 Commits

Author SHA1 Message Date
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
791d25046d stagingapi: correct spelling supseded_request() -> superseded_request(). 2017-03-16 18:33:40 -05:00
Jimmy Berry
1c646a3c9c list: remove duplicate empty list handling for dispatch_open_requests(). 2017-03-15 15:49:06 -05:00
Ludwig Nussel
8194fa0934 Merge pull request #758 from DimStar77/check-deletes
Delete requests should be handled by repo checker
2017-03-15 17:34:36 +01: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
Ludwig Nussel
8707ceda4b Merge pull request #755 from nilxam/no_reason_ignore
Ignore has been declined request from whatever user submitted
2017-03-15 13:34:44 +01:00
eefb74149b Ignore has been declined request from whatever user submitted 2017-03-15 20:31:35 +08:00
7aaa463d1c Fix KeyError when inaccessible 2017-03-15 20:29:54 +08:00
Ludwig Nussel
1156354ba8 Merge pull request #748 from lnussel/staging
Fix module search path in osc-staging
2017-03-15 11:08:21 +01:00
Ludwig Nussel
d50a6ceab6 Merge pull request #747 from lnussel/leaper
Leaper adjustments
2017-03-15 11:06:14 +01:00
Ludwig Nussel
ccc47e17b7 Merge pull request #746 from lnussel/bot
Add comment when adding fallback reviewer
2017-03-15 11:03:48 +01:00
Ludwig Nussel
02ec7b2eff Merge pull request #741 from jberry-suse/osc-staging-doc-cleanup
osc-staging: correct and cleanup summary documentation.
2017-03-14 14:00:16 +01:00
Ludwig Nussel
77768cdf5e Merge pull request #725 from jberry-suse/rebuild-check
osc-staging: provide rebuild_check() to conditionally rebuild failures.
2017-03-14 14:00:00 +01:00
Ludwig Nussel
80dffd574f Fix module search path in osc-staging 2017-03-14 13:52:54 +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
Ludwig Nussel
138a92e7f5 Add comment when adding fallback reviewer 2017-03-14 13:50:37 +01:00
Jimmy Berry
e96476804e osc-staging: correct and cleanup summary documentation.
- adi and unignore commands request list is optional
- s/PROJECT/STAGING/ for consistency
- include --add option in select command
2017-03-14 00:51:17 -05:00
Jimmy Berry
1b638a533b osc-staging: provide rebuild_check() to conditionally rebuild failures. 2017-03-14 00:24:23 -05:00
Jimmy Berry
4d3e218cc5 Merge pull request #723 from jberry-suse/devel-project-remind-fallback
devel-project: remind fallback
2017-03-10 13:49:09 -06:00
Jimmy Berry
df088b32bc devel-project: drop user list if no maintainers. 2017-03-10 13:24:00 -06:00
Jimmy Berry
32dba4ab62 devel-project: fallback to project if package has no maintainers. 2017-03-10 13:23:29 -06: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
Ludwig Nussel
688e75bce0 Merge pull request #717 from jberry-suse/frozenage-all
osc-staging: allow frozenage to be invoked with no arguments.
2017-03-10 15:15:17 +01:00
Ludwig Nussel
0a3f07e8b7 Merge pull request #714 from jberry-suse/rebuild-command
osc-staging: provide rebuild command.
2017-03-10 15:15:04 +01:00
Ludwig Nussel
0bf2d43d48 Merge pull request #721 from nilxam/check_sub_fcc
Make sure sub-package is build successful in FCC too
2017-03-10 15:14:49 +01:00
Ludwig Nussel
81b144193e Merge pull request #722 from nilxam/expand_check_diff
Expand links in diff cmd POST
2017-03-10 15:14:21 +01:00
9198afd601 Expand links in diff cmd POST
Set expand:1 to expand links in case the target is a links.
Eg. comparing

iosc api -X POST /source/home:mlin7442:boo1026534/libqt5-qtdeclarative?cmd=diff&withissues=1&view=xml&oproject=SUSE:SLE-12-SP3:GA&opackage=libqt5-qtdeclarative&expand=1

and

iosc api -X POST /source/home:mlin7442:boo1026534/libqt5-qtdeclarative?cmd=diff&withissues=1&view=xml&oproject=SUSE:SLE-12-SP3:GA&opackage=libqt5-qtdeclarative

the change in .changes does not count actually. libqt5-qtdeclarative in
SUSE:SLE-12-SP3:GA is a link to libqt5-qtdeclarative.3900
2017-03-10 21:38:54 +08:00
62f50d267f Make sure sub-package is build successful in FCC too 2017-03-10 18:45:34 +08:00
Jimmy Berry
70a3d7074a osc-staging: extend --message to unselect which will ignore first. 2017-03-10 01:31:24 -06:00
Jimmy Berry
30441638e8 osc-staging: utilize RequestFinder in ignore command. 2017-03-10 01:31:15 -06:00
Jimmy Berry
1393c61c71 devel-project: provide --remind and --repeat-age options. 2017-03-10 00:29:22 -06:00
Jimmy Berry
47459ccb29 CommentAPI: provide comment_find() and add_marker() from ReviewBot. 2017-03-10 00:09:27 -06:00
Jimmy Berry
1e58ea8bbe devel-project: print age of request and filter via --min-age. 2017-03-09 23:56:14 -06:00
Jimmy Berry
ebc9543d7b devel-project: add reviews subcommand. 2017-03-09 23:41:32 -06:00
Jimmy Berry
bb9c77ab1b devel-project: add requests subcommand. 2017-03-09 23:41:16 -06:00
Jimmy Berry
74badbf075 devel-project: import http_GET and makeurl. 2017-03-09 23:40:41 -06:00
Jimmy Berry
d1c33026df devel-project: provide devel_projects_load(). 2017-03-09 23:40:31 -06:00
Jimmy Berry
98bf596937 devel-project: check if list changed before saving. 2017-03-09 18:17:06 -06:00
Jimmy Berry
2f59755ec6 devel-project: refactor structure to allow subcommands. 2017-03-09 18:15:31 -06:00
Jimmy Berry
cf8413b3ce devel-project: rename from devel-project-list. 2017-03-09 18:14:19 -06:00
Jimmy Berry
b01a19cd17 osc-staging: allow frozenage to be invoked with no arguments. 2017-03-09 16:11:26 -06:00
Jimmy Berry
13b7ae9d8a osc-staging: provide rebuild command.
Often packages will fail to build after becoming stuck or other false
negative cases and need to have a rebuild triggered. The process can be
tedious if several packages failed in various stages.
2017-03-08 16:17:31 -06:00