26 Commits

Author SHA1 Message Date
Jimmy Berry
c74e40ba70 osclib/cycle: remove need for StagingApi instance in favor of apiurl. 2018-10-18 16:20:30 -05:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
a57fe7ba4e repo_checker: complete rework to handle arbitrary repos and maintenance.
The rework includes a variety of changes:

- multiple actions per request supported
- automatically detecting "main" repo (useful for devel/home projects)
- full layered repository path state and published taken into account
- arbitrary repository name (ie. not just standard) supported
- intermediate results (used for staging) no longer accept (even if no
  problems detected) until all layers are published
- no longer tied to staging process, but still supports staging workflow
- robust handling of repository state changes during review cycle
- multiple repositories supported for project_only output (ie. file name)
- project_only run supports any OBS project instead of only products
- maintenance_release requests supported with alternate staging approach
2018-08-21 20:49:26 -05: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
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
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
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
e8c6f2844e osclib/cycle: remove extra leading slash. 2017-08-02 10:35:56 -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
Alberto Planas
be4994bd84 Add --skipcycle option to skip the cycle check manually. 2015-03-05 12:44:57 +01:00
Alberto Planas
6aad8caeb2 Fix cycle detector for new packages. 2015-02-19 14:14:49 +01:00
Alberto Planas
c9d1e06ca8 Refactor configuration parameters into configuration file. 2015-02-19 11:39:05 +01:00
Alberto Planas
b867fb1f23 Detect if a cycle provides a new package, if not, ignore the cycle. 2015-02-12 11:27:39 +01:00
Alberto Planas
e50fb7e284 The cycle detector ignore updated packages. 2014-11-04 11:09:40 +01:00
0537cd1003 Fix the check_repo to takes care of shadow RQ. 2014-08-19 16:49:25 +02:00
29b8bcca6b Makes staging pluging Factory agnostic. 2014-08-07 12:58:47 +02:00
8f31dbe7e9 Change the way to recover goodrepos in the cycle detector. 2014-07-24 11:26:54 +02:00
Stephan Kulow
3b14b96a66 support delete requests
we track the target package to download the toignore tracking
2014-07-17 11:36:05 +02:00
4329ceff8b Improve pasteability. 2014-07-04 14:21:43 +02:00
da8dd705b0 A new way to make plans. 2014-07-01 19:55:17 +02:00
550e98d6c2 Refactor of check_one_request into checkrepo module. 2014-06-12 18:26:09 +02:00
17a7140ab0 Fix a bug in the yield value. 2014-06-05 17:46:38 +02:00
4e8173179b Return only cycles. 2014-06-04 11:04:37 +02:00
e96f85dc38 More refactoring:
- Extract all the graph and cycle logic.
- Extract memoize.
- Start with CheckRepo.
2014-06-04 11:04:37 +02:00