452 Commits

Author SHA1 Message Date
Stephan Kulow
5e2a171600
Merge pull request #2877 from SchoolGuy/add_typing_hints
Add typing hints
2022-10-13 15:03:54 +02:00
Enno Gotthold
fac26fc6f4
osclib: Add type annotations 2022-10-13 14:46:33 +02:00
Stephan Kulow
a99f61d658 Fix the syncing of rebuild failures for multibuild flavors
Otherwise we don't notice test suites failing that were split out
2022-10-12 09:15:04 +02:00
b40d8c0053 Fix E275: missing whitespace around keywords 2022-08-18 11:05:55 +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
6773c20695 Fix adi projects having no archs 2022-03-30 10:48:08 +02:00
Stephan Kulow
a0418aa4a0 Use all staging archs in adi projects
This replaces #1304 with a more brute force approach to fix not only
32bit libs but all failures we see on i586. We waste so much energy
retrying failed builds, it's really not worth it not trying i586 on
adi.
2022-03-29 13:55:58 +02:00
Stephan Kulow
6f1314730c Stay with minversion 3.6 (and require module we already use elsewhere)
Fixes #2770
2022-03-25 09:43:56 +01:00
Stephan Kulow
a1f7a16e6f tests: Fix api_tests to mock attribute not mtime 2022-03-04 11:11:42 +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
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
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
579145b52c Target F841 - Remove unused variables 2022-02-18 17:01:38 +01:00
Stephan Kulow
dc62b2ed78 Target E711 - compare against None with 'is' not != 2022-02-18 15:56:45 +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
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
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
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
Fabian Vogt
cd32d69bb8 Build containerfile and images repos against each other 2021-03-10 15:22:33 +01:00
Fabian Vogt
1ae33041ba Add a containerfile repo to adi stagings
It builds against the adi's images repo (if available) and standard as well.
2021-03-10 15:19:05 +01:00
Fabian Vogt
63c7292ee8 Also add required checks to adi stagings after adding architectures
Otherwise the newly added archs don't have any required checks assigned.
2020-12-16 08:48:23 +01:00
Jan Zerebecki
72d2446bf9
fix cutting off part of a stagings name
When self.cstaging is the empty string the first char is cut off. Fix
this by testing for that case.
2020-07-06 19:49:48 +02:00
1bfbf08fe7 stagingapi: do not add multibuild flavor package to the ring package list 2020-04-29 22:33:48 +08:00
6c087e8a86 stagingapi: allow multibuild package spreads across ring 2020-04-29 22:32:15 +08:00
Stephan Kulow
f28b520a92 Wipe all multibuild flavors for delete requests
Fixes #1899
2020-03-25 16:07:19 +01:00
Stephan Kulow
0cef959328 Work around OBS issue 8994
Instead of declining the by_project review, unselect the request and
decline the group review. This way we avoid the OBS problem
2020-03-18 22:40:47 +01:00
28d3767e81
Replace declined requests
A common workflow is:
* pkg is being marked for deletion by repo-checker [botdel]
* User comes to the rescue and fixes the package, Submits the fix
* Commonly, the delreq is being declined (by factory-maintainer)
* factory-auto declines SR, as pkg now has a delreq and subreq pending
* factory-auto does not consider the 'declined' request as replacable
  and complains that it should be revoked (or superseded). Since the
  del req was created by repo-checker, 'nobody' has the credentials to
  revoke the request. The user, not having a role in the old SR, has
  no permission to supersede

So let's just accept a delete request in statet 'declined' as something
  that can be replaced by a submit request for the same package.
2020-02-28 12:52:01 +01:00
7c86e7f219 stagingapi: replace staging project URL to staging workflow on adi project 2020-02-19 20:08:11 +08:00
7effeb49e5 stagingapi: StagingAPI doen't initial api itself 2019-12-10 18:20:20 +08:00
Stephan Kulow
345321f98d Don't take multibuild packages as subpackage of itself 2019-12-06 11:43:59 +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
Stephan Kulow
7113e5fedc Add test for selecting multibuild with 2 spec 2019-12-05 16:52:05 +01:00
Stephan Kulow
ce9158abcc Remove support for ring2 2019-12-05 16:52:05 +01:00
32ad0adc2d Fix all E22x errors
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
8483632683 Some flake8 improvements
Was bored while waiting for a test run to finish. The rule is
that two empty lines distinguish larger blocks and shouldn't be
used between functions or within functions.
2019-11-27 10:40:15 +01:00
Stephan Kulow
338a0adf14 Remove linkpac code - the api is doing this (for the main package) 2019-11-26 15:57:39 +01:00
Stephan Kulow
fb928e3637 No longer ignore exceptions on unstage 2019-11-26 15:56:33 +01:00
ab97823964 stagingapi: Supersedes request is from the same project
If the request is from the same project then just supersedes the old
ones. The request is from the different project then put it to excluded
list as the right behavior for Leap.
2019-11-26 19:23:32 +08:00
Stephan Kulow
90a843f9f7 Implement select --move by unselect+select 2019-11-25 17:09:39 +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
fb87bf19d8 stagingapi: just superseding old obsoleted request 2019-11-22 19:00:43 +08:00
ec3a4a0447 stagingapi: Don't do any change for excluded request
If the reqeust was in the excluded list, those can not be change the
state or any other action on them, therefore ignores them during
superseding.
2019-11-22 18:53:06 +08:00