Stephan Kulow
700cf1e41a
Fix repository_path_expand to also work in Factory stagings
...
I got the algorithm wrong - it overwrites repositories only when used
in the same path, not by recursion
2019-05-12 22:35:59 +02:00
Stephan Kulow
97e7d011b8
Merge pull request #2003 from coolo/fix_si
...
Fix string/bytes confusion with installcheck
2019-05-11 16:53:12 +02:00
Stephan Kulow
7ee9614ac2
Merge pull request #2002 from coolo/repository_fix
...
Fix and test repository_path_expand on SLE12-SP5
2019-05-11 16:49:16 +02:00
Stephan Kulow
9f9e6b75f3
Fix string/bytes confusion with installcheck
2019-05-11 16:40:27 +02:00
Stephan Kulow
4db9df6aec
Fix and test repository_path_expand on SLE12-SP5
...
The way OBS collapses repositories is different to what we did
2019-05-11 16:34:31 +02:00
Stephan Kulow
d57ba61df5
Remove more references to vcr
...
I tried to replace the Mocking of functions with httpretty, but
unfortunately httpretty replaces all other API calls with 404s then.
What we'd need is a library sniping out single requests - possibly
by mocking the http_GET function, but that's tricky as well with
caching already overwriting it
2019-05-11 10:26:35 +02:00
Stephan Kulow
925032e0f9
Redo select tests to test package with multiple spec files
2019-05-06 22:38:57 +02:00
Stephan Kulow
aa70305aa2
Fix delete requests with multiple spec files
...
First gather the links and then wipe - or it will always be empty
2019-05-06 21:36:18 +02:00
Stephan Kulow
00a0bdc982
freeze: Stop ignoring inter project links
...
We link all packages by their srcmd5 - and only fix the links on
selecting new packages
2019-05-06 21:36:18 +02:00
Stephan Kulow
2765089077
freeze: Remove code handling Test-DVD
...
We no longer have products using that
2019-05-06 21:36:18 +02:00
Stephan Kulow
bb23be210b
For consistency reasons always link the sub packages we're selecting
...
So far we skipped links between packages in the same ring because we've
frozen a _link pointing from one to the other, but this does not work
with default OBS and creates quite some problems also in adi projects
where it's trying to be smart.
Now simplify this a lot by simply linking it in any case
2019-05-06 21:36:18 +02:00
Stephan Kulow
58d6d7ca16
Python3 fixes
2019-05-04 15:44:44 +02:00
Stephan Kulow
8a7b65d505
Remove fake OBS in favor of using generated test data
2019-05-04 15:44:39 +02:00
Stephan Kulow
5f3dcca267
Fix OBSLock to always write full ISO format
...
If the microseconds are 0, isoformat won't output any, but our _parse
function expects them. python 3.7 has isoformat/fromisoformat, which
would fix it, but we can't take it atm
2019-05-04 15:44:39 +02:00
Stephan Kulow
0693c88977
Fix crash on staging project without flag section
2019-05-04 15:44:39 +02:00
Stephan Kulow
6508d76633
Merge pull request #1976 from jberry-suse/origin-manager-revision-state-none-origin
...
origin-manager: handle no origin when determining revision state.
2019-05-03 06:45:56 +02:00
Jimmy Berry
e66fa4c404
osclib/conf: convert all non-string defaults to string equivalents.
...
Python3 osc config parsing explodes on non-strings.
2019-05-02 14:55:12 -05:00
Jimmy Berry
e20725a482
osclib/origin: handle origin_info when None.
2019-05-02 14:44:14 -05:00
Jimmy Berry
cbd3e446e6
osclib/origin: origin_revision_state(): do not find origin when None.
...
Previously, there was no way to distinguish between a None origin and no
origin_info passed in. Using False as default allows the two cases to be
distinguished.
2019-05-02 14:43:37 -05:00
Stephan Kulow
9cdbc9ac8d
Merge pull request #1971 from jberry-suse/origin-manager-webui
...
origin-manager: provide web interface to aid in maintenance and decision making
2019-05-02 08:37:24 +02:00
Stephan Kulow
09332504d4
Merge pull request #1968 from coolo/python3_cherry_picks
...
Python3 cherry picks
2019-05-02 07:59:22 +02:00
Jimmy Berry
4be2b335d8
osclib/origin: add origin_history().
2019-05-01 15:49:21 -05:00
Jimmy Berry
4bae7078b8
osclib/origin: add origin_potentials().
2019-05-01 15:49:21 -05:00
Jimmy Berry
f6b9a9dd87
osclib/origin: provide origin_revision_state().
2019-05-01 15:49:21 -05:00
Jimmy Berry
860fcd0a60
osclib/core: review_find_last(): compare by_user instead of who.
2019-05-01 15:49:21 -05:00
Jimmy Berry
34c99b699d
osclib/core: provide project_attribute_list().
2019-05-01 15:49:21 -05:00
Jimmy Berry
b01390ea76
osclib/core: provide package_version().
2019-05-01 15:49:21 -05:00
Jimmy Berry
11921d78ba
osclib/pkgcache: drop as no more uses.
...
No longer works in python3.
2019-04-30 08:39:18 -05:00
Stephan Kulow
691fa83616
Convert iterator to list to avoid RuntimeError
...
dictionary changed size during iteration
2019-04-30 14:28:55 +02:00
Stephan Kulow
8bf2602baa
family_prior: Cast the filtered list to a list
2019-04-30 14:28:49 +02:00
082d37e36f
Improve error msg that the project was not frozen
...
This change is trying to provide user more information
in case that he already froze project but date of last
freeze was not updated, since there were no changes for
last MAX_FROZEN_AGE days.
* Use osclib.freeze_command.MAX_FROZEN_AGE constant
* Avoid explicit proposal of --no-freeze bug suggest alternative
2019-04-12 13:48:51 +02:00
Jimmy Berry
5f0f3f498a
osc-staging: exclude NonFree requests from staging proposals.
...
- NonFree delete requests are never staged.
- NonFree submit requests are handled by adi command.
2019-03-28 09:54:24 -05:00
Stephan Kulow
9a259088c8
Merge pull request #1918 from coolo/dont_add_repochecker_leap
...
Don't add repo-checker from factory-auto in Leap
2019-03-24 07:32:31 +01:00
Stephan Kulow
75bc903497
Don't add repo-checker from factory-auto in Leap
...
This leaves repo checker for incidents
2019-03-23 19:14:20 +01:00
Jimmy Berry
68a4933235
osclib/origin: policy_input_calculate(): s/inital/initial/.
2019-03-22 10:46:30 -05:00
Jimmy Berry
b6866e6456
osclib/origin: policy_input_evaluate(): only add additional review if not already set.
...
This allows for more cleanly adding additional_reviews to include fallback
review where it may already be added for a more specific reason.
2019-03-20 19:01:32 -05:00
Jimmy Berry
07ecf7b250
osclib/core: package_source_hash(): handle non-existant revision.
2019-03-20 19:01:32 -05:00
Stephan Kulow
e48e0b4750
Fix compat with pyYaml 5.1
...
the changed the output style default from None to False
Fixes #1908
2019-03-20 08:08:26 +01:00
Stephan Kulow
bb48831eca
Merge pull request #1900 from jberry-suse/origin-manager-pending-hide-reviews
...
osclib/origin: policy_input_evaluate(): do not list disallowed reviews.
2019-03-20 06:33:41 +01:00
Stephan Kulow
a13930afd4
Merge pull request #1906 from jberry-suse/yaml-safe-load
...
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-20 06:32:48 +01:00
Jimmy Berry
78bfdb872f
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-19 17:13:11 -05:00
Jimmy Berry
14b29bb221
osclib/origin: policy_input_evaluate(): do not list disallowed reviews.
...
In order to reduce comments, information that changes such as reviews
must be excluded to avoid having to update a comment or be left in an
inaccurate state.
2019-03-12 08:45:55 -05:00
Stephan Kulow
ae5ccf31d4
Fix adi command if there are actually checks
2019-03-08 21:55:09 +01:00
Stephan Kulow
854aefad8a
No longer add repo checker as reviewer for Factory
2019-03-08 13:42:34 +01:00
Stephan Kulow
44cbc3a14d
Merge pull request #1890 from coolo/add_required_checks
...
Add all checks from staging-required-checks-adi to main repo of adi p…
2019-03-08 07:44:34 +01:00
Stephan Kulow
578d0a7ddc
Block adi command from accepting if checks aren't succeeding
2019-03-07 20:03:06 +01:00
Stephan Kulow
d40e1b0722
Add all checks from staging-required-checks-adi to main repo of adi projects
...
For Factory I want to switch away from repo checker reviews, but a required
check on project level. So first step: make it required for adi projects.
2019-03-07 17:07:39 +01:00
Jimmy Berry
c38c01a9d4
osclib/core: package_list_without_links(): ignore meta packages (00 prefix).
2019-03-06 15:49:50 -06:00
Jimmy Berry
d033b8cec6
osclib/origin: provide __str__ method that indicates pending.
2019-03-06 15:49:50 -06:00
Jimmy Berry
341396b432
osclib/origin: config_resolve_create_family(): force origin_expanded to string.
...
Drops the lxml string element reference which is cumbersome when printing.
2019-03-06 15:49:50 -06:00