78 Commits

Author SHA1 Message Date
Stephan Kulow
49bfafb183 Accept all stagings at the same time 2019-11-24 16:21:32 +01:00
Stephan Kulow
d4d9382a9e remove links before accepting staging projects 2019-11-24 13:18:27 +01:00
Stephan Kulow
63bda17769 Collect packages for all stagings and ready before accepting 2019-11-24 11:00:47 +01:00
Stephan Kulow
62f97d15d1 Fix accept command to force accept through API 2019-11-22 13:21:55 +01:00
Stephan Kulow
b01b7d529a Move accept logic into accept_command 2019-11-22 13:21:48 +01:00
Stephan Kulow
529c5623a6 Remove nonfree handling
Prepare NonFree as onlyadi project, so it can have its own staging workflow
2019-11-21 14:49:29 +01:00
Stephan Kulow
4655b6c99b Fix accept: first comment then cleanup (comments)
After accept we want empty comments
2019-11-20 16:10:30 +01:00
Stephan Kulow
82c64003c4 Adopt to the new staging_projects api not revealing all infos 2019-11-19 08:04:11 +01:00
Stephan Kulow
61205d35e3 Some fixes for supersede and unselect
the API changed to /requests
2019-11-19 08:04:11 +01:00
Stephan Kulow
63ccac76d5 Work on accept command - not yet done 2019-11-19 08:04:10 +01:00
Stephan Kulow
9235ab50db Remove config command - the config isn't used any more
The only use case left is displaying 'todo' config on accept - but staging managers
don't use this. So we may need a different solution later
2019-11-19 08:04:10 +01: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
678f243b2b virtually accept: fix string type handling in Python3 2019-05-28 16:51:00 +08:00
5d13e07b5a accept_command: fix missing the url for uploading product file change
Regression from acc0ffc3852700cc996109f350f72dcb9ff1b3fe , we still need
url for uploading product file change.
2019-05-24 18:12:26 +08: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
be05e42da8 accept_command: no longer need to triggering product converter service 2019-01-24 17:49:31 +08:00
2ae694a912 accept_command: add additional version number to OSRT:ProductVersion 2019-01-15 19:46:57 +08:00
Jimmy Berry
536e17cb79 osclib/stagingapi: rename dashboard_content_* methods to pseudometa_file_*.
No need to be confusing and use the deprecated dashboard name.
2018-08-17 23:19:24 -05:00
Jimmy Berry
5e6df089a6 osclib/stagingapi: drop {load,save}_file_content() methods.
Since the implementations have been made generic and dropped to osclib.core
there is not point in having wrappers in StagingAPI with the same args.
2018-08-17 22:15:58 -05:00
Stephan Kulow
9b4b0ed15a Begin porting to python3 (osc branch) 2018-05-14 11:04:39 +02:00
Jimmy Berry
bb576ca137 osclib/accept_command: avoid making empty commit to dashboard. 2018-04-24 20:10:34 -05:00
64bd11baf4
Staging accept: run service in ports 000product 2018-03-29 12:01:07 +02: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
843cc016e0 osclib/accept: print todo from staging config after completion. 2018-01-25 11:08:47 -06:00
0a45aba664
Merge pull request #1234 from nilxam/remove_2nd_specfile_ring
accept_command: remove the ring package if it is 2nd specfile is removed
2017-11-02 14:57:41 +08:00
b9bc629a4d accept_command: remove the ring package if it is 2nd specfile is removed 2017-10-31 19:46:53 +08:00
6ffe02ce94 accept_command: force to accept the staging if --force parameter is given
If --force parameter is given, it must to force to change the request state,
otherwise --force does not work if still had pending review.
2017-10-31 13:27:29 +08: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
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
14f21b0f0c suppkg_rebuild: Clean up supportpkg list also
Have to clean up supportpkg list also during accepting staging project,
otherwise suppkg_rebuild can not handle it correct in case next time staged
package in the same staging project had the same supportpkg list.
2017-08-18 18:54:32 +08:00
bd4e71e2b0
AcceptCommand: update version of all products found in the project
in opeSUSE:Factory, for example, there is also openSUS-Kubic.product and the
versions are supposed to stay in sync.

We newly find all product definitions inside a project and update all of them,
with the same limiation as before: only if version was a 8 digit version it will
be updated to the current date stamp

Additionally, this is a preparation for the new product builder, as _product is no
longer hardcoded, but found.
2017-07-06 12:50:16 +02:00
Jimmy Berry
1dfa8d2568 stagingapi: provide accept_status_comment() based on accept command. 2017-03-28 23:01:33 -05:00
Jimmy Berry
1ece7d6375 accept: remove unused requests list in perform(). 2017-03-28 22:59:36 -05:00
59e496effb Fix wrong call of cstaging 2017-03-24 17:25:00 +08:00
06596972c9 Reset support_pkg_rebuild state to unknown while accepting 2017-03-21 19:39:09 +08:00
Jimmy Berry
8b5dc5d7c8 accept: refactor staging cleanup into stagingapi. 2017-03-14 23:02:52 -05:00
Jimmy Berry
02b4958fe0 stagingapi: add clear_prj_pseudometa() and call after accept.
This ensures that the pseudometa data is fully reset and allows for
optional information to be added without risk of leaving it behind.
2017-03-01 01:04:57 -06:00
daa7c37f3a
Trigger source service for _product in :zSystems on accept 2017-02-01 22:21:14 +01:00
e6ecb0cbee Import http_POST for accept_command
Since commit 295fcd we newly also require http_POST in order to
put a new file in place after accepting.

Also add quotes around the fakepkgname when injecting it into the kiwi file.
2016-11-16 13:45:27 +01:00
295fcd63d3 Let Test-DVD is invalid in the beginning of the new round
Make sure Test-DVD won't in green state when new round just started,
wipe Test-DVD binary and intended to break kiwi build when accepting the
staging.
2016-11-15 19:18:02 +08:00
f36aba5ac0 Accept: fix escaping when creating linked package 2016-06-19 10:52:54 +02:00
9862e7d1ee AcceptCommand: Fix regex to replace devel prj for linked packages 2016-06-15 13:04:08 +02:00
Ludwig Nussel
fac9d408bb Change meaning of --force for accept
Just ignore if totest doesn't exist. Instead make --force accept a
staging despite failures.
2016-06-07 15:11:26 +02:00
d70f80cbd2 Autocleanup: Make list of packages to retain configurable 2016-06-02 16:37:32 +02:00
482c1f0490 AcceptCommand: Cleanup packages that were manually linked to projects 2016-06-02 12:40:48 +02:00
ebc246c6d5 ports: make sure to not add ports over ports 2015-07-03 09:22:09 +02:00
Dinar Valeev
c6d32d8f50 Update Ports on version update
Keep Ports in sync with Factory

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2015-05-04 11:01:17 +02:00
Alberto Planas
f285f09d35 Revert "accept_command: import urllib2" 2015-03-05 17:17:37 +01:00