3320 Commits

Author SHA1 Message Date
Jimmy Berry
990be5dbb3 systemd/devel-list: allow three retry attempts to handle regular OBS crash. 2017-10-31 20:00:34 -05: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
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
Jimmy Berry
ee3417897b Merge pull request #1213 from jberry-suse/travis-coverage-correction
travis: include all files instead of just osclib in coverage.
2017-10-20 21:36:48 -05:00
Jimmy Berry
fb010c77b0 travis: include all files instead of just osclib in coverage. 2017-10-20 18:16:58 -05:00
Jimmy Berry
7d266d5d0a Merge pull request #1201 from dirkmueller/flake8
Flake8 / pep8 formatting fixes
2017-10-20 17:37:31 -05:00
d1c4801578 Another set of low-noise flake8 cleanups 2017-10-20 20:46:44 +02: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
24ea059e15 Merge pull request #1126 from jberry-suse/ci-obs-build
dist/ci: rework spec.sh as obs-build-target using `osc build` and provide easy local run, Leap:42.3, and SLE-12-SP3 builds.
2017-10-19 22:14:08 -05: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
522b05eac4 travis: add distribution builds for Leap 42.3 and SLE-12-SP3. 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