Stephan Kulow
e4cb06a692
Do not decline requests with download_files errors
...
The URLs might suffer from flaky networks, so just block the request
from accepted for now (and extend the review comment to make it
discoverable why factory-auto didn't approve)
Fixes #2666
2022-03-25 12:11:35 +01:00
Stephan Kulow
55c4081ec0
check_source: Allow a .changes line to mention 2 patches
2022-03-25 11:26:53 +01:00
Stephan Kulow
ae658fefe2
Move download URL check to check_source.py
...
And with that, check_source.pl is gone
2022-03-25 09:19:24 +01:00
Stephan Kulow
ed87520710
Ignore patches that are listed as sources
...
The patch live cycle does not apply to them
2022-03-25 07:39:17 +01:00
Stephan Kulow
6931c44099
Run source_validator scripts from check_source.py directly
2022-03-24 17:42:52 +01:00
Stephan Kulow
88749aa5b4
Move license check from check_source.pl to .py
2022-03-24 17:42:52 +01:00
Stephan Kulow
b558e2617c
Move changes check from check_source.pl to .py
2022-03-24 17:42:52 +01:00
Stephan Kulow
d1ddbc5831
Move spec file checks from check_source.pl to .py
2022-03-24 17:42:52 +01:00
Stephan Kulow
7083c3346b
Unskip test for remote services - miniobs got updated
2022-03-24 17:42:52 +01:00
Stephan Kulow
e7c7a4097b
Add test for remote services in factory-auto
...
Can't test it atm, need to have miniobs updated first
2022-03-24 10:31:34 +01:00
Stephan Kulow
f77f726419
Add test for setBadness in check_source
...
As this is a security feature, we better make sure it's not breaking
2022-03-24 09:10:01 +01:00
Stephan Kulow
856c9d3c9a
tests: Make use of fixtures to be able to test different workflows
...
Check_source supports multiple different target projects only
different by their remote config. So put this config into a fixture,
so we can mark every test with what config it should run
2022-03-08 12:08:12 +01:00
Stephan Kulow
c412dada22
CI: Split the tests in multiple runs
...
A test run of 40 minutes is just too much to wait for. So tag the long
running jobs to run in a special run
2022-03-07 18:48:43 +01:00
Stephan Kulow
aaab4af930
Target F401 - Unused imports
2022-02-18 18:29: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
579145b52c
Target F841 - Remove unused variables
2022-02-18 17:01:38 +01:00
Josef Reidinger
8bef4c3cf2
check_source: Fix revert case for patch detection (fix#2640)
2021-09-23 10:58:23 +02:00
Ancor Gonzalez Sosa
28c771927a
Rename OBSLocal.StagingWorkflow to OBSLocal.FactoryWorkflow
2021-09-09 15:07:34 +02:00
Ancor Gonzalez Sosa
f85c1b46b6
Some convenience extensions to OBSLocal
2021-08-04 17:25:46 +02:00
Ancor Gonzalez Sosa
038bfef67b
OBSLocal: improved management of meta
2021-08-03 13:00:01 +02:00
Ancor Gonzalez Sosa
86e9f3ad22
Tiny fix in check_source_test.py
2021-08-03 12:59:59 +02:00
Josef Reidinger
12dc09c900
Add test for inherit maintainer role
...
Inherited maintainer role is explicitelly ignored to force setting
of maintainer to required user. The test verify behavior and
allows easier future changes of such behavior.
2021-07-28 16:48:39 +02:00
Josef Reidinger
75226473fc
Avoid creation of duplicate add_role requests ( fixes #2609 )
2021-07-28 09:51:28 +02:00
Imobach González Sosa
00ea25e609
Properly handle required-source-maintainer when it is group
...
Co-authored-by: Knut Alejandro Anderssen González <kanderssen@suse.com>
2021-07-14 10:52:09 +01: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
Imobach González Sosa
d8822dcfdc
Add descriptions to check_source tests
2021-07-13 11:39:27 +01:00
Imobach González Sosa
b9044fc11a
Test accepting a package from a devel project
2021-07-08 14:38:09 +01:00
Ancor Gonzalez Sosa
a5a56061a7
Initial testcase for check_source.py
2021-07-08 14:38:09 +01:00