406 Commits

Author SHA1 Message Date
b9d0e32a54
Fixes for osc-1.x 2023-01-25 14:17:29 +01:00
Stephan Kulow
693346c7db check_source_tests: Adopt expected error to latest changes 2023-01-02 19:44:28 +01:00
Stephan Kulow
f18f3f16aa Adapt check_source test to latest source validator output 2022-11-11 10:28:39 +01:00
Stephan Kulow
8b9933edfb check_bugowner: Don't get tripped over trailing space 2022-11-11 10:28:00 +01:00
Stephan Kulow
449b586cc9 Ignore starting white space in bugowner lines
workaround for https://github.com/openSUSE/open-build-service/issues/13010
2022-08-30 09:39:03 +02:00
Stephan Kulow
009c133907 Add test for group in bugowner line 2022-08-29 16:03:34 +02:00
a5a65fe69c Dont use garbled patches for test fixture
obs-service-source_validator recently gained the feature to reject
empty or garbled patches, and hence this was failing. Use a validly
formatted patch instead.
2022-08-04 16:43:30 +02:00
Stephan Kulow
66bd39eab5 Accept_command: create set_bugowner requests 2022-04-05 19:00:05 +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
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