833 Commits

Author SHA1 Message Date
2d13b11783 adi: place :NonFree requests in separate adi with :NonFree path. 2018-01-31 01:34:00 -06:00
Jimmy Berry
b1fd3ad49a osclib/core: request_age() return delta and handle Request object.
In #1370 devel-project.py was broken since it need delta.days and uses
Request class.
2018-01-29 03:14:24 -06:00
Jimmy Berry
574cfe8e12
Merge pull request #1370 from jberry-suse/status
status: provide initial implementation for checking bot status and request_age() refactor.
2018-01-26 14:49:32 -06:00
Jimmy Berry
b84beb6958 osclib/request_splitter: utilize osclib.core.request_age(). 2018-01-25 21:27:29 -06:00
Jimmy Berry
f11daf3d62 osclib/core: provide request_age(). 2018-01-25 21:26:27 -06:00
Jimmy Berry
843cc016e0 osclib/accept: print todo from staging config after completion. 2018-01-25 11:08:47 -06:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
Jimmy Berry
0e41747c4e repo_checker: package_comments(): provide option to post on target package.
For SLE where devel projects are not utilized post on the target packages
directly. Posting on the devel projects might make sense, but would pose
the risk of exposing IBS information on OBS prematurely.
2018-01-19 08:50:32 -06:00
Ludwig Nussel
38fd846855
Merge pull request #1351 from jberry-suse/devel_project-shared
Replace all get_devel_project() implementations with common one in osclib.core.
2018-01-19 13:42:56 +01:00
Ludwig Nussel
809f4d2fb3
Merge pull request #1294 from lnussel/cleanup_rings
cleanup_rings: first attempt to fix for multibuild
2018-01-19 13:40:27 +01:00
Jimmy Berry
5e73e9498f osclib/request_splitter: replace devel_project_get() with core.devel_project_fallback(). 2018-01-17 18:12:42 -06:00
Jimmy Berry
62d432c7c8 osclib/stagingapi: replace get_devel_project() with core.devel_project_get().
This implementation does not handle the 404 correctly like ReviewBot did
originally.
2018-01-17 18:11:37 -06:00
Jimmy Berry
ce4cc65690 osclib/core: devel_project_fallback(): do not fallback if openSUSE:Factory. 2018-01-17 18:05:17 -06:00
Jimmy Berry
208af41f2d osclib/core: provide devel_project_fallback() based on request_splitter. 2018-01-17 18:04:47 -06:00
Jimmy Berry
eeffffe7de osclib/core: provide devel_project_get() adapted from ReviewBot.
Of the various implementations ReviewBot has the most functional and
correct version. Cleaned up a bit for readability.
2018-01-17 18:04:17 -06:00
Ludwig Nussel
a825608376 pkglistgen: delete kiwis by scope
Replace config option pkglistgen-delete-kiwis by
pkglistgen-delete-kiwis-$scope. The main project needs all kiwis while
in Rings and Stagings we don't want the ftp tree for example.
2018-01-17 14:33:36 +01:00
Ludwig Nussel
ad449c6d2c
Merge pull request #1344 from jberry-suse/request_splitter-special-config
osclib/request_splitter: allow special packages to be empty.
2018-01-15 14:57:45 +01:00
Jimmy Berry
55191625e8 osclib/request_splitter: rework quick strategy to handle Leap 15.0 workflow.
The addition of factory-auto and repo-checker reviews need to be allowed
since they are always present and do not constitute a non-quick review.
In an attempt to future proof the strategy the allowed review groups are
taken from the project configuration and repo-checker from config.
2018-01-12 16:52:49 -06:00
Jimmy Berry
3d43985d19 osclib/request_splitter: allow special packages to be empty. 2018-01-12 15:40:56 -06:00
Ludwig Nussel
67f2773e76 pkglistgen: typo locals vs locales 2018-01-10 17:19:15 +01:00
Jimmy Berry
09a98cddac
Merge pull request #1330 from jberry-suse/pkglistgen-sle
osclib/conf: intial SLE configuration for pkglistgen.
2018-01-09 16:26:24 -06:00
Jimmy Berry
b41bbd1777
Merge pull request #1328 from jberry-suse/pkglistgen-migrate-followup
pkglistgen: migrate bash scripts to python followup
2018-01-09 16:26:03 -06:00
Ludwig Nussel
ad5f69d0ee cleanup_rings: Fix for 000product 2018-01-09 12:57:14 +01:00
Jimmy Berry
e915dc2780 osclib/conf: intial SLE configuration for pkglistgen. 2018-01-08 23:36:53 -06:00
Jimmy Berry
c06050ab89 osclib/conf: correct Leap 15.0 default locales-from from - to . product. 2018-01-08 22:43:16 -06:00
Jimmy Berry
61c83500d3 osclib/conf: allow devel projects to utilize tools that require conf. 2018-01-08 21:22:04 -06:00
Jimmy Berry
865750258c osclib/conf: order config defaults by priority.
Ensures that less specific patterns do not overtake more specific patterns
by allowing for priority based ordering.
2018-01-08 21:21:51 -06:00
Ludwig Nussel
7eaed349b3 Revert "osclib/conf: allow devel projects to utilize tools that require conf."
Breaks SLE

This reverts commit 562743e906ca9fa1bc3beada77f3342f3841482b.
2018-01-05 09:42:32 +01:00
b0cd970dbe
Merge pull request #1321 from jberry-suse/check_source-gnome-fix
osclib/conf: allow devel projects to utilize tools that require conf.
2018-01-04 12:26:42 +01:00
Jimmy Berry
fa991556e3 osclib/stagingapi: detect baselibs.conf in adi package and ensure archs enabled.
Otherwise, the baselibs are not built and repo-checker cannot verify the
setup.
2018-01-03 20:09:28 -06:00
Jimmy Berry
562743e906 osclib/conf: allow devel projects to utilize tools that require conf. 2018-01-03 19:42:29 -06:00
Jimmy Berry
d68eff6293 osclib/stagingapi: load_file_content(): provide optional revision param. 2018-01-03 18:32:35 -06:00
Jimmy Berry
59c838f238 osclib/stagingapi: load_file_content(): convert to makeurl() query builder. 2018-01-03 18:32:09 -06:00
Ludwig Nussel
98a659c3fa
Merge pull request #1316 from jberry-suse/repo-checker-info_extra_identical
repo_checker: only update comment if published or message changed.
2018-01-02 11:39:25 +01:00
Ludwig Nussel
fcbe87135e
Merge pull request #1314 from lnussel/d
check_duplicate_binaries: better yaml
2018-01-02 11:38:10 +01:00
Jimmy Berry
1bd5b99028 ReviewBot: comment_write(): provide info_extra_identical parameter.
Allows for excluding info_extra from comment_find() and compares messages
after marker has been removed.
2017-12-29 18:32:43 -06:00
Ludwig Nussel
ced6093593 check_duplicate_binaries: better yaml 2017-12-22 13:38:45 +01:00
Jimmy Berry
5e9392f4a0 pkglistgen: migrate bash scripts to python. 2017-12-21 01:05:55 -06:00
Jimmy Berry
facb6fecf6 osclib/stagingapi: provide is_staging_bootstrapped() from request_splitter. 2017-12-21 00:31:01 -06:00
50f04f68e3 freeze_command: use result call to get proper multibuild package information for aggregatepac 2017-12-19 20:22:12 +08:00
Ludwig Nussel
5cff039fd5 cleanup_rings: first attempt to fix for multibuild 2017-12-08 15:44:04 +01:00
Jimmy Berry
b2861ae31a osclib/cycles: only cache target project builddepinfo to avoid excessive cache.
Keep on disk using caching mechanism to avoid keep entire graphs in memory
and expiring via existing code.
2017-11-30 16:30:16 -06:00
Jimmy Berry
57d9d2986b osclib/cycles: drop _get_builddepinfo and _get_builddepinfo_cycles since unused. 2017-11-30 13:30:55 -06:00
0a45aba664
Merge pull request #1234 from nilxam/remove_2nd_specfile_ring
accept_command: remove the ring package if it is 2nd specfile is removed
2017-11-02 14:57:41 +08:00
ab21d5f0e1
Merge pull request #1233 from nilxam/force_must_be_force
accept_command: force to accept the staging if --force parameter is given
2017-11-02 14:57:26 +08:00
Jimmy Berry
31cf49a09e repo_checker: store and compare build hash to skip more aggressively. 2017-10-31 18:51:38 -05:00
b9bc629a4d accept_command: remove the ring package if it is 2nd specfile is removed 2017-10-31 19:46:53 +08:00
6ffe02ce94 accept_command: force to accept the staging if --force parameter is given
If --force parameter is given, it must to force to change the request state,
otherwise --force does not work if still had pending review.
2017-10-31 13:27:29 +08:00
Jimmy Berry
e39a51821e osclib/memoize: include first argument, sometimes instance, in cache key.
Otherwise, multiple StagingAPI instances which are unique per project
will share caches for short-hand projects. For example:

StagingAPI.project_status('adi:1') called on two different instances will
share a cache.
2017-10-25 17:43:17 -05:00
Jimmy Berry
7f5fbd5b4b osclib/cache: allow ttl of 0 to prevent caching. 2017-10-24 17:55:32 -05:00