57 Commits

Author SHA1 Message Date
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
e6de6a60d4
freeze: always disable images repository after freeze
After freeze, /standard needs to rebuild, which then triggers
the pipelines to perform installcheck, recalculate the media and
enable build of /images.

Fixes issue#2817
2022-06-20 16:55:53 +02:00
Stephan Kulow
27c4ae0a06 Don't play with the publish flag on freeze, images only switches build flag
Fix #2789 differently
2022-04-04 16:56:41 +02:00
Stephan Kulow
044f19b7dc Keep images repository disabled on freeze command
Fixes #2789
2022-04-01 10:45:48 +02:00
Stephan Kulow
66b778144f Make frozenage less reliant on changing _frozenlinks
The mtime of a file in OBS is the time this content was created for the
first time. As such if the target project isn't moving for a week,
staging select will keep asking you to freeze - even if you just froze.

So instead of relying on OBS to tell the true mtime, set an attribute
in the staging project and read from it. This also gives a way to check
in the webui for the last freeze time

Fixes #2462
2022-03-03 18:11:50 +01:00
Stephan Kulow
bc5a437bb7 freeze: Copy weakremovers.inc from target project to avoid bitrot
Fixes #1924
2022-02-25 14:10:59 +01:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
dc62b2ed78 Target E711 - compare against None with 'is' not != 2022-02-18 15:56:45 +01:00
Stephan Kulow
2de74cfc52 Replace variable name 'l' (x is fine)
https://www.flake8rules.com/rules/E741.html
2022-02-18 14:21:59 +01:00
Stephan Kulow
e52dc6ce2b Harmonize imports on using lxml for XML parsing 2022-02-18 11:16:01 +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
Stephan Kulow
00a0bdc982 freeze: Stop ignoring inter project links
We link all packages by their srcmd5 - and only fix the links on
selecting new packages
2019-05-06 21:36:18 +02:00
Stephan Kulow
2765089077 freeze: Remove code handling Test-DVD
We no longer have products using that
2019-05-06 21:36:18 +02:00
082d37e36f Improve error msg that the project was not frozen
This change is trying to provide user more information
in case that he already froze project but date of last
freeze was not updated, since there were no changes for
last MAX_FROZEN_AGE days.

* Use osclib.freeze_command.MAX_FROZEN_AGE constant
* Avoid explicit proposal of --no-freeze bug suggest alternative
2019-04-12 13:48:51 +02:00
Stephan Kulow
ff84b79171 We need the images repo published to have a status check
We can't generally assume ISOs can be fetched from backend (we can't
have this on IBS), so publish it - and disable the actual publishing
on the staging backend of OBS
2018-10-12 13:00:18 +02:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -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
ae97da90e5 Remove more of :DVD subproject handling 2018-07-05 20:43:07 +02:00
90891beef0 freeze_command: rebase staging project do not erase users data
Sometimes we has distributed a staging project for specific reason and
given people the maintainership, after froze staging project the users
data will be erased, freeze command should copy the users data therefore
we do not need to add people back again. Staging Master have to remember
reset users data when the goal of staging project has achieved.
2018-04-25 15:25:50 +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
50f04f68e3 freeze_command: use result call to get proper multibuild package information for aggregatepac 2017-12-19 20:22:12 +08:00
Jimmy Berry
cbd61d0f61 osclib/freeze: clear staging config during freeze as well. 2017-10-12 17:46:09 -05:00
Ludwig Nussel
239c6314c7 staging: add exceptions for new 000* product files 2017-10-10 10:46:54 +02:00
08f3453cee freeze_command: update product version for openSUSE only
Make freeze SLE Staging's DVD subproject can work. Update product version is
necessary for openSUSE only.
2017-09-04 16:35:05 +08:00
Stephan Kulow
ad0633d60a Do not use direct flag for images
Products are too touchy - I had now 3 cases where the product would not
rebuild if a meta package changed
2017-09-01 13:53:44 +02:00
Stephan Kulow
b7c9d1a79d SUSE: wants to build test dvds on 'local' workers 2017-08-29 08:45:00 +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
Ludwig Nussel
a71a2ee9b4 Add --no-bootstrap to freeze command
Sometimes it's desirable to re-freeze a staging project without touching
the bootstrap copy again.
2016-06-07 14:44:42 +02:00
Ludwig Nussel
605a0cd0fa Catch sub packages changed to standalone
Instead of just dying raise a meaningful exception if a package is a
subpackage in a ring but standalone in the main project.
2016-06-07 14:44:42 +02:00
232673bd1f Also update product version in Staging1 TestDVD 2016-05-24 14:43:48 +08:00
Alberto Planas
c91baf7622 Restore the build status in the freeze command. 2015-08-28 14:49:47 +02:00
Stephan Kulow
555c23e10c allow projects (42) to exclude archs (ppc64le) 2015-07-19 17:50:46 +02:00
Stephan Kulow
d0df8ef5e6 add ppc64 to the repos 2015-03-17 17:37:15 +01:00
Stephan Kulow
a02076d8f8 we need ppc64le test dvd too 2015-03-17 16:35:04 +01:00
Alberto Planas
2be1bb613e Ignore packages with an origin different from the current new project. 2015-02-19 15:53:46 +01:00
Alberto Planas
c9d1e06ca8 Refactor configuration parameters into configuration file. 2015-02-19 11:39:05 +01:00
Alberto Planas
78f0680708 action #3090 - staging freeze needs an option to just freeze the prjlinks and thats it 2015-02-16 17:18:53 +01:00
Stephan Kulow
f095600f9b import re at the right places 2015-01-20 15:02:46 +01:00
f96cf7d4bb update_product_version: use re instead of importing/exporting the XML (we lose comments in the process) 2015-01-20 14:48:01 +01:00
35ec3f368b freeze_command: update the version in the Test DVD product's KIWI file
to match the version of openSUSE-release

https://progress.opensuse.org/issues/5958
2015-01-20 08:39:11 +01:00
31e32421cd Introduce item_exists
item_exists is a variant of the former project_exists, that can take an
optional package name in plus.
2015-01-20 00:22:15 +01:00
49a257cc6a Some PEP8 fixes. 2014-09-01 09:43:44 +02:00
Stephan Kulow
01a8509b63 build staging prjs against a common prjconf 2014-09-01 07:41:25 +02:00
Stephan Kulow
80bc61f1f3 cope with new staging prjs
they do not have a bootstrap-copy build result the very first time
2014-08-07 13:19:38 +02:00
29b8bcca6b Makes staging pluging Factory agnostic. 2014-08-07 12:58:47 +02:00
Stephan Kulow
6fd8ea9646 trying to make the totest manager more robust
OBS throws a lot of 503 and 504 - and we have to keep trying ;(
2014-06-03 10:27:13 +02:00
Stephan Kulow
0ea73da41f fix things as reviewed by Alberto 2014-05-08 13:26:27 +02:00
Stephan Kulow
77ce528394 let freeze also the DVD subproject 2014-05-08 12:15:54 +02:00
Stephan Kulow
82f16417e1 only wait for finished not for succeeded to build disable bootstrap-copy 2014-04-27 07:49:38 +02:00