1451 Commits

Author SHA1 Message Date
Jimmy Berry
4bbdfc675e osclib/origin: project_source_pending(): include psuedo incident review. 2019-11-07 10:59:21 -06:00
Jimmy Berry
c8cba5d2a1 osclib/core: reviews_remaining(): provide incident_psuedo option. 2019-11-07 10:59:21 -06:00
Jimmy Berry
9503a04b33
Merge pull request #2296 from jberry-suse/origin-manager-update-frequency
osclib/origin: provide automatic update mode controls.
2019-11-07 10:45:08 -06:00
Jimmy Berry
3dd0fbe788
Merge pull request #2297 from jberry-suse/origin-manager-update-new-exclude-existing
osc-origin,osclib/origin_listener: sync package kind logic.
2019-11-07 10:00:54 -06:00
Jimmy Berry
e771dc653f osclib/origin: provide automatic update mode controls. 2019-11-07 08:46:02 -06:00
Jimmy Berry
8cdd550247 osclib/core: request_create_submit(): provide frequency option. 2019-11-07 08:46:02 -06:00
Jimmy Berry
48fc39aba0 osclib/core: request_create_submit(): provide supersede flag. 2019-11-07 08:46:02 -06:00
Jimmy Berry
4ac724b712 osclib/core: request_action_simple_list(): include full history.
Without this the requests are not nearly as useful when processing.
2019-11-07 08:46:02 -06:00
Jimmy Berry
818685166f osclib/core: provide package_source_{changed,age}() functions. 2019-11-07 08:46:00 -06:00
Jimmy Berry
b0ccbb33b6 osclib/core: package_kind(): require releasename to differ from package for maintenance_update.
When releasename does not differ it is essentially the same as no
releasename at all, but since OBS allows this and some source packages
contain such a value need to make check more specific.

See #2294 for an example.
2019-11-06 14:43:20 -06:00
Jimmy Berry
0cd70a5567 osc-origin,osclib/origin_listener: sync package kind logic.
Avoids special cases where package_kind() differs by project.
2019-11-06 14:05:50 -06:00
Jimmy Berry
13fa93cede osclib/core: provide attribute_value_delete(). 2019-11-06 11:38:38 -06:00
Jimmy Berry
226ad12f42 osclib/core: support package in attribute_value_{load,save}() functions. 2019-11-06 11:38:38 -06:00
Jimmy Berry
8cdd505bea osclib/origin: origin_update_pending() utilize project_remote_prefixed().
Correctly prefix the remote project with the interconnect when creating
a submit request.
2019-11-05 16:39:01 -06:00
Jimmy Berry
fd94254601 osclib/core: provide project_remote_prefixed(). 2019-11-05 16:39:01 -06:00
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
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
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
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
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
Jimmy Berry
0ee408a716 osclib/core: provide meta_role_expand() to expand a role to users given meta. 2019-11-04 14:01:34 -06:00
Jimmy Berry
3a444c253e osclib/core: break apart request_age() to provide request_created(). 2019-11-04 14:01:34 -06:00
Jimmy Berry
caabf42f2b osclib/cache: provide osrt.cache.disable config option to disable cache.
Necessary for writing involved tests since the assumptions made by the
cache are violated and thus cause problems.

To keep the tests passing the oscrc intended to be used must be set as
environment variable so when osclib.conf.Config is use the config is not
lost. This would be made simpler without the needless extra config added
by StagingWorkflow.
2019-11-04 14:01:19 -06:00
Jimmy Berry
7559153cbf osclib/comments: provide request description as comment.
Useful for operating on request descriptions inline with comments.
2019-11-04 13:22:38 -06:00
Tomáš Chvátal
7cf86a638f
Use python3 in shebang to not pull in python2 dependency 2019-10-29 13:05:48 +01:00
Stephan Kulow
68be1855fa
Merge pull request #2272 from coolo/fix_source_check
Fix check_source on public cloud images
2019-10-22 12:45:23 +02:00
Stephan Kulow
7c1a658f3d Fix check_source on public cloud images
The check for bcntsynctag can be very misleading - just because we align
the build counters between 2 packages doesn't make them invalid submission
targets. Better rely on the link check which is already implemented as
fallback

And set a verbose decline reason for this case
2019-10-22 09:26:55 +02:00
58bc706bf0
conf.py: remove delreq-review default setting
With the removal of the complex delete request handling, we no longer
need the option to assign a specific reviewer to delreqs in process
2019-10-18 10:37:46 +02:00
9b7af72891
StagingAPI: complex delete requests are no longer used
* Simplify the 'accept' code

openSUSE:Factory/snapshot is newly setup as a Download on Demand repository
and we can thus safe ourselves the hassle of having to take extra care of
handling delete requests. They no longer bleed directly into the /snapshot
area and can now be accepted like any other request

* Drop vdelreq plugin

Since we no longer do a virtual accept of delete requests, we also don't
have to monitor their state anymore. Drop the plugin that served only
this usecase

* Drop the acheck command

As a consequence, the command 'staging acheck' serves no purpose anymore:
/totest was just there to ensure we have something to copy to /snapshot.
This entire repo will vanish, and it is thus no longer needed to verify
if it is in sync before accepting new data.
2019-10-17 15:37:44 +02:00
3f8e30931a
adi: build kiwi images in a /images repository 2019-10-15 10:48:54 +02:00
Jimmy Berry
6ed04ab769
Merge pull request #2247 from jberry-suse/origin-listener-event-commit
osclib/origin_listener: change from package.update to package.commit event.
2019-09-26 09:36:34 -05:00