1433 Commits

Author SHA1 Message Date
Stephan Kulow
57322b2382
Merge pull request #2731 from coolo/fix_1611
pkglistgen: Deprecate scope 'all'
2022-03-04 12:10:54 +01:00
Stephan Kulow
313908293f pkglistgen: Deprecate scope 'all'
Within gocd we run each job on its own worker and don't rely on builtin
loop. So no need to care for a remote config
2022-03-04 11:27:12 +01:00
Stephan Kulow
a1f7a16e6f tests: Fix api_tests to mock attribute not mtime 2022-03-04 11:11:42 +01:00
Stephan Kulow
5c377d64d3 osclib: Add an helpful error on failed attribute save
It's stil throwing the exception but with some luck the user sees the
error and acts.
2022-03-04 09:48:06 +01: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
39bbc90c22
Merge pull request #2721 from coolo/origin_updater
More origin manager cleanup
2022-03-03 08:12:19 +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
95db8a0091 More origin manager cleanup
As we don't do automatic origin updates in no project, remove the
update monitors. Those have been paused on botmaster for half a year
and just no project relies on them any longer
2022-02-25 10:10:09 +01:00
Stephan Kulow
d6fb5d680c Remove sentry integration
It was introduced by #2159 because the various machines were hard to
monitor. Since we moved to botmaster there is no longer a problem with
that and if it ever served us is hard to say as the sentry project's
password is lost for years. So simplify the exception handling by just
throwing it
2022-02-21 14:41:33 +01:00
Stephan Kulow
3e14e55fde
Merge pull request #2712 from coolo/fix_project
Fix output of staging reviews
2022-02-21 12:28:02 +01:00
Stephan Kulow
90d8cd6cf0 Fix output of staging reviews
The staging status doesn't provide the by_project and it's not
really important here, so simplify

Before:
adi:39 review: None/ekiga for ekiga[955924]

After:
adi:39 review: package:ekiga for ekiga[955924]
2022-02-20 12:57:39 +01:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01:00
Stephan Kulow
f86579642b Target E501 - Line too long
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
f38bd3a7ed Target E128 - Continuation line under-indented for visual indent
https://www.flake8rules.com/rules/E128.html
2022-02-18 17:35:33 +01:00
Stephan Kulow
27c364b0c9 Target E251 - Unexpected spaces around keyword
https://www.flake8rules.com/rules/E251.html
2022-02-18 17:28:13 +01:00
Stephan Kulow
d8f5d0874e Remove E201 - Whitespace after '('
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f Target E202 - Whitespace before ')'
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe Target E305 - Have two empty lines of a class 2022-02-18 17:11:46 +01:00
Stephan Kulow
579145b52c Target F841 - Remove unused variables 2022-02-18 17:01:38 +01:00
Stephan Kulow
0561e06cb1 Target E261 - two spaces before inline comment 2022-02-18 16:39:16 +01:00
Stephan Kulow
dc62b2ed78 Target E711 - compare against None with 'is' not != 2022-02-18 15:56:45 +01:00
Stephan Kulow
d6628beadf Target E125 - Continuation line with same indent
https://www.flake8rules.com/rules/E125.html
2022-02-18 15:52:53 +01:00
Stephan Kulow
66a0f152ff Target E129 - Visually indented line with same indent
https://www.flake8rules.com/rules/E129.html
2022-02-18 15:52:47 +01:00
Stephan Kulow
ae734ba555 Fix indent of statements E127
https://www.flake8rules.com/rules/E127.html
2022-02-18 14:23:59 +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
f705a24db1 Only have one statement in a line E701
https://www.flake8rules.com/rules/E701.html
2022-02-18 13:42:57 +01:00
Stephan Kulow
52dbb52b7f
Merge pull request #2703 from coolo/drop_etree
Harmonize imports on using lxml for XML parsing
2022-02-18 12:50:18 +01:00
Stephan Kulow
c1a66f9997
Merge pull request #2704 from coolo/remove_bare_excepts
Remove bare excepts - https://www.flake8rules.com/rules/E722.html
2022-02-18 12:50:05 +01:00
Stephan Kulow
1152d4c419 Remove bare excepts - https://www.flake8rules.com/rules/E722.html
The bare except in osc-credentials lead me to remove it and the scripts
using it
2022-02-18 12:03:56 +01:00
Stephan Kulow
e52dc6ce2b Harmonize imports on using lxml for XML parsing 2022-02-18 11:16:01 +01:00
Stephan Kulow
177a654eb1 Remove --by-develproject for adi command
It's pointless by now as we have no project that uses devel projects
and would accept submissions not coming from there

Fixes #1366 (kindof)
2022-02-17 12:04:25 +01:00
Stephan Kulow
dafa42d3df Support to move one staging into another
osc staging select --move adi:26 adi:14

If move is given, all staging projects given after the first will
be seen as source

Fixes #1105
2022-02-15 15:00:14 +01:00
Stephan Kulow
bf7c5e1682
Merge pull request #2694 from coolo/fi_2374
Introduce --remove-exclusion for staging select
2022-02-14 14:30:45 +01:00
Stephan Kulow
cf2c496116 Introduce --remove-exclusion for staging select
The API errors with that option if a request is ignored, so we have to
support it.

Fixes #2374
2022-02-14 13:59:42 +01:00
Fabian Vogt
4bcf6f1ed2 Include :Staging in :adi images and containerfile repo paths
Those repos have to build against :Staging as well to get the prjconf.
2022-02-09 11:29:37 +01:00
387b73d1d0 pkglistgen: Handle loops in project path expansion
For some setups that have recursive paths we run into an endless
loop. Adding a visited project tracking to break the loop of expansion.
2021-12-15 21:35:09 +01:00
Stephan Kulow
155a1eb6e9
Merge pull request #2646 from coolo/fix_731
Fix the only offense of E731
2021-09-30 07:40:48 +02:00
Stephan Kulow
d39eca2885 Fix the only offense of E731 2021-09-22 21:51:24 +02:00
Ancor Gonzalez Sosa
a9d6db325f Delete leaper, update_crawler and manager_42 2021-09-21 15:30:48 +02:00
Stephan Kulow
8b13dffe50 Remove E265 from flake ignore list 2021-09-21 14:52:46 +02:00
Stephan Kulow
a8f7146baf Remove E713 offense from flaker 2021-09-21 14:20:08 +02:00
Josef Reidinger
357cddea60
fix deprecation warning in parser 2021-09-03 10:17:19 +02:00
Imobach González Sosa
632cbf92bc
Updates from code review 2021-07-13 16:30:53 +01:00
Ancor Gonzalez Sosa
1e868aa7ee
Check for maintainers in the source project
* It introduces a new configuration parameter 'required-source-maintainer'.
* If defined, it is expected to be a maintainer of the devel project.
* If that's not the case, the request is declined and an add_role
  request is created.

Co-authored-by: Ancor Gonzalez Sosa <ancor@suse.de>
Co-authored-by: Knut Alejandro Anderssen González <kanderssen@suse.com>
2021-07-13 11:41:13 +01:00
Ancor Gonzalez Sosa
4b1b262628
Small code reorganization in core.py 2021-07-08 14:38:05 +01:00
Fabian Vogt
c01337c486 osclib/conf.py: Don't use same config for openSUSE:Leap:15.3:ARM and :Images
Otherwise they both try to write into the same pseudometa.
2021-07-07 16:23:18 +02:00
Stephan Kulow
b376746fd8
Merge pull request #2530 from nilxam/no_date_product_version_leap
accept_command: use the value of attribute to set ProductVersion if always_set_productversion_to option presents
2021-06-22 13:07:11 +02:00
8bbf34352c accept_command: use the value of attribute to set ProductVersion if always_set_productversion_to option presents 2021-06-22 15:08:45 +08:00
d8cf2350b1 Fix Leap:15.3:ARM which was broken when Leap:15.3:ARM:Images has been introduced 2021-06-16 10:01:11 +02:00