71763873e3
stagingapi: remove staging_walk() function
...
DVD subproject has been obsoleted, no need to check :DVD anymore.
2018-07-04 21:27:19 +08:00
93ee829260
stagingapi: remove project_status_walk() function
...
subprojects method has been removed from dashboard,
project_status_walk() is not needed anymore.
2018-07-04 21:24:24 +08:00
30c32af1aa
No longer have Ring2 and staging :DVD subproject
2018-06-29 18:29:47 +08:00
Jimmy Berry
e6157ce837
osclib/stagingapi: attribute_value_load(): ensure using desired value.
...
OBS likes to not follow its API documentation and tends to ignore the
specific attribute option and returns everything. This results in
returning the first element that lxml decide to match to the pattern.
Not sure if OBS broke this recently, or if #1573 was poorly tested.
2018-06-27 17:00:36 -05:00
Jimmy Berry
a909b40461
osclib/stagingapi: superseded_request(): revert poor indentation changes.
...
Human eyes can vertically. One does not write math homework like:
1. y = mx + b
b = y - mx
or
1. y = mx + b
b = y - mx
one write it
1. y = mx + b
b = y - mx
2018-06-20 15:30:13 -05:00
Stephan Kulow
0180de281a
Fix test cases
2018-06-15 13:16:46 +02:00
Stephan Kulow
5e0e6c5126
Catch 404 for attributes (python3 way)
2018-06-15 11:40:02 +02:00
Stephan Kulow
030e7b807f
Move config into an OBS attribute
...
Right now we require a Staging subproject to use staging plugin, which
is suboptimal especially for maintenance requests. The OBS attributes allow
to store the things right attached to the project - and the permissions
can be controlled in parallel to the maintainers right, which gives us
enough freedom
2018-06-15 11:40:02 +02:00
bd251bc6b7
Freeze adi: do not check the first package in frozenlinks but metadata
...
Check the devel project from the first package in frozenlinks won't work
if the package has been deleted, check the first package in metadata
instead.
2018-05-17 19:01:58 +08:00
Stephan Kulow
082ee52aaf
ttm: Load and Store the ignored issues in an OBS attribute
2018-05-14 20:00:57 +02:00
Jimmy Berry
48913abc47
osclib/stagingapi: dashboard_content_load(): expose revision parameter.
2018-04-20 16:19:52 -05:00
Jimmy Berry
225c398e87
osclib/core: provide source_file_load() from StagingAPI.
2018-04-16 14:59:45 -05:00
67779dba6f
API: move fileinfo_ext[_all] from StagingAPI to core
...
These helpers can be used by other bots, like for example repo-checker,
which do not rely on the StagingAPI.
2018-03-24 13:34:44 +01:00
Jimmy Berry
e450a1519e
osclib/stagingapi: rename main_repo to cmain_repo.
...
The previous name is inconsistent and did not work with general lazy laod.
2018-03-07 15:50:36 -06:00
Jimmy Berry
4bd9e9a2fb
osclib/stagingapi: rename delreq_review to cdelreq_review.
...
The previous name is inconsistent and did not work with general lazy laod.
2018-03-07 15:50:36 -06:00
Jimmy Berry
d790a2ce69
osclib/stagingapi: rename cstaging_nocleanup to cnocleanup_packages.
...
The previous name is inconsistent and did not work with general lazy laod.
2018-03-07 15:50:36 -06:00
Jimmy Berry
e3168d6c34
osclib/staging-api: lazy-load all config values to allow for placement in remote config.
2018-03-07 15:50:31 -06:00
b5aa979700
Do not complain 000* package has defined in the two different ring
2018-02-22 14:28:35 +08:00
Stephan Kulow
3590c6a57d
Revert "staging: add exceptions for new 000* product files"
...
This reverts commit 239c6314c7a8b0192c85181e7f64ab274e74cc31.
2018-02-21 10:23:38 +01:00
Jimmy Berry
b1ec7efb3c
osclib/stagingapi: get_staging_projects(): utilize project_list_prefix().
2018-02-06 00:13:43 -06:00
2d13b11783
adi: place :NonFree requests in separate adi with :NonFree path.
2018-01-31 01:34:00 -06:00
Jimmy Berry
62d432c7c8
osclib/stagingapi: replace get_devel_project() with core.devel_project_get().
...
This implementation does not handle the 404 correctly like ReviewBot did
originally.
2018-01-17 18:11:37 -06:00
Jimmy Berry
fa991556e3
osclib/stagingapi: detect baselibs.conf in adi package and ensure archs enabled.
...
Otherwise, the baselibs are not built and repo-checker cannot verify the
setup.
2018-01-03 20:09:28 -06:00
Jimmy Berry
d68eff6293
osclib/stagingapi: load_file_content(): provide optional revision param.
2018-01-03 18:32:35 -06:00
Jimmy Berry
59c838f238
osclib/stagingapi: load_file_content(): convert to makeurl() query builder.
2018-01-03 18:32:09 -06:00
Jimmy Berry
facb6fecf6
osclib/stagingapi: provide is_staging_bootstrapped() from request_splitter.
2017-12-21 00:31:01 -06:00
d04bc4fce1
Import all dependencies
2017-10-20 01:01:17 +02:00
3cf49d9556
Python 2.6+ / 3.x style except clauses
...
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
Jimmy Berry
6eb4df3fba
osclib/stagingapi: set_prj_pseudometa(): only change if different.
2017-10-12 17:46:09 -05:00
Jimmy Berry
336a0e54ad
osclib/stagingapi: get_staging_projects(): provide include_dvd option.
2017-10-11 17:38:11 -05:00
Ludwig Nussel
239c6314c7
staging: add exceptions for new 000* product files
2017-10-10 10:46:54 +02:00
5611411a6f
virtually accept: virtually accept the delete request
...
Implementation virtually accept the delete request, the delete request will be
added another delreq-review review and also wipes the binary in the main
project, the backend will sync 'nothing' to ToTest and Snapshot after all. Once
all repository has no binary then remove the package in real.
2017-10-02 17:15:55 +08:00
Jimmy Berry
1a969c433e
osclib/stagingapi: accept_status_comment(): avoid making comments for empty projects.
2017-09-19 15:09:04 -05:00
fc679683ec
rm_from_prj: always use the origin project path to set_review()
...
The variable project might got changed through
map_ring_package_to_subject(), according to release process, we have to
given the origin project path to set_review() always.
2017-09-16 18:59:07 +08:00
831c73a3bc
stagingapi: submit_to_prj() create sub-package for adi request
...
* Create sub-package in case an adi request is multiple specfile package
* Use the consistent workflow in rm_from_prj(). The main package must to
through map_ring_package_to_subject() like what it did in
submit_to_prj()
2017-09-08 16:25:06 +08:00
2c9aa4eb98
stagingapi: rm_from_prj() remove the main package in the last
2017-09-08 16:18:33 +08:00
afe0f9af18
stagingapi: refactor get_sub_packages() to support adi package
...
The new logic is introduced, the description is below:
* If adi package: return sub-package list according to the specfiles
of main package.
* If ring package: return sub-package list by showlinked call and the
sub-package must be in another ring.
* The others: return empty list, no reason to return anything or even
checking it in the devel project. Otherwise selecting a non-ring
package to a letter staging probably would created unneededsub-package.
2017-09-08 16:13:51 +08:00
36f1995f59
Merge pull request #897 from jberry-suse/supersede-build-remain
...
stagingapi: carry over build state during supersede.
2017-09-07 10:49:33 +08:00
Jimmy Berry
00dee0daa6
stagingapi: carry over build state during supersede.
...
Allows for packages being added to rings to remain enabled after being
superseded.
2017-09-06 07:44:36 -05:00
Jimmy Berry
110ccf0ceb
osclib/stagingapi: lazy-load nocleanup-packages to allow for placement in remote config.
2017-08-31 11:41:58 -05:00
Jimmy Berry
a0613bdc74
osclib/stagingapi: create_adi_project(): add :Staging passthru project.
...
This allows for project configuration to be injected.
2017-08-30 08:35:06 -05:00
48885df63e
stagingapi: Fix typo in _frozenlinks
2017-08-25 18:51:18 +08:00
Jimmy Berry
bf5ae3d366
Merge pull request #1093 from jberry-suse/repo_checker-ignore-from-staging-and-dvd
...
repo_checker: rework to handle multiple stagings per group and proper repo layering.
2017-08-24 22:25:09 -05:00
Jimmy Berry
cfc21469fd
stagingapi: provide staging_walk() to cleanly handle :DVD subproject.
2017-08-24 21:47:05 -05:00
Ludwig Nussel
adeb4c4dfe
Merge pull request #1080 from nilxam/freeze_adi
...
Freeze Cmd: Implement freezing adi staging project
2017-08-24 12:54:43 +02:00
773ce3904b
Freeze Cmd: Implement freezing adi staging project
...
Since we have introduced the source project expand function in adi staging
project, a new function to freeze a adi staging project is needed as well.
2017-08-23 17:09:42 +08:00
Jimmy Berry
65d0de2eca
stagingapi: avoid making an empty package-diff comment.
2017-08-22 15:33:03 -05:00
29939067bf
stagingapi: Ensure the links is valid before processing
...
Make sure the links of package in Rings must are valid before processing,
otherwise someone had package linked to the Ring package in somewhere else than
Rings will breaks select/delete/rm_to_prj, ie. _link will be created. Therefore,
only return the candidate if it has proper linked from another ring and have
different package name.
2017-08-22 04:52:30 +08:00
Jimmy Berry
85dbc57f12
stagingapi: provide dashboard_content_{load,save,ensure}() and utilize.
2017-07-27 23:52:58 -05:00
6511997d29
Use frozenlinks for submission from the specific project
2017-06-30 18:28:46 +08:00