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
Jimmy Berry
753f6c7a6a
Merge pull request #1362 from jberry-suse/docker-compose-obs-osc-debug
...
dist/ci/docker-compose-obs: print osc output on timeout for debugging.
2018-01-25 09:34:57 -06:00
Jimmy Berry
6e5eef80bd
dist/ci/docker-compose-obs: print osc output on timeout for debugging.
2018-01-25 09:21:55 -06:00
Jimmy Berry
6326c60990
dist/ci/obs-deploy: only commit if new source revision.
2018-01-25 08:59:52 -06:00
Jimmy Berry
02f11fa66e
dist/ci/obs-deploy: require greater than six lines changed to create request.
2018-01-25 07:54:55 -06:00
Jimmy Berry
d05b591a01
dist/ci/obs-deploy: only bother making request if diff.
2018-01-19 15:26:12 -06:00
Jimmy Berry
88add9aefa
dist/ci/obs-deploy: limit request list
by user to avoid source requests.
...
Otherwise, requests from Factory to Leap will prevent request to Factory
from being generated.
2018-01-19 15:24:26 -06:00
cff9f534ae
Don't checkout master
2017-12-19 13:15:06 +01:00
Jimmy Berry
c4d8661f1c
travis: provide local OBS setup and clone base data.
2017-10-24 17:55:32 -05:00
ed01f0681d
Parallelize flake8 run
...
rather than find / xargs we run flake8 over everything which uses all
available cpus by default. Also set max line length to 100 because jimmy
likes it.
2017-10-20 08:54:11 +02:00
Jimmy Berry
e36827e184
dist/ci/docker-run: utilize throwaway credentials to workaround OBS issue.
2017-10-19 21:58:52 -05:00
Jimmy Berry
d33ed73a7c
dist/ci/osc-init: print OBS_API and OBS_USER for debugging.
2017-10-19 21:58:52 -05:00
Jimmy Berry
80bac0d71f
dist/ci: use hidden directory .docker-tmp instead of HOME and cache on travis.
2017-10-19 21:58:52 -05:00
Jimmy Berry
3fb1a4a641
dist/ci: fallback to /public OBS API in the event of no OBS_PASS
2017-10-19 21:58:52 -05:00
Jimmy Berry
846eb45a6f
dist/ci: provide OBS_API parameter.
2017-10-19 21:58:52 -05:00
Jimmy Berry
4bc92ac0c1
dist/ci: rework spec.sh as obs-build-target using osc build
.
...
Instead of performing a slim rpm build and check directly inside the
container a proper build is performed using `osc build`. The target
package is checked out the _service file pointed at the local copy
and then `osc service disabledrun` before building.
2017-10-19 21:58:49 -05:00
Jimmy Berry
a777ec97da
dist/ci: extract common osc setup as osc-init and provide in /usr/bin.
2017-10-19 21:58:29 -05:00
Jimmy Berry
721bb1ed6a
dist/ci/Dockerfile: include obs-deploy in /usr/bin.
...
Paving the way for this image to be built outside of this repository.
2017-10-19 21:58:29 -05:00
Jimmy Berry
6387768211
dist/ci: rename deploy.obs.sh to obs-deploy.
2017-10-19 21:58:29 -05:00
Jimmy Berry
88ebbd6c95
dist/ci/deploy: only commit if changes available to commit.
2017-10-19 21:58:29 -05:00
Jimmy Berry
9392b4daa9
dist/ci/deploy: only add line if missing from _servicedata.
...
Avoids duplication when multiple PRs are merged quickly after one another.
2017-10-19 21:58:29 -05:00
Jimmy Berry
c2ddfaee4b
dist/ci/Dockerfile: switch to base tumbleweed image.
...
The official base image is now updated regularly so no need to use
custom rebuilding image.
2017-10-19 21:58:29 -05:00