154 Commits

Author SHA1 Message Date
Jimmy Berry
c93d2d2ffa osclib/core: rename request_action_single_list() to request_action_simple_list(). 2019-09-25 14:40:56 -05:00
Jimmy Berry
542268af34 osclib/core: switch request_action_single_list() users to request_action_list(). 2019-09-25 14:40:38 -05:00
Jimmy Berry
0bc8a52aca osclib/core: request_action_single_list(): handle miltiple actions. 2019-09-25 14:37:24 -05:00
Jimmy Berry
341bae564d osclib/core: request_action_single_list(): exclude sourced requests. 2019-09-25 14:37:18 -05:00
Jimmy Berry
f63da476c2 osclib/core: package_kind(): include underscore as meta prefix.
Previously used by _product which is still used in SLE-12.
2019-09-24 11:25:18 -05:00
Jimmy Berry
db9f03338b osclib/core: request_create_delete(): utilize pusedo osc.core function. 2019-09-18 18:04:43 -05:00
Jimmy Berry
2f99efe1b8 osclib/core: provide create_delete_request(). 2019-09-18 18:03:57 -05:00
Jimmy Berry
b41c44e7bb osclib/core: provide RequestFuture.print_and_create(). 2019-09-11 18:55:36 -05:00
Jimmy Berry
4329d42b75 osclib/core: provide RequestFuture.create_tolerant(). 2019-09-11 18:55:36 -05:00
Jimmy Berry
97d1f968de osclib/core: provide project_attributes_list(). 2019-09-11 18:55:36 -05:00
Jimmy Berry
7e9bb0bc29 osclib/core: project_attribute_list(): provide locked parameter. 2019-09-11 18:55:36 -05:00
Jimmy Berry
52c857e5d8 osclib/core: project_attribute_list(): drop value parameter.
The value is not actually exposed by OBS xpath engine and the xpath would
be invalid if it was.
2019-09-11 18:55:36 -05:00
Jimmy Berry
f9e4d424d3 osclib/core: provide devel_projects(). 2019-09-11 18:55:36 -05:00
Jimmy Berry
016bca069d osclib/core: request_action_key(): handle add_role/set_bugowner against project. 2019-09-04 16:13:03 -05:00
Jimmy Berry
a6d0974e27 osclib/core: request_action_key(): include set_bugowner in top level condition. 2019-09-04 16:12:46 -05:00
Jimmy Berry
7478a42882 osclib/core: provide request_create_delete(). 2019-08-07 17:58:57 -05:00
Jimmy Berry
f441d8e41d osclib/core: provide request_create_submit() and RequestFuture. 2019-08-07 17:26:38 -05:00
Jimmy Berry
844a9d28a5 osclib/core: provide message_suffix() and utilize in source_file_save(). 2019-08-07 17:26:38 -05:00
Jimmy Berry
b34a93e590 osclib/core: provide a series of request list generators.
Given the broken design of multi-action requests which continually wreaks
havoc on code attempting to handle them properly a series of methods for
searching for requests are provided to simplify the process. The core
principal is that both a request and action are returned since the
specific action that matched the search query is important.

Further poorly designed maintenance data structure is also abstracted to
provide a consistent interface for querying source changes regardless of
their state in the workflow.
2019-07-16 10:27:41 -05:00
Jimmy Berry
0f1b9d667e osclib/core: provide request_action_key().
Intended to facilitate standardized keys for action specific information
placed in review scoped storage (ie. reviews/comments).
2019-07-11 16:06:06 -05:00
Jimmy Berry
aa444f79e6 osclib/core: enhance attribute_value_load() to handle boolean attributes. 2019-07-11 16:02:14 -05:00
Jimmy Berry
a8ff27b81f osclib/core: provide action_is_patchinfo() from ReviewBot.
Allows for usage outside of ReviewBot children.
2019-07-11 16:01:42 -05:00
Jimmy Berry
e991b44633 osclib/core: provide simplified search() and utilize. 2019-07-11 15:58:35 -05:00
Jimmy Berry
30e38677b6 osclib/core: provide project_locked(). 2019-05-30 17:05:36 -05:00
Stephan Kulow
137478d6aa Introduce osclib.core.duplicated_binaries_in_repo
Move the core functionality of check_duplicate_binaries_command to be
reusable from installcheck.
2019-05-29 13:57:26 +02:00
Jimmy Berry
dde0edef40 osclib/core: package_version(): drop lxml element and return string version.
Resolves undesirable output when formatting a data structure that includes
the result from this function as yaml.
2019-05-23 17:09:29 -05:00
Jimmy Berry
8221df0028
Merge pull request #2014 from jberry-suse/osclib-core-package_list_kind_filtered
osclib/core: rework as package_list_kind_filtered().
2019-05-15 19:39:05 -05:00
acc0ffc385 osclib: make source_file_load() always return string
Makes sense always return string from source_file_load(), this
preventing potentially TypeError on python3. Also changed product file
loading, now source_file_load() used.
2019-05-15 19:34:05 +08:00
Jimmy Berry
45bc515ed8 osclib/core: rework as package_list_kind_filtered(). 2019-05-14 18:58:19 -05:00
Jimmy Berry
feca459bb7 osclib/core: provide package_kind(). 2019-05-14 18:58:12 -05:00
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
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
925032e0f9 Redo select tests to test package with multiple spec files 2019-05-06 22:38:57 +02:00
Stephan Kulow
58d6d7ca16 Python3 fixes 2019-05-04 15:44:44 +02: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
07ecf7b250 osclib/core: package_source_hash(): handle non-existant revision. 2019-03-20 19:01:32 -05: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
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
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
Stephan Kulow
3b3ccab783 Expand all repositories but ignore archs with 404 2019-02-06 06:30:51 +01:00