5655 Commits

Author SHA1 Message Date
Jimmy Berry
931b760456
Merge pull request #2287 from jberry-suse/origin-manager-new-package-submission
origin-manager: submit new packages from origins with automatic_updates_initial enabled.
2019-11-05 09:04:01 -06:00
Jimmy Berry
bb2124b818 osclib/origin_listener: consume package deletes.
Now that update_consider() local check package_kind() on both origin
and target package a delete is possible. origin_update() already
supported generating deletes or swapping origin to next potential.
2019-11-05 08:23:40 -06:00
Jimmy Berry
2b68e743df tests/origin_tests: provide test for new package submission. 2019-11-05 08:23:40 -06:00
Jimmy Berry
75f9a88f07 osc-origin: osrt_origin_update(): include potential new packages.
When no packages are specified include all potential packages from
origins with automatic_updates_initial enabled to allow for new package
submissions.
2019-11-05 08:23:40 -06:00
Jimmy Berry
45c13b31ba osclib/origin_listener: update packages that do not exist in target project.
Allows for new package submissions when applicable.
2019-11-05 08:23:40 -06:00
Jimmy Berry
6595dd812b osclib/origin: provide origin_updatable_initial().
Provides list of origins for a given project that allow initial updates.
2019-11-05 08:23:40 -06:00
Jimmy Berry
7c162b3c7f osclib/origin: origin_update(): support initial submissions. 2019-11-05 08:23:40 -06:00
Jimmy Berry
8bed8d507e osclib/origin: provide automatic_updates_initial origin config option.
Used to allow new package submissions from an origin.
2019-11-05 08:23:40 -06:00
Jimmy Berry
826655766e osclib/core: request_create_submit(): provide ignore_if_any_request.
Useful for avoiding making a request if any pending or non-accepted
request against that package exists. Such a use case is submitting new
packages by origin-manager which should only try the submission once.
2019-11-05 08:23:33 -06:00
Stephan Kulow
bfaa89d7b6
Merge pull request #2277 from nilxam/python3_reuqestfinder
requestfinder: ConfigParser has been renamed to configparser in python3
2019-11-05 12:30:42 +01:00
Stephan Kulow
7e560478a1
Merge pull request #2290 from coolo/fix_config
Fix multiple crashes while reading config from cache
2019-11-05 11:50:31 +01:00
Stephan Kulow
efee54297e
Merge pull request #2286 from coolo/pkglist_debug
Fix conflicts/obsoletes while picking dependencies
2019-11-05 11:36:42 +01:00
Stephan Kulow
31ee1047cd Remove dependency from cache to config
Getting the right config depends on too many things that cache.py can't
know - so just rely on environment variables instead

Fixes #2289
2019-11-05 11:29:04 +01:00
Stephan Kulow
a595666eef Remove old python2 code from cache 2019-11-05 11:14:54 +01:00
Stephan Kulow
657d2c87d9 Fix conflicts/obsoletes while picking dependencies
We ignored conflicts/obsoletes during pool preparation as it got
into the way of finding supplements (due to conflicting packages in
the list). But this way, conflicts were invisible also during dependency
search, leading to wrong packages picked for the package lists in
general.

So add a flag to prepare_pool to explain if we want conflicts or not
2019-11-05 09:39:10 +01:00
Jimmy Berry
de4ff14a71
Merge pull request #2283 from jberry-suse/origin-manager-assume-devel
origin-manager: full handling of various devel project workflows, addition of significant tests, and many underlying fixes
2019-11-04 14:56:28 -06:00
Jimmy Berry
72409c5432 tests/origin_tests: provide split product origin tests. 2019-11-04 14:18:12 -06:00
Jimmy Berry
ad0d0b28ea tests/origin_tests: provide devel origin tests. 2019-11-04 14:18:12 -06:00
Jimmy Berry
43850242cf tests/origin_tests: provide harness and basic tests. 2019-11-04 14:18:12 -06:00
Jimmy Berry
5a5d60b5f6 tests/OBSLocal: provide randomString() for ensuring tools not name dependent. 2019-11-04 14:18:12 -06:00
Jimmy Berry
e7d8c9857e tests/OBSLocal: provide assertReviewBot() for review script workflows. 2019-11-04 14:18:12 -06:00
Jimmy Berry
8ec2202763 tests/OBSLocal: submit_package(): provide optional project argument.
Generating submit requests beyond only against the target project is
important during testing.
2019-11-04 14:18:12 -06:00
Jimmy Berry
e33716866f tests/OBSLocal: StagingWorkflow: provide and utilize remote_config_set(). 2019-11-04 14:18:12 -06:00
Jimmy Berry
1c216fc13a tests/OBSLocal: Request: extract change_state() from revoke.
Changing request state is an import part of testing beyond just revoking.
2019-11-04 14:18:12 -06:00
Jimmy Berry
3c1b01695e tests/OBSLocal: tearDown(): ensure user is Admin before cleanup.
Without this all cleanup fails which can cause leakage between test runs
that utilize the same entity names.
2019-11-04 14:18:12 -06:00
Jimmy Berry
65e23771b6 tests/OBSLocal: StagingWorkflow: stop hiding valid errors.
Makes for debugging issues quite a pain.
2019-11-04 14:18:12 -06:00
Jimmy Berry
5cc14d1841 tests/OBSLocal: correct python 3 port attempt for subprocess output handling.
Newlines are lost in previous port which makes output nearly useless.
2019-11-04 14:18:12 -06:00
Jimmy Berry
acd552c807 tests/OBSLocal: provide osc_user_pop() to make user switching cleaner. 2019-11-04 14:18:08 -06:00
Jimmy Berry
6e1c37b53d tests/OBSLocal: osc_user(): indicate when switching user. 2019-11-04 14:01:34 -06:00
Jimmy Berry
da2e5ea9a8 tests/OBSLocal: disable request cache during testing. 2019-11-04 14:01:34 -06:00
Jimmy Berry
4e95bf3eee osclib/origin_listener: ultilize origin_updatable_map() include_self option.
Useful for trigger follow-up change_devel requests are suppressed updates.
2019-11-04 14:01:34 -06:00
Jimmy Berry
ea7a454d7e osclib/origin: origin_updatable_map(): provide include_self option. 2019-11-04 14:01:34 -06:00
Jimmy Berry
3b51a7e044 osclib/origin: origin_update() generate change_devel requests.
As a follow-up to new packages accepted from a specific devel generate
a change_devel request automatically. Such requests should be approved
automatically since they are a workaround to not being able to set devel
during source submission.
2019-11-04 14:01:34 -06:00
Jimmy Berry
211af47889 origin-manager: handle change_devel request review. 2019-11-04 14:01:34 -06:00
Jimmy Berry
f8dd9eb057 origin-manager: when appropriate simulate devel project during source change review. 2019-11-04 14:01:34 -06:00
Jimmy Berry
bb99e6b5bc origin-manager: provide devel_project_simulate_check().
Handles decided when and what to simulate the devel project as when
reviewing a source change request.
2019-11-04 14:01:34 -06:00
Jimmy Berry
99f79e4dae origin-manager: provide devel_project_simulate_check_command().
Handles ingest of change_devel commands.
2019-11-04 14:01:34 -06:00
Jimmy Berry
bf12c5e0d7 origin-manager: provide and utilize origin_maintainer_review_ensure().
Instead of ensure devel owner using owner search which is incorrect in
many cases including for new packages add a review for origin maintainers.
2019-11-04 14:01:34 -06:00
Jimmy Berry
aa49b57c8e osclib/origin: policy_input_calculate(): handle change from None origin. 2019-11-04 14:01:34 -06:00
Jimmy Berry
790a46cbfc osclib/origin: allow for identical source if origin changed.
Enables change_devel reviews were the source does not change, but the
effective origin will change changed by the request.
2019-11-04 14:01:34 -06:00
Jimmy Berry
c62fb125ef osclib/origin: provide and utilize origin_devel_projects().
Incorporate meta devel, request devel, and whitelist devel into one
function.
2019-11-04 14:01:34 -06:00
Jimmy Berry
683ead7ad6 osclib/origin: provide origin_devel_project() and utlize.
Handles incorporating simulated devel, pseudo devel from requests, and
meta devel project into one function.
2019-11-04 14:01:34 -06:00
Jimmy Berry
d9cc2131ad osclib/origin: provide origin_devel_project_requests().
Determines psuedo devel projects based on pending requests.
2019-11-04 14:01:34 -06:00
Jimmy Berry
83530ce0f6 osclib/origin: provide devel_project_simulate enterable. 2019-11-04 14:01:34 -06:00
Jimmy Berry
a724dcfa9d osclib/origin: require origin key in origin_annotation_load().
Alternatively, this can validate something like "ok: not handled".
2019-11-04 14:01:34 -06:00
Jimmy Berry
2ecb8ce3d7 osclib/origin: provide origin_workaround_strip(). 2019-11-04 14:01:34 -06:00
Jimmy Berry
251170b77d osclib/core: provide request_state_change() and utilize. 2019-11-04 14:01:34 -06:00
Jimmy Berry
e9eab675ab osclib/core: provide request_create_change_devel() RequestFuture. 2019-11-04 14:01:34 -06:00
Jimmy Berry
0f66879c1d osclib/core: provide package_role_expand() to expand package role to users. 2019-11-04 14:01:34 -06:00
Jimmy Berry
66da92ec80 osclib/core: provide project_role_expand() to expand project role to users. 2019-11-04 14:01:34 -06:00