89 Commits

Author SHA1 Message Date
Stephan Kulow
a354d6c882 Always force accept into the API after checking for acceptable ourselves
This removes the 2nd line of defense, but there is no API to accept multiple
stagings at once to avoid the underlying problem.

Fixes #2364
2019-12-09 10:08:47 +01:00
Stephan Kulow
a7a7921c94 Have staging accept without argument take all green 2019-12-06 14:32:25 +01:00
Stephan Kulow
00bacac61e
Merge pull request #2361 from coolo/remove_adi
Delete adi projects whenever we'd build disable them
2019-12-06 10:45:01 +01:00
Stephan Kulow
b60333075a Delete adi projects whenever we'd build disable them 2019-12-06 07:35:38 +01:00
Ludwig Nussel
0eb12a53c4 Improve _multibuild on accept 2019-12-05 16:52:05 +01:00
Stephan Kulow
15b6634ca4 No longer close acceptable adi stagings
This is merely an experiment to shorten the time that packages end up
in ready lane
2019-12-04 16:21:27 +01:00
Stephan Kulow
0c6f43f448
Merge pull request #2337 from coolo/add_check
Reuse function of accept to check local links
2019-12-04 13:28:29 +01:00
86651a28f9
Only check for the rebuild project if cbuild has been set
Fixes issue #2349
2019-12-03 15:25:45 +01:00
Stephan Kulow
2bfc87088d Reuse function of accept to check local links 2019-11-24 20:04:42 +01:00
Stephan Kulow
8576f22876 Fix test suite for accept 2019-11-24 19:21:14 +01:00
Stephan Kulow
66c4800520 Fix local links 2019-11-24 17:26:55 +01:00
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