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
ffc9b22e0a
Merge pull request #1999 from coolo/remove_vcr
...
Remove more references to vcr
2019-05-11 10:40:30 +02:00
Stephan Kulow
d57ba61df5
Remove more references to vcr
...
I tried to replace the Mocking of functions with httpretty, but
unfortunately httpretty replaces all other API calls with 404s then.
What we'd need is a library sniping out single requests - possibly
by mocking the http_GET function, but that's tricky as well with
caching already overwriting it
2019-05-11 10:26:35 +02:00
Jimmy Berry
fbd1bbd4e2
Merge pull request #1998 from jberry-suse/obs_operator-handle-multilevel-domains
...
obs_operator: handle multi-level origin domains.
2019-05-10 12:12:02 -05:00
Jimmy Berry
74eb4a3955
obs_operator: handle multi-level host domains.
2019-05-10 11:53:28 -05:00
Jimmy Berry
d8df047d24
obs_operator: handle multi-level origin domains.
2019-05-10 11:44:26 -05:00
Jimmy Berry
a18d69a6e3
Merge pull request #1996 from jberry-suse/origin-manager-web-multilevel-domain
...
web/origin-manager: handle multi-level domains.
2019-05-10 11:35:13 -05:00
Jimmy Berry
b990f0622b
Merge pull request #1995 from jberry-suse/ci-deploy-fix
...
travis: restore deployment functionality.
2019-05-10 11:23:40 -05:00
Jimmy Berry
7abcbe9d54
web/origin-manager: handle multi-level domains.
...
Only consider the last two parts (base domain) as parent.
2019-05-10 11:22:20 -05:00
Jimmy Berry
3c9bf59258
web/origin-manager: correct indentation of bootstrap import.
2019-05-10 11:21:37 -05:00
Jimmy Berry
e9d725b402
travis: restore deployment functionality.
...
All other test suites were removed which makes the condition never met.
2019-05-10 11:11:15 -05:00
Jimmy Berry
c812ec9d38
Merge pull request #1994 from jberry-suse/obs-operator-origin-manager-report-systemd
...
systemd: include OBS Operator origin manager report service template.
2019-05-10 11:05:16 -05:00
Jimmy Berry
e3a4af235b
systemd: drop --debug from obs_operator service.
2019-05-10 10:30:22 -05:00
Jimmy Berry
e46791774e
systemd: include OBS Operator origin manager report service template.
2019-05-10 10:30:04 -05:00
Jimmy Berry
7de28a29fb
Merge pull request #1993 from jberry-suse/metrics-reduce-request-scope
...
metrics: reduce request period to after 450000.
2019-05-09 17:31:33 -05:00
Jimmy Berry
40b89d01c9
metrics: reduce request period to after 450000.
...
Works around ingest job crashing due to lack of memory. Hard to properly
workaround due to lack of sort API option from OBS.
2019-05-09 15:36:01 -05:00
18234ae19d
Merge pull request #1992 from nilxam/pkg_exists_vdelreq
...
vdelreq: ensure package does exist before checking binary
2019-05-09 16:23:50 +08:00
706607ab84
vdelreq: ensure package does exist before checking binary
2019-05-09 15:57:00 +08:00
Stephan Kulow
06e9685b2b
Merge pull request #1955 from coolo/fix_select2
...
Rework handling of packages with multiple specs
2019-05-07 08:23:27 +02:00
Stephan Kulow
4e5a0e2279
Merge pull request #1990 from coolo/merge_flake8
...
Run flake8 from Tumbleweed
2019-05-07 08:23:01 +02:00
Stephan Kulow
106ef6ae69
Run flake8 from Tumbleweed
2019-05-06 23:13:27 +02:00
Stephan Kulow
925032e0f9
Redo select tests to test package with multiple spec files
2019-05-06 22:38:57 +02:00
Stephan Kulow
aa70305aa2
Fix delete requests with multiple spec files
...
First gather the links and then wipe - or it will always be empty
2019-05-06 21:36:18 +02:00
Stephan Kulow
00a0bdc982
freeze: Stop ignoring inter project links
...
We link all packages by their srcmd5 - and only fix the links on
selecting new packages
2019-05-06 21:36:18 +02:00
Stephan Kulow
2765089077
freeze: Remove code handling Test-DVD
...
We no longer have products using that
2019-05-06 21:36:18 +02:00
Stephan Kulow
bb23be210b
For consistency reasons always link the sub packages we're selecting
...
So far we skipped links between packages in the same ring because we've
frozen a _link pointing from one to the other, but this does not work
with default OBS and creates quite some problems also in adi projects
where it's trying to be smart.
Now simplify this a lot by simply linking it in any case
2019-05-06 21:36:18 +02:00
Stephan Kulow
fdea133415
Merge pull request #1982 from lnussel/master
...
userscript/origin.user.js: nice icons
2019-05-06 21:28:51 +02:00
Stephan Kulow
bf8ef5152a
Merge pull request #1981 from coolo/vcr
...
Port to python3 and test in tumbleweed containers
2019-05-06 21:25:28 +02:00
Stephan Kulow
1812800be5
Ignore tests in coverage report
...
nosetests default match for test files doesn't seem to match our files,
so most coverage we have is actually test code
2019-05-05 10:49:05 +02:00
Stephan Kulow
9dcb403753
Merge vcrhelpers into OBSLocal
...
There are no more vcrs only a local OBS - even if not exported to
localhost
2019-05-05 10:49:05 +02:00
Stephan Kulow
70dd0ef20f
Simplify httpretty usage
...
Don't pass regexps but real URLs, otherwise the matching won't work.
On travis and leap 15.1 we have httpretty 0.9.5 which won't uncover
the problem, but on Tumbleweed we have 0.9.6 that shows it
2019-05-05 10:49:05 +02:00
Stephan Kulow
58d6d7ca16
Python3 fixes
2019-05-04 15:44:44 +02:00
Stephan Kulow
3b568a60dd
Create fixtures for devel_project_tests
2019-05-04 15:44:44 +02:00
Stephan Kulow
767f3e453b
Fix comment_tests to create fixtures
2019-05-04 15:44:44 +02:00
Stephan Kulow
a4614ac13e
Create user before using it
2019-05-04 15:44:44 +02:00
Stephan Kulow
0e00c83f09
Rename OBSLocal.OBSLocalTestCase to OBSLocal.TestCase
...
And make use of it in the vcrhelper using tests
2019-05-04 15:44:44 +02:00
Stephan Kulow
5721cee783
Create a real staging setup for freeze tests
...
If it's an empty project only we're freezing, the backend 'remembers' the
mtime of previous versions of the project (delete only marks it for undelete,
so creating a new empty project is just deleting this mark and as such doesn't
change the mtime).
So we need to have a new wine package with fresh content to change mtime
during freeze
2019-05-04 15:44:44 +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
8a7b65d505
Remove fake OBS in favor of using generated test data
2019-05-04 15:44:39 +02:00
Stephan Kulow
5f3dcca267
Fix OBSLock to always write full ISO format
...
If the microseconds are 0, isoformat won't output any, but our _parse
function expects them. python 3.7 has isoformat/fromisoformat, which
would fix it, but we can't take it atm
2019-05-04 15:44:39 +02:00
Stephan Kulow
0693c88977
Fix crash on staging project without flag section
2019-05-04 15:44:39 +02:00
Stephan Kulow
c5e7fc3570
obs_clone: remove watchlist from persons
...
We don't want these projects
2019-05-04 15:44:39 +02:00
Stephan Kulow
64ad083d84
Merge pull request #1984 from coolo/build_in_obs
...
No longer build packages in travis but in OBS
2019-05-04 15:34:01 +02:00
Stephan Kulow
afbd01eb38
Do not build packages in travis but in OBS
...
Together with ChrisBr I developed a solution to test the package build of
a git report directly in OBS. It's currently in phase of refactoring, so
I forked it temporarly to https://github.com/coolo/pull_request_package
and setup a local cron job to run
docker run -v=/space/puller-config:/config -t openqapusher/osrt_pull_request_package
every 5 minutes.
2019-05-03 14:43:48 +02:00
Ludwig Nussel
d7ba2a2891
userscript/origin.user.js: nice icons
...
spinner and such
2019-05-03 13:05:21 +02:00
Stephan Kulow
47162d79f0
Merge pull request #1980 from coolo/add_testing_container
...
Add container for testing in leap 15.1
2019-05-03 09:59:32 +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
Stephan Kulow
6508d76633
Merge pull request #1976 from jberry-suse/origin-manager-revision-state-none-origin
...
origin-manager: handle no origin when determining revision state.
2019-05-03 06:45:56 +02:00
Stephan Kulow
7c8e5731b5
Merge pull request #1978 from jberry-suse/osclib-conf-all-strings
...
osclib/conf: convert all non-string defaults to string equivalents.
2019-05-03 06:45:33 +02:00
Stephan Kulow
53f5522b93
Merge pull request #1979 from jberry-suse/dist-spec-python3
...
dist/package: handle python 2 vs python 3 dependencies.
2019-05-03 06:32:30 +02:00