3383 Commits

Author SHA1 Message Date
b9bc629a4d accept_command: remove the ring package if it is 2nd specfile is removed 2017-10-31 19:46:53 +08:00
6ffe02ce94 accept_command: force to accept the staging if --force parameter is given
If --force parameter is given, it must to force to change the request state,
otherwise --force does not work if still had pending review.
2017-10-31 13:27:29 +08:00
Stephan Kulow
9cded5cf2d
Merge pull request #1228 from lnussel/pkglistgen
pkglistgen: also output suggested packages
2017-10-28 12:55:11 +02:00
Jimmy Berry
c2955c0233 devel-project: override osc.core.search() to include withfullhistory for get_review_list().
#1206 was a bit to optimistic as the deficiency was only half resolved.
2017-10-27 19:19:58 -05:00
Ludwig Nussel
ee81a524d1 pkglistgen: also output suggested packages 2017-10-27 17:18:37 +02:00
Ludwig Nussel
63cde2632d Merge pull request #1227 from lnussel/pkglistgen
pkglistgen: don't export skip_releases
2017-10-27 16:47:45 +02:00
Ludwig Nussel
319af34c90 pkglistgen: don't export skip_releases
would spoil next iteration in loop
2017-10-26 11:54:59 +02:00
Jimmy Berry
42b8b4d191 Merge pull request #1225 from jberry-suse/memoize-key-include-all-args
osclib/memoize: include first argument, sometimes instance, in cache key.
2017-10-25 17:51:10 -05:00
Jimmy Berry
e39a51821e osclib/memoize: include first argument, sometimes instance, in cache key.
Otherwise, multiple StagingAPI instances which are unique per project
will share caches for short-hand projects. For example:

StagingAPI.project_status('adi:1') called on two different instances will
share a cache.
2017-10-25 17:43:17 -05:00
Jimmy Berry
32d1a97241 Merge pull request #1207 from jberry-suse/obs-docker-compose-test-rebase
Provide local OBS setup, base data creation, test harness, and initial set of tests.
2017-10-24 18:17:25 -05: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
cdb42bf5a4 travis: before_cache: include -R in chmod .docker-tmp. 2017-10-24 17:58:16 -05:00
Jimmy Berry
b51119822e obs_clone: remove whole repositories rather than just path when fenced. 2017-10-24 17:55:32 -05:00
Jimmy Berry
a0f3191568 obs_clone: provide --cache feature. 2017-10-24 17:55:32 -05:00
Jimmy Berry
7f5fbd5b4b osclib/cache: allow ttl of 0 to prevent caching. 2017-10-24 17:55:32 -05:00
Jimmy Berry
7bb1f44359 dist/spec: disable make check during %check until integration tests resolved. 2017-10-24 17:55:32 -05:00
Jimmy Berry
495878ff0f Exclude .open-build-service/ from docker, flake8, and git. 2017-10-24 17:55:32 -05:00
Jimmy Berry
c4d8661f1c travis: provide local OBS setup and clone base data. 2017-10-24 17:55:32 -05:00
Jimmy Berry
ed662be413 tests/devel_project: provide basic test against local OBS. 2017-10-24 17:55:31 -05:00
Jimmy Berry
35bbaf3a66 tests/OBSLocal: provide based class for testing against local OBS. 2017-10-24 17:52:42 -05:00
Jimmy Berry
a2e4d58e49 obs_clone: clone projects and dependencies between OBS instances. 2017-10-24 17:43:41 -05:00
Jimmy Berry
a6d397e88f devel-project: list: only remove self if in devel project list. 2017-10-24 16:23:04 -05:00
Jimmy Berry
443b432699 Merge pull request #1219 from jberry-suse/conffile-over-env
osclib/conf: prefer already parsed conffile over OSC_CONFIG env variable.
2017-10-24 15:15:33 -05:00
Jimmy Berry
4d13526b70 Merge pull request #1218 from jberry-suse/tests-obs-cache-fix
tests/obs: move Cache.delete_all() after CACHE_DIR changed.
2017-10-24 15:14:39 -05:00
1c17971d6a Merge pull request #1220 from dirkmueller/master
Blacklist new warnings introduced by flake8 3.5.0
2017-10-24 11:33:24 +02:00
ba253a61f3 Blacklist new warnings introduced by flake8 3.5.0
The module isn't ready for this yet. Fixes #1217
2017-10-24 11:08:27 +02:00
Stephan Kulow
737d39a1db Merge pull request #1216 from lnussel/pkglistgen
pkglistgen: skip one cycle when undeleting
2017-10-24 06:32:14 +02:00
Jimmy Berry
f8225a3d48 osclib/conf: prefer already parsed conffile over OSC_CONFIG env variable.
This is consistent with expected behavior when using:
  osc.core.conf.get_config(override_conffile...)

Also removes the need to change the environment in OBS() which removes a
leak.
2017-10-23 23:03:24 -05:00
Jimmy Berry
4eecb9c5c0 tests/obs: move Cache.delete_all() after CACHE_DIR changed.
Otherwise, the real caches are cleared whenever tests are run.
2017-10-23 23:00:44 -05:00
Ludwig Nussel
7529c30194 pkglistgen: dont mirror debug packages 2017-10-23 17:44:02 +02:00
Ludwig Nussel
b0256d048c pkglistgen: skip one cycle when undeleting 2017-10-23 17:44:02 +02:00
Stephan Kulow
0d96bdaf79 pkglistgen: Output overlapping packages as yaml 2017-10-23 12:47:24 +02:00
Stephan Kulow
d620a66f16 pkglistgen: Allow new recommended flag to take over recommends
Useful not to duplicate packages in both patterns and package list
2017-10-22 13:31:04 +02:00
Stephan Kulow
3c80321018 pkglistgen: Ignore modules recursively 2017-10-21 20:41:23 +02:00
Stephan Kulow
7e0646497d pkglistgen: Implement UNWANTED support 2017-10-21 13:25:29 +02:00
Stephan Kulow
ca5acd00d4 pkglistgen: Do not ignore recommendes from other modules 2017-10-21 13:25:23 +02:00
Stephan Kulow
6aa06b2357 pkglistgen: Have update command exit 1 if it updated something
The idea is to be able to determine if it's useful to run solve command
2017-10-21 13:25:21 +02:00
Stephan Kulow
d8a8fb2a5d pkglistgen: Create an unsorted.yml and output duplications 2017-10-21 13:24:46 +02:00
Ludwig Nussel
9465b2f6ea Merge pull request #1196 from lnussel/pkglistgen
pkglistgen: shell scripts to actually commit
2017-10-21 09:26:51 +02:00
Jimmy Berry
0479513427 Merge pull request #1215 from jberry-suse/travis-cache
Travis improve caching by installing realpath and enabling pip cache
2017-10-20 23:45:11 -05:00
Jimmy Berry
7f1dc4c1a0 travis: chmod .docker-tmp so non-root can read for caching. 2017-10-20 22:45:48 -05:00
Jimmy Berry
c89065fa91 travis: extend cache timeout to 7 days.
Since storing rpms that change relatively rarely and will auto clear.
2017-10-20 22:45:11 -05:00
Jimmy Berry
924879f212 travis: optimize osc build cache by removing build-root.
Locally it the cache will still remain for optimimal speed when developing.
2017-10-20 22:44:52 -05:00
Jimmy Berry
67d0a69c6a travis: enable pip cache. 2017-10-20 22:07:02 -05:00
Jimmy Berry
bc29bc9905 travis: install realpath to allow docker-run to correctly mount volume.
In turn caching of `osc build` temporary directories works.
2017-10-20 21:56:49 -05:00