806 Commits

Author SHA1 Message Date
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
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
Jimmy Berry
f8225a3d48 osclib/conf: prefer already parsed conffile over OSC_CONFIG env variable.
This is consistent with expected behavior when using:
  osc.core.conf.get_config(override_conffile...)

Also removes the need to change the environment in OBS() which removes a
leak.
2017-10-23 23:03:24 -05:00
d1c4801578 Another set of low-noise flake8 cleanups 2017-10-20 20:46:44 +02:00
d04bc4fce1 Import all dependencies 2017-10-20 01:01:17 +02:00
1cec490d54 White space / consistent usage of spaces / indentation of 4 fixes 2017-10-20 00:58:05 +02:00
Jimmy Berry
a890767ddb Merge pull request #1200 from jberry-suse/splitter-special
osclib/request_splitter: provide splitter-special-packages config variable.
2017-10-18 20:53:46 -05:00
Jimmy Berry
e8c2799156 osclib/request_splitter: reduce default list of special packages. 2017-10-16 16:48:45 -05:00
Jimmy Berry
c9743b5df0 osclib/request_splitter: provide splitter-special-packages config variable. 2017-10-16 16:48:17 -05:00
3cf49d9556 Python 2.6+ / 3.x style except clauses
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
43f2eb0142 Merge pull request #1190 from jberry-suse/check_source-config
check_source: move all relevant flags to config to work properly without flags.
2017-10-13 16:51:30 +08:00
Jimmy Berry
cbd61d0f61 osclib/freeze: clear staging config during freeze as well. 2017-10-12 17:46:09 -05:00
Jimmy Berry
6eb4df3fba osclib/stagingapi: set_prj_pseudometa(): only change if different. 2017-10-12 17:46:09 -05:00
Jimmy Berry
c0eaaf4268 osclib: provide ConfigCommand and expose via osc-staging. 2017-10-12 17:46:01 -05:00
Jimmy Berry
37d397fb89 check_source: move all relevant flags to config to work properly without flags. 2017-10-11 22:31:58 -05:00
Jimmy Berry
336a0e54ad osclib/stagingapi: get_staging_projects(): provide include_dvd option. 2017-10-11 17:38:11 -05:00
Ludwig Nussel
239c6314c7 staging: add exceptions for new 000* product files 2017-10-10 10:46:54 +02:00
Jimmy Berry
642f0536a1 ReviewBot: comment_write(): pre-truncate for correct comparison.
Otherwise, long comments that end up being truncated are re-posted.
2017-10-05 17:40:26 -05:00
a871cd2d25 conf: given default value to main_repo 2017-10-02 20:49:41 +08:00
078949df7f conf: given default value to delreq_review 2017-10-02 20:14:31 +08:00
a3061818c1 Merge pull request #1136 from nilxam/virtual_accept
Implements virtually accept the delete request
2017-10-02 17:42:17 +08:00
5611411a6f virtually accept: virtually accept the delete request
Implementation virtually accept the delete request, the delete request will be
added another delreq-review review and also wipes the binary in the main
project, the backend will sync 'nothing' to ToTest and Snapshot after all. Once
all repository has no binary then remove the package in real.
2017-10-02 17:15:55 +08:00
9f34c26540 adi_command: do not checking adi staging status if there is no selected_requests
Wihtout selected_requests then that adi staging project is an empty project,
adi command should clean it up rather than go through the logic to check the
project status. Since we have introduced a kind of frozenlinks adi staging,
the project status might be build broken or so but it doesn't have any request
staged in that staging actually, those kind of projects must be deleted.
2017-09-26 17:06:25 +08:00
Jimmy Berry
4011159df4 Merge pull request #1145 from jberry-suse/adi-delete-project-force
osclib/adi: include force=True when invoking delete_project().
2017-09-20 21:42:18 -05:00
Jimmy Berry
8d6251c6f5 osclib/adi: include force=True when invoking delete_project().
If users build against an adi project OBS will refuse to delete, but in
that case breaking other projects is fine as the branches should only be
used to work on fixes seen in adi stagings.

See #1142 for an example, details, and discussion.
2017-09-20 08:05:17 -05:00
Jimmy Berry
1a969c433e osclib/stagingapi: accept_status_comment(): avoid making comments for empty projects. 2017-09-19 15:09:04 -05:00
035c367b86 Merge pull request #1139 from DimStar77/no-ppc
Disable ppc64le for now in Tumbleweed stagings
2017-09-18 17:44:21 +08:00
fc679683ec rm_from_prj: always use the origin project path to set_review()
The variable project might got changed through
map_ring_package_to_subject(), according to release process, we have to
given the origin project path to set_review() always.
2017-09-16 18:59:07 +08:00
f10defda8c
Disable ppc64le for now in Tumbleweed stagings 2017-09-15 22:50:48 +02:00