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
Jimmy Berry
1942065bd2
Merge pull request #2243 from jberry-suse/origin-manager-invalid-annoation
...
osclib/origin: origin_annotation_load(): improve robustness by tolerating invalid data.
2019-09-26 08:58:33 -05:00
Jimmy Berry
3ec0f1730d
osclib/origin_listener: change from package.update to package.commit event.
2019-09-26 08:54:22 -05:00
Jimmy Berry
0b34e1629b
osclib/origin: origin_annotation_load(): only return dict annotation.
...
To improve robustness and handle invalid/corrupt data in the annotation
just return None if it is anything other than a dict after parsing. The
most likely occurrence is someone accepts the origin-manager review with
a plain-text message.
2019-09-25 15:41:02 -05:00
Jimmy Berry
bc0ec5c6c9
osclib/origin: origin_annotation_load(): only consider accepted reviews.
...
This excludes reviews that were added and never reviewed possibly because
the request was rejected before the review could be accepted. In such
cases the comment specified when adding the review will be loaded as the
annotation which is not desirable.
2019-09-25 15:40:43 -05:00
Jimmy Berry
cc03a35617
osclib/core: review_find_last(): provide states filter.
2019-09-25 15:33:20 -05:00
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
88d83de9b1
osclib/stagingapi: rebuild_check(): utilize -4096 offset for build log.
...
Avoids streaming huge log files when only the end is needed.
2019-09-24 08:40:16 -05:00
Jimmy Berry
c8663d83af
osclib/stagingapi: buildlog_get(): support negative offset.
...
Derive real offset from log size determined via additional API call.
2019-09-24 08:39:27 -05:00
Jimmy Berry
5c96529c65
osclib/cache: utilize rmtree_nfs_safe().
2019-09-18 21:37:51 -05:00
Jimmy Berry
81f8807cda
osclib/util: provide rmtree_nfs_safe().
...
Still occurs and when in obs_operator context is even more annoying.
2019-09-18 21:10:49 -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
d0e2b71ed1
Merge pull request #2223 from jberry-suse/origin_listener-patchinfo-skip
...
osclib/origin_listener: skip patchinfo packages.
2019-09-18 17:19:59 -05:00