Stephan Kulow
0457bad967
dist: Enable the ability to run services in miniobs
...
I went for recompress and format_spec_file - all other services will
result in broken packages
2022-03-24 10:13:46 +01:00
Stephan Kulow
9e3c0f19e9
CI: adapt miniobs to use the ruby OBS was built with (3.1)
2022-03-17 11:41:54 +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
95db8a0091
More origin manager cleanup
...
As we don't do automatic origin updates in no project, remove the
update monitors. Those have been paused on botmaster for half a year
and just no project relies on them any longer
2022-02-25 10:10:09 +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
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
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
00fbc99195
ci: We don't use coveralls anymore
2022-02-08 14:46:24 +01:00
Stephan Kulow
f375931188
miniobs: The upstream OBS project changed repo names
2021-10-27 09:16:25 +02:00
Stephan Kulow
d0cf0d4501
CI: Run Tumbleweed container as priveleged in docker
...
This avoids the syscall filter breaking with new glibc
2021-09-30 10:29:35 +02:00
Josef Reidinger
e0d3ba3c95
Adds dependency for full check_source testing
2021-09-22 22:16:36 +02:00
Stephan Kulow
a3e5ce7e2d
Make use of the 15.3 miniobs container
2021-09-21 14:41:43 +02:00
Stephan Kulow
b1bcbf7399
miniobs: Use 15.3 repos - 15.1 is EOL
2021-09-21 10:54:29 +02:00
Josef Reidinger
c988ff7890
Use pytest instead of nosetests ( fixes #2524 )
2021-07-13 13:06:35 +02:00
Josef Reidinger
ebd936e980
Preparation for switch from nosetests to pytest
...
The preparation is needed so no workaround is needed when validating
that all tests passed when switched from nosetests to pytest. Nosetests
will be removed as part of final switch change.
2021-07-12 22:34:45 +02:00
Josef Reidinger
8a6398fecf
Run perl checks as part of flaker ci task
2021-07-09 08:24:07 +02:00
Imobach González Sosa
108f00647f
Add missing libraries to testenv image to run check_source.pl
2021-07-08 12:25:43 +01:00
Imobach González Sosa
d0220d2918
Allow adjusting the exposed OBS port in Docker Compose
2021-07-02 08:37:46 +01:00
Imobach González Sosa
88b476919c
[CI] Expose port 3000 of the api service
2021-07-01 15:58:10 +01:00
Stephan Kulow
1acf69713c
Use codecov for coverage - easier GA integration
2021-06-18 13:17:57 +02:00
Steve Kowalik
326a087168
Switch to python3 shebang
...
With the python shebang remaining as Python 2, switch the scripts to
using Python 3. This also allows us to clean up some imports.
2021-02-03 14:53:42 +11:00
Stephan Kulow
583b7bd6c1
miniobs: Fix database setup for rails 6
2020-04-30 12:06:58 +02:00
Stephan Kulow
5cba9ae5b2
Run delayed job in the api container
...
accepting is a delayed job, so it needs to run in some queue
2019-11-20 16:10:30 +01:00
Jimmy Berry
af68882f02
dist/ci/docker-compoose-test: include which test file is be executed.
2019-11-07 10:16:17 -06:00
Jimmy Berry
fe45de0a42
dist/ci/flake-extra: include origin_listener in product check.
2019-11-04 13:22:38 -06:00
Stephan Kulow
9b035e3e8c
Start searchd in api container
...
Since https://github.com/openSUSE/open-build-service/pull/8558 OBS Api
now requires a searchd for creating projects, previously it was only
required for searching in the webui
2019-11-04 11:59:33 +01:00
Stephan Kulow
0cb54b8be0
Add a dummy user/password to the openSUSE:Factory section
...
See https://github.com/openSUSE/osc/issues/667 - we might want to remove
the feature to override settings locally this way and stop mangling with
osc's config file
2019-11-04 11:59:33 +01:00
Stephan Kulow
24a8cf2b2f
testenv: install shadow for useradd
2019-10-19 13:18:42 +02:00
Stephan Kulow
0bb1be46b3
Add little SMTP server that does not send mails for testing
...
Not yet used, but hopefully will be useful for fully testing build fail
reminder
2019-09-03 19:43:15 +02:00
Stephan Kulow
8ad48c6c09
No need to install flake8, it's part of the image now
2019-05-29 13:37:34 +02:00
Stephan Kulow
e94d5da434
Need to use http urls for obs to map it
2019-05-29 11:28:17 +02:00
Stephan Kulow
4a0df7a257
Require newly released osc for python3 fixes
2019-05-22 07:49:45 +02:00
Stephan Kulow
c976a46113
Switch miniobs to use 15.1
2019-05-18 18:06:56 +02:00
Stephan Kulow
227e3ad0a8
Simplify travis setup even more: deploy in gocd
...
Fixes https://github.com/openSUSE/openSUSE-release-tools/pull/2000
2019-05-11 11:01:40 +02:00
Stephan Kulow
106ef6ae69
Run flake8 from Tumbleweed
2019-05-06 23:13:27 +02:00
Stephan Kulow
8ba4e2fb84
Run the nosetests in a tumbleweed container instead of travis environment
...
The docker-compose file starts an OBS instance (on 15.0 atm) and runs
the test suite in a test container (tumbleweed), so all tests run in
an isolated environment accessing OBS at api:3000
2019-05-04 15:44:39 +02:00
Stephan Kulow
14303a60da
Add container for testing in leap 15.1
...
The container will be built on OBS and be used on travis to avoid waiting
for the container to build (or to error because of download.opensuse.org madness)
2019-05-03 09:41:37 +02:00
Jimmy Berry
83c170660f
dist/ci/flake-extra: include osc-origin.py in product grep.
2019-05-01 18:25:04 -05:00
Stephan Kulow
4a98010259
Add small OBS instance without data
...
The default user is Admin:opensuse and the docker compose opens
only one port at 3737 running the api/webui
This can be used for CI on sources or to build against it with osc
(if you add interconnect project), but it won't build packages
2019-04-30 09:09:54 +02:00
Jimmy Berry
a2e17deb67
dist/ci/Dockerfile: change from Tumbleweed to Leap for build host.
...
There is no need for Tumbleweed base as only the latest stable osc tools
and openSUSE:Tools packages should be needed. Unlike run-time for
repo-checker which is limited by latest solver stack the distribution
test suite has no need.
Currently, there is a zypper related segfault, #1887 , that breaks the
test suite and demonstrates an advantage to switching to Leap.
2019-03-06 14:49:06 -06:00
Jimmy Berry
af6457c270
travis: add check to complain about product references in origin-manager.
2019-02-15 14:16:50 -06:00
Jimmy Berry
ae01d143c9
dist/ci/obs-build-target: utilize TAR_SCM_TESTMODE to avoid URL check.
...
See #1732 for details, but summarized the CI uses a local path which
differs from the normal remote URL which causes tar_scm service to
complain and no re-create the obscpio. See
openSUSE/obs-service-tar_scm@44b3bee for the relevant change.
2018-10-17 15:55:26 -05:00
Jimmy Berry
26c6dba22d
dist/ci/obs-build-target: stop at first error.
2018-10-17 15:42:55 -05:00
Jimmy Berry
4c01a602a7
dist/ci/osc-init: allow output file location to be set via OSCRC env var.
2018-09-13 20:26:08 -05:00
Jimmy Berry
61b055e46d
Revert "dist/ci/Dockerfile: add python2-pyOpenSSL as dependency."
...
This reverts commit c3df9508696dbca3b8e0835704814442ac1871dc.
Fixed upstream in openSUSE/osc#429 .
2018-07-19 08:26:07 -05:00
Jimmy Berry
c3df950869
dist/ci/Dockerfile: add python2-pyOpenSSL as dependency.
...
Pending a proper resolution to openSUSE/osc#429 .
2018-06-13 20:57:39 -05:00
Jimmy Berry
dc1dc370a6
dist/ci/obs-build-target: in include --always to git describe.
...
Otherwise, it fails in certain cases which is undesirable.
2018-04-17 16:11:46 -05:00
01ad67bce4
Use opensuse/tumbleweed in the Dockerfile
...
opensuse:tumbleweed will be removed and we want dogfooding anyway.
2018-03-15 14:55:54 +01:00
Jimmy Berry
944a7720f7
dist/ci/obs-deploy: replace osc request list
with osc api
call.
...
Even after trying to workaround requests sourced from target package
(ex. Factory -> Leap) by using -U the query still behaves incorrectly
since both -U and -M do not return request created by user as documentation
suggests, but rather those who are last user in state. This works as
expected directly after a request is created, but not once another user
modifies it.
At this point just avoid the mess entirely and issue query for exactly
what is desired which avoids user altogether.
2018-01-25 09:56:10 -06:00