Stephan Kulow
b7c9d1a79d
SUSE: wants to build test dvds on 'local' workers
2017-08-29 08:45:00 +02:00
48885df63e
stagingapi: Fix typo in _frozenlinks
2017-08-25 18:51:18 +08:00
Jimmy Berry
bf5ae3d366
Merge pull request #1093 from jberry-suse/repo_checker-ignore-from-staging-and-dvd
...
repo_checker: rework to handle multiple stagings per group and proper repo layering.
2017-08-24 22:25:09 -05:00
Jimmy Berry
a8919a516a
cycle: cycles() rename group parameter to staging to better reflect usage.
2017-08-24 21:48:00 -05:00
Jimmy Berry
ffb81c445e
core: add memoize(session=True) to package_binary_list().
2017-08-24 21:47:09 -05:00
Jimmy Berry
cfc21469fd
stagingapi: provide staging_walk() to cleanly handle :DVD subproject.
2017-08-24 21:47:05 -05:00
Jimmy Berry
acced3a66c
osclib/conf: set staging-dvd-archs to empty for SUSE:* projects.
...
Currently none of the SUSE:* projects have :DVD subprojects and there is
no way to know short of checking if the project exists. This allows for
len(staging-dvd-archs) to be used to know.
2017-08-24 21:45:11 -05:00
Jimmy Berry
fc1b0dc124
Merge pull request #1090 from jberry-suse/cycle-drop-ignore
...
cycle: remove ugly ignore code from _get_builddepinfo_graph().
2017-08-24 20:51:01 -05:00
Jimmy Berry
1862f76891
Merge pull request #1089 from jberry-suse/commentapi-truncate
...
commentapi: provide truncate() and apply during add_comment() (and use in repo_checker).
2017-08-24 20:50:16 -05:00
Ludwig Nussel
7bbd005248
Merge pull request #1097 from lnussel/master
...
Use configured staging group for adi
2017-08-24 13:14:37 +02:00
Ludwig Nussel
adeb4c4dfe
Merge pull request #1080 from nilxam/freeze_adi
...
Freeze Cmd: Implement freezing adi staging project
2017-08-24 12:54:43 +02:00
Ludwig Nussel
8cbb51891d
Use configured staging group for adi
2017-08-24 12:01:13 +02:00
Jimmy Berry
8ec224169c
cycle: remove ugly ignore code from _get_builddepinfo_graph().
...
With the new repo_checker utilizing the staging process none of this
should be necessary.
2017-08-23 16:02:48 -05:00
Jimmy Berry
bf2832aaf2
commentapi: provide truncate() and apply during add_comment().
2017-08-23 15:59:22 -05:00
Jimmy Berry
7502d6ab74
Merge pull request #1082 from jberry-suse/stagingapi-update_status_comments-no-blank
...
stagingapi: avoid making an empty package-diff comment.
2017-08-23 15:05:47 -05:00
773ce3904b
Freeze Cmd: Implement freezing adi staging project
...
Since we have introduced the source project expand function in adi staging
project, a new function to freeze a adi staging project is needed as well.
2017-08-23 17:09:42 +08:00
Jimmy Berry
2873a27ef1
Merge pull request #1075 from jberry-suse/owner_fallback-startswith
...
core.owner_fallback(): check if startswith() instead of equal.
2017-08-22 17:02:20 -05:00
Jimmy Berry
65d0de2eca
stagingapi: avoid making an empty package-diff comment.
2017-08-22 15:33:03 -05:00
29939067bf
stagingapi: Ensure the links is valid before processing
...
Make sure the links of package in Rings must are valid before processing,
otherwise someone had package linked to the Ring package in somewhere else than
Rings will breaks select/delete/rm_to_prj, ie. _link will be created. Therefore,
only return the candidate if it has proper linked from another ring and have
different package name.
2017-08-22 04:52:30 +08:00
Jimmy Berry
702f6a6243
core.owner_fallback(): check if startswith() instead of equal.
...
This allows for cases where the requested project was something like
openSUSE:Leap:42.3:Update and the returned project was openSUSE:Leap:42.3.
With this change the fallback will be triggered and the global maintainer
will then be used.
2017-08-18 16:03:04 -05:00
14f21b0f0c
suppkg_rebuild: Clean up supportpkg list also
...
Have to clean up supportpkg list also during accepting staging project,
otherwise suppkg_rebuild can not handle it correct in case next time staged
package in the same staging project had the same supportpkg list.
2017-08-18 18:54:32 +08:00
Ludwig Nussel
a64d27c5a0
Merge pull request #993 from lnussel/dups
...
Speed up duplicate binaries check
2017-08-07 14:18:09 +02:00
Stephan Kulow
2c08e40745
Merge pull request #1045 from coolo/sle15
...
The first steps toward sle15 :)
2017-08-07 11:40:53 +02:00
Stephan Kulow
abe7ea59b8
The first steps toward sle15 :)
2017-08-07 11:40:03 +02:00
Jimmy Berry
0f4abf058b
osclib/core: provide package_binary_list() to efficiently obtain binary to package map.
2017-08-04 13:17:48 -05:00
Jimmy Berry
5c364b7967
osclib/core: add package to BinaryParsed tuple.
2017-08-04 13:17:44 -05:00
Jimmy Berry
5e120a6ac4
osclib/core: provide BINARY_REGEX named group pattern and utilize.
2017-08-04 13:17:18 -05:00
Ludwig Nussel
2bbbd6f465
Speed up duplicate binaries check
...
We can leverage an api call that returns all binaries.
2017-08-04 14:45:46 +02:00
Jimmy Berry
e8c6f2844e
osclib/cycle: remove extra leading slash.
2017-08-02 10:35:56 -05:00
Jimmy Berry
85dbc57f12
stagingapi: provide dashboard_content_{load,save,ensure}() and utilize.
2017-07-27 23:52:58 -05:00
Jimmy Berry
5b6ad33773
cache: unquote() all URLs before processing to ensure correctness.
...
It seems osc.core and similar generate both quoted and unquoted URLs that
are cached separately. Additionally, urlopen() handles quoted paths
differently from os.path.*() methods which can create issues for quoted
projects.
2017-07-18 23:51:22 -05:00
Jimmy Berry
af83befff3
Drop everything related to old osc-check_repo.py.
2017-07-12 15:31:30 -05:00
Jimmy Berry
4fafc29fa3
cycle: rework to compare two projects instead of a project and request list.
...
This removes the need to detect sub-packages and significantly simplifies
the code while providing the same result.
2017-07-12 15:31:30 -05:00
Jimmy Berry
03a8666fa4
core: adapt checkrepo.get_package_list_from_repository() as binary_list().
...
- utilize osc.core.get_binarylist() instead of building query manually
- return a namedtuple for increased readability
2017-07-12 15:31:30 -05:00
Jimmy Berry
c2e950eebd
core: provide request_staged() and request_when_staged().
...
Useful for determining if a request has an open staging project review
which makes it likely that it has been staged and avoids the need to
review each staging project.
2017-07-12 15:31:30 -05:00
Jimmy Berry
d4bea1f28d
core: owner_fallback(): rework to be consistent with other functions.
2017-07-12 15:31:30 -05:00
Jimmy Berry
cf1c6f5db3
core: provide depends_on().
2017-07-12 15:31:30 -05:00
Jimmy Berry
84fc6fdc61
core: maintainers_get() provide option to get project maintainers.
2017-07-12 15:31:30 -05:00
Jimmy Berry
7c6f67979a
core: extract maintainers_get(), owner_fallback() from MaintenanceChecker.
...
Allows the code to be properly shared between checkrepo and
check_maintenance_incidents as a todo suggests. Given that the majority of
similar cases for code sharing are extension of osc.core it seems to make
sense to place them in osclib.core.
2017-07-12 15:31:30 -05:00
Jimmy Berry
ad81ff98f9
checkrepo: wait for accepts for all archs before final review accept.
2017-07-12 15:31:30 -05:00
Jimmy Berry
4c6f84d842
checkrepo: convert remaining messages to use target_archs().
2017-07-12 15:31:30 -05:00
Jimmy Berry
64b762956f
checkrepo: _whatdependson() and _builddepinfo(): utilize target_archs().
2017-07-12 15:31:30 -05:00
Jimmy Berry
f0a559947c
checkrepo: is_buildsuccess(): utilize target_archs().
2017-07-12 15:31:30 -05:00
Jimmy Berry
d4639ea0e2
checkrepo: _toignore(): compress into arch loop.
2017-07-12 15:31:30 -05:00
Jimmy Berry
844cf64b6d
checkrepo: repositories_to_check(): utilize target_archs().
...
Drastically simplify the logic while keeping the core the same and
utilizing archs from project instead of hard-coded.
2017-07-12 15:31:30 -05:00
Jimmy Berry
35e03460bf
checkrepo: utilize the devel project for requests from Factory.
...
Assuming requests are forwarded to Leap after being accepted into Factory
the devel project can be reviewed just as when the requests were submitted
to Factory.
2017-07-12 15:31:30 -05:00
Jimmy Berry
e29f7e060b
checkrepo: provide target_archs() method to determine relevant archs.
...
The default behavior is to return the archs for which the target project
is built against, but can be used to check any project (like stagings).
2017-07-12 15:31:30 -05:00
Jimmy Berry
13dba97ed7
checkrepo: do not decline for disabled builds.
...
This behavior is inconsistent in that no builds is ignored, but builds that
are disabled results in a decline. In order to allow for the request to be
evaluated in staging it should not be declined so early.
2017-07-12 15:31:30 -05:00
Jimmy Berry
0572d7482c
checkrepo: some spelling and grammar fixes.
2017-07-12 15:31:30 -05:00
Ludwig Nussel
b9c36d3f74
Merge pull request #994 from lnussel/adi
...
Ignore failures to delete adi's
2017-07-11 17:47:17 +02:00