1068 Commits

Author SHA1 Message Date
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
Jimmy Berry
0c1fa52c54 osclib/util: mail_send(): allow a from_key of None to indicate osc user. 2019-03-06 15:49:50 -06:00
Jimmy Berry
4dbcc5bc40 osclib/util: mail_send() utilize Config.get() pattern. 2019-03-06 15:49:50 -06:00
Jimmy Berry
58bffc3e01 osclib/util: mail_send(): use to as config key if no at sign. 2019-03-06 15:49:50 -06:00
Jimmy Berry
a8319e6664 origin-manager: support ReviewBot override comment using origin workaround. 2019-02-27 16:03:05 -06:00
Jimmy Berry
eb3acd80f6 osclib/origin: provide origin management functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
44f5ab7234 osclib/util: project_version(): return 0 instead of None for invalid project.
This allows for lists with invalid projects to still be sorted which is
generally desired since other means validate the results.
2019-02-15 14:16:23 -06:00
Jimmy Berry
e686cb19cc osclib/util: provide project_list_family_prior_pattern(). 2019-02-15 14:16:23 -06:00
Jimmy Berry
5f15314f33 osclib/util: project_list_family_prior(): provide include_updates option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
087c1b0b8b osclib/util: project_list_family(): cache via memoize. 2019-02-15 14:16:23 -06:00
Jimmy Berry
f13899e393 osclib/util: project_list_family(): provide include_update option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
2ca2f4e875 osclib/util: project_list_family(): handle :NonFree suffix. 2019-02-15 14:16:23 -06:00
Jimmy Berry
8196c34fbe osclib/cache: handle repetative package_source_hash_history() calls. 2019-02-15 14:16:23 -06:00
Jimmy Berry
830bce9944 osclib/conf: properly load config for innerconnect projects. 2019-02-15 14:16:23 -06:00
Jimmy Berry
74f9b3ca16 osclib/core: provide request_remote_identifier() for printable identifier. 2019-02-15 14:16:23 -06:00
Jimmy Berry
bbf75db194 osclib/core: provide issue_tracker*() functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
1073580282 osclib/core: provide review_*() functions for summarizing review state. 2019-02-15 14:16:23 -06:00
Jimmy Berry
eb5c137897 osclib/core: provide project_remote_*() functions for innerconnect projects. 2019-02-15 14:16:23 -06:00
Jimmy Berry
cc5e64d50b osclib/core: provide package_source_hash*() functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
e13b5831d3 osclib/core: provide entity_source_link(). 2019-02-15 14:16:23 -06:00
Jimmy Berry
45d29888a9 osclib/conf: add repo-checker key since it does review :Update requests. 2019-02-15 14:16:23 -06:00
Jimmy Berry
249491d6f6 osclib/core: provide entity_exists() and use in StagingAPI.item_exists(). 2019-02-15 14:16:08 -06:00
Stephan Kulow
3cd79db206 repo_checker: Simplify cycle check
No longer compare against the target project's cycle, but just against
a configured list of package names. This way we're not bound to
refreezing stagings if we reduced cycles and it's clearer to the
operator what happens and how to react to it.
2019-02-11 09:02:29 +01:00
Jimmy Berry
3e8a85d9c3 osclib/list_command: 24ae4ba81 broke formatting.
The author was attempting to port for python3, but changed the meaning:

- print ' ', line
+ print(' ' + line)

The first prints "  $line", while the second:
                 " $line".

This changes console output from:

science
 666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

back to:

science
  666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

(ignore lines up and standard double space indent used)
2019-02-08 09:36:16 -06:00
Stephan Kulow
3b3ccab783 Expand all repositories but ignore archs with 404 2019-02-06 06:30:51 +01:00
Ludwig Nussel
6ed0e7bfb5 conf: use backports-reviewers for backports 2019-02-04 16:05:14 +01:00
be05e42da8 accept_command: no longer need to triggering product converter service 2019-01-24 17:49:31 +08:00
Stephan Kulow
b4dd97da3d Moved the nocleanup-packages setting into remote config
It shouldn't matter which branch of the tools are installed
2019-01-17 15:06:28 +01:00
Stephan Kulow
8351d2e677 pkglistgen: Move suggested from global to package level
There is no product that wants all suggests for all products on all groups,
so the only product left that wants to have suggests is Tumbleweed for the DVD
pattern

To solve the suggests we run a global transaction on the
result + its suggests to determine packageand supplements.
To avoid problems (in general) we discard obsolete and conflicts
in packages - so we can have product groups with conflicting packages
and still get the additional supplements
2019-01-17 14:35:17 +01:00
2ae694a912 accept_command: add additional version number to OSRT:ProductVersion 2019-01-15 19:46:57 +08:00
32a88ccddb check_duplicate_binaries: set arch key to string instead of the list 2018-12-18 18:50:43 +08:00
Stephan Kulow
53595a24bf droplist: Ignore Leap:15.1 for Leap:15.1:ARM
The heuristic calculating the product family doesn't really work
for ports, so give the tool some hints in the config. And as 15.1
doesn't have a baseurl yet, we need to give 15.0 one specifically.
2018-12-04 07:42:33 +01:00