Stephan Kulow
673084d753
Merge check_source_in_factory into check_tags_in_requests.py
...
Followup #2781
2022-03-30 08:31:58 +02:00
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
939beac7fe
Merge pull request #2771 from coolo/fix_minversion
...
Stay with minversion 3.6 (and require module we already use elsewhere)
2022-03-25 10:47:21 +01: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
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
db41ef3536
Add a test case for check_bugowner
2022-03-10 11:40:09 +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
a1f7a16e6f
tests: Fix api_tests to mock attribute not mtime
2022-03-04 11:11:42 +01:00
Stephan Kulow
00af16cc80
tests: Create OSRT:FreezeTime for all tests
2022-03-04 09:48:06 +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
5df665ccc5
Targeting E123 - Closing bracket does not match indentation
...
https://www.flake8rules.com/rules/E123.html
2022-02-18 15:52:47 +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
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
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
Ancor Gonzalez Sosa
4991dbce07
Fix tests
2021-10-01 14:56:50 +02:00
Josef Reidinger
8bef4c3cf2
check_source: Fix revert case for patch detection (fix#2640)
2021-09-23 10:58:23 +02:00
Stephan Kulow
a8f7146baf
Remove E713 offense from flaker
2021-09-21 14:20:08 +02:00
Ancor Gonzalez Sosa
6540e8baad
Test to showcase a submit request to SLE
2021-09-16 16:47:09 +02:00
Ancor Gonzalez Sosa
57abe5728b
Merge pull request #2626 from ancorgs/obslocal_refactor
...
Small OBSLocal refactoring
2021-09-16 15:32:49 +02:00
Ancor Gonzalez Sosa
2213e2c89c
Fix typo in documentation
2021-09-16 14:59:11 +02:00
Ancor Gonzalez Sosa
3d466b2b19
OBSLocal: functions to easily manage several review bots
2021-09-15 15:55:16 +02:00
Ancor Gonzalez Sosa
c9ff2171c3
OBSLocal: rename assertReviewBot to assertReviewScript
...
The function fully relies on the content of the script attribute and all other
functions that do so contain "script" in the name instead of "bot".
2021-09-15 15:08:11 +02:00
Ancor Gonzalez Sosa
8c1cac7d76
OBSLocal: improve documentation about scripts and asserts
2021-09-15 15:07:41 +02:00
Josef Reidinger
877432d24a
Merge pull request #2630 from openSUSE/test_fixes
...
fix deprecation warning
2021-09-10 20:52:33 +02:00
Ancor Gonzalez Sosa
d31398e85a
OBSLocal: small reorganization
2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
7f377f082f
Extract useful stuff to a base OBSLocal.StagingWorkflow class
2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
ca3eb87931
OBSLocal: clarify some aspects of attributes management
2021-09-09 20:58:17 +02:00
Ancor Gonzalez Sosa
8864e9ccee
Rename test file to ensure it is executed in CI
2021-09-09 15:07:34 +02:00
Ancor Gonzalez Sosa
28c771927a
Rename OBSLocal.StagingWorkflow to OBSLocal.FactoryWorkflow
2021-09-09 15:07:34 +02:00