5001 Commits

Author SHA1 Message Date
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
Jimmy Berry
c142b9052f dist/package: handle python 2 vs python 3 dependencies.
Since osc was updated to require python 3 handle dependencies in
same fashion as osc so as to get them right.
2019-05-02 15:55:03 -05:00
Jimmy Berry
be729c0bd1 dist/package: require influxdb and telegraf for Tumbleweed.
The packages have made there way into Tumbleweed and thus can now be
required instead of suggested.
2019-05-02 15:28:57 -05:00
Jimmy Berry
9214736f37 dist/package: drop %check and related build requirements.
Not feasible to run tests on OBS.
2019-05-02 15:24:12 -05:00
Stephan Kulow
410ee68996
Merge pull request #1977 from jberry-suse/dist-package-osc-plugin-depend-osclib
dist/package: add osclib dependency to all osc plugin packages.
2019-05-02 22:03:07 +02:00
Jimmy Berry
e66fa4c404 osclib/conf: convert all non-string defaults to string equivalents.
Python3 osc config parsing explodes on non-strings.
2019-05-02 14:55:12 -05:00
Jimmy Berry
38b9ab430e dist/package: add osclib dependency to all osc plugin packages. 2019-05-02 14:48:01 -05:00
Jimmy Berry
e20725a482 osclib/origin: handle origin_info when None. 2019-05-02 14:44:14 -05:00
Jimmy Berry
cbd3e446e6 osclib/origin: origin_revision_state(): do not find origin when None.
Previously, there was no way to distinguish between a None origin and no
origin_info passed in. Using False as default allows the two cases to be
distinguished.
2019-05-02 14:43:37 -05:00
Stephan Kulow
e4b5f68fa0
Merge pull request #1973 from michelmno/dryrun
[ttm] do not wait publishing if dryrun
2019-05-02 13:01:58 +02:00
Stephan Kulow
94176960bb
Merge pull request #1974 from nilxam/pika_rabbit
PubSubConsumer: adopt to Pika 1.0 change
2019-05-02 12:44:04 +02:00
Stephan Kulow
fefa1adaf7 PubSubConsumer: Fix cancel callbacks 2019-05-02 11:55:08 +02:00
Stephan Kulow
22ff335e45 PubSubConsumer: fix timer API and close callbacks 2019-05-02 11:26:32 +02:00
Stephan Kulow
79109efe55 PubSubConsumer: add SSL options and fix reason API 2019-05-02 11:14:06 +02:00
0877289bf3 PubSubConsumer: adopt to Pika 1.0 change 2019-05-02 17:05:53 +08:00
Michel Normand
9e248644f8 [ttm] do not wait publishing if dryrun
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
2019-05-02 10:47:03 +02:00