234 Commits

Author SHA1 Message Date
Jimmy Berry
4c8ade1a93 flake8: utilize raw strings to avoid invalid escape character warnings. 2018-10-24 16:34:16 -05:00
Stephan Kulow
ff84b79171 We need the images repo published to have a status check
We can't generally assume ISOs can be fetched from backend (we can't
have this on IBS), so publish it - and disable the actual publishing
on the staging backend of OBS
2018-10-12 13:00:18 +02:00
Stephan Kulow
e6bf5ccb7b Do no longer CC submitters in request comments
Submitters complain more and more about the spam they're getting from
staging projects - and we rather leave that weapon for actual feedback.

One especially annoying case is if a package is added to one staging project
and then later moved to another, the submitter will receive notifications
of all kind of bots and actions for both staging projects.
2018-10-04 09:52:49 +02:00
Jimmy Berry
d74c1c69ff osclib/cache_manager: rework base directory handling.
Ensure the returned directory is always created and while continuing to
handle test mode.
2018-09-13 20:26:08 -05:00
Jimmy Berry
c47bb4c902 Utilize CacheManager for all existing caches. 2018-09-04 15:19:02 -05:00
Jimmy Berry
d1274ecd1b tests/factory_source_tests: update query after osc@f1c3156.
Drop submit xpath references in favor of action only. A prime example
of the brittleness of this style of test.
2018-08-30 21:56:19 -05:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
dbfafe8e85 osclib/conf: utilize repo_checker-project-skip for OBS SLE projects. 2018-08-23 00:13:30 -05:00
Jimmy Berry
f0fadd6a05
Merge pull request #1650 from jberry-suse/conf-exclude-sub-projects
osclib/conf: exclude sub-projects from matching project patterns (and Leap:N:Update defaults)
2018-08-17 10:53:24 -05:00
Jimmy Berry
5b5d917074 osclib/conf: provide cached get() method to supersede ReviewBot cache.
Given the slow migration of everything to the shared project config in
tools that change project contexts multiple times a consistent way of
accessing the config without forcing remote calls is needed.
2018-08-17 10:16:43 -05:00
Jimmy Berry
5b44ea188d osclib/conf: provide Leap:N:Update default settings. 2018-08-17 00:08:09 -05:00
Jimmy Berry
dace1c3997 tests/obs: improve format of default Config attribute. 2018-08-16 21:54:20 -05:00
Jimmy Berry
760ddf39e6 osclib/conf: decouple from StagingAPI and always fetch remote config.
As the remote config is no longer optional for SLE and is utilized by
openSUSE to the point were it is dangerous not to load the remote config
it should be required. Currently only certain users call apply_remote()
while this will make it built-in during construction and thus makes the
usage consistent and no longer require StagingAPI.
2018-08-16 21:53:40 -05:00
Björn Geuken
9552b16330 Rename superseded_by_id to superseded_by
OBS is going to drop the superseded_by_id attribute soon as it is just
an alias for superseded_by.
2018-08-01 10:49:10 +02:00
Stephan Kulow
ae97da90e5 Remove more of :DVD subproject handling 2018-07-05 20:43:07 +02:00
76c20501ab tests: remove all subproject related part 2018-07-05 17:01:37 +08:00
Ludwig Nussel
9e59de4feb stagingapi: add support for Backports 2018-07-03 15:25:56 +02:00
30c32af1aa No longer have Ring2 and staging :DVD subproject 2018-06-29 18:29:47 +08:00
Ludwig Nussel
cc2fa88058 leaper: adjust for SLE 15SP1 and SLE12SP4 2018-06-28 14:24:35 +02:00
Stephan Kulow
0180de281a Fix test cases 2018-06-15 13:16:46 +02:00
Jimmy Berry
a40ebc1544 ReviewBot: provide comment command override.
For example:

  @leaper override accept
  @repo-checker override decline
2018-03-06 16:42:12 -06:00
Jimmy Berry
78c87be188 osclib/util: project_list_family_prior(): provide last parameter. 2018-02-12 17:55:39 -06:00
Jimmy Berry
47bc54daae osclib/util: project_list_family(): handle IBS SLE naming style. 2018-02-12 17:31:26 -06:00
Jimmy Berry
c57afdd258 osclib/util: provide project_list_family* and project_version(). 2018-02-06 00:13:43 -06:00
Jimmy Berry
b1ec7efb3c osclib/stagingapi: get_staging_projects(): utilize project_list_prefix(). 2018-02-06 00:13:43 -06:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
Jimmy Berry
6631598dc6 ReviewBot: comment_write(): provide bot_name_suffix parameter.
Cleanly allows for multiple comments from the same tool on one entity.
2018-01-19 08:50:32 -06:00
Jimmy Berry
61c83500d3 osclib/conf: allow devel projects to utilize tools that require conf. 2018-01-08 21:22:04 -06:00
Jimmy Berry
865750258c osclib/conf: order config defaults by priority.
Ensures that less specific patterns do not overtake more specific patterns
by allowing for priority based ordering.
2018-01-08 21:21:51 -06:00
Jimmy Berry
43dea82d28
Merge pull request #1319 from jberry-suse/ReviewBot-tests
tests/ReviewBot: add full set of comment_write() tests.
2018-01-04 07:59:35 -06:00
Jimmy Berry
4634d44c21 tests/ReviewBot_tests: add test_dryrun(). 2018-01-03 17:58:09 -06:00
Jimmy Berry
6408478581 tests/ReviewBot_tests: add test_only_replace_none(). 2018-01-03 17:52:27 -06:00
Jimmy Berry
9c44f78cdf tests/ReviewBot_tests: add test_workflow() complex test. 2018-01-03 17:52:14 -06:00
Jimmy Berry
0bf1c79e03 tests/ReviewBot_tests: add test_basic_logger() as initial test. 2018-01-03 17:51:52 -06:00
Jimmy Berry
23542327e1 tests/comment_test: add test_delete_nested(). 2018-01-03 16:40:29 -06:00
Jimmy Berry
20f73f49b2 tests/comment_test: add test_delete_batch(). 2018-01-03 16:25:43 -06:00
Jimmy Berry
f514b22828 tests/comment_test: add test_basic() against OBSLocal. 2018-01-03 16:25:28 -06:00
Jimmy Berry
89ebe7e67d tests/comment_test: move COMMENT* constants to file level. 2018-01-03 16:24:21 -06:00
Jimmy Berry
df8cd0f677 tests/OBSLocal: re-parse config and reset authentication when changing user.
Previously, the user was changed, but the authentication not reset. For
osc.core calls made within the text context they would still run as Admin
while separate processes (like scripts) would run as the desired user. As
such this was not an issue before since only scripts were meant to run as
a different user.
2018-01-03 16:22:13 -06:00
Jimmy Berry
f1462def6e tests/OBSLocal: setup test separate cookiejar. 2018-01-03 16:19:28 -06:00
Jimmy Berry
7778d056d7 tests/comment_tests: add test_comment_find(). 2018-01-03 14:34:05 -06:00
Jimmy Berry
2bedaf61f4 tests/comment_tests: add test_remove_marker(). 2018-01-03 14:33:38 -06:00
Jimmy Berry
344520c424 tests/comment_tests: add test_add_marker(). 2018-01-03 14:32:13 -06:00
Jimmy Berry
e3150a7626 tests/OBSLocal: invoke scripts using coverage to include in report. 2017-10-24 18:06:33 -05:00
Jimmy Berry
e0491e3aae tests/OBSLocal: split out execute() to provide osc and generic versions. 2017-10-24 18:05:48 -05:00
Jimmy Berry
476fbcd818 tests/OBSLocal: include assertOBS() to clarify OBS status before test.
Otherwise, end up with first OBS call in test failing which does not make
the issue as clear to understand.
2017-10-24 18:05:48 -05:00
Jimmy Berry
6faebca998 tests/OBSLocal: add email and include spaces in generated oscrc file. 2017-10-24 18:05:48 -05:00
Jimmy Berry
69a02fde86 tests/OBSLocal: rework OSCRC handling to use non-default file. 2017-10-24 18:05:38 -05:00
Jimmy Berry
c5cf186d18 tests/OBSLocal: add workaround for obs.py leakage. 2017-10-24 18:00:47 -05:00
Jimmy Berry
ed662be413 tests/devel_project: provide basic test against local OBS. 2017-10-24 17:55:31 -05:00