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
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
Jimmy Berry
6b7fd1b095
Merge pull request #1202 from dirkmueller/travis
...
Enable travis / flake8 checks
2017-10-19 21:03:05 -05:00
6e78eb95fe
Enable F405,F811 (Unused imports)
...
Remove imports that are either duplicate or unused
2017-10-20 01:03:00 +02:00
2219190e18
Add Flake8 travis infrastructure
...
This at least allows the most glaring errors to be found before they
get merged. Almost all lintstyle and make flake8 errors are ignored
right now, to be cleaned up once the testing is in place.
2017-10-20 01:01:23 +02:00
d04bc4fce1
Import all dependencies
2017-10-20 01:01:17 +02:00
1cec490d54
White space / consistent usage of spaces / indentation of 4 fixes
2017-10-20 00:58:05 +02:00
d07e2cdc4a
Remove outdated script
...
This is no longer in use
2017-10-20 00:58:05 +02:00
Jimmy Berry
be5b3ec12d
Merge pull request #1206 from jberry-suse/devel-project-osc-160
...
devel-project: utilize get_request_list(withfullhistory) param provided by osc 0.160.0.
2017-10-19 14:50:31 -05:00
Jimmy Berry
44e44a64f0
Merge pull request #1203 from dirkmueller/checknewer
...
Rename checknewer to checknewer.py and fix Flake8 fallout
2017-10-18 20:56:35 -05:00
Jimmy Berry
a890767ddb
Merge pull request #1200 from jberry-suse/splitter-special
...
osclib/request_splitter: provide splitter-special-packages config variable.
2017-10-18 20:53:46 -05:00
Jimmy Berry
3349bd964a
Merge pull request #1197 from dirkmueller/python3
...
Python 2.6+ / 3.x style except clauses
2017-10-18 20:50:02 -05:00
Jimmy Berry
5f714c2608
devel-project: utilize get_request_list(withfullhistory) param provided by osc 0.160.0.
...
The addition of queries to search() breaks the altered implementation of
search. The custom search() can be dropped since openSUSE/osc@902b48f
provides the missing functionality.
2017-10-18 14:46:17 -05:00
Ludwig Nussel
53f281e6b2
Merge pull request #1199 from jberry-suse/select-interactive-remaing-requests
...
osc-staging: select -i: include remaining requests in comment.
2017-10-17 15:55:34 +02:00
3eb66257e8
Rename checknewer to checknewer.py and fix Flake8 fallout
...
This is a python script so as the majority of scripts in here
it should end in a .py suffix
2017-10-17 15:47:00 +02:00
1168d474b7
Merge pull request #1198 from dirkmueller/totest_crash
...
Fix undefined variables 'release'
2017-10-17 11:15:32 +02:00
7058f07d71
Merge pull request #1194 from nilxam/decline_more_invalid_dr
...
check_source: decline the delete request if duplicated
2017-10-17 15:23:26 +08:00
475b8473df
check_source: decline the delete request if duplicated
...
Decline the delete request in case there is pending delete/submit request to
the same package, if there is another submit request against the same package
that we should prefer the submit one which should be passed staging already,
what it means just queued for accepting, like request go through adi or virtual
accept delete request.
2017-10-17 14:42:29 +08:00
Jimmy Berry
e8c2799156
osclib/request_splitter: reduce default list of special packages.
2017-10-16 16:48:45 -05:00
Jimmy Berry
c9743b5df0
osclib/request_splitter: provide splitter-special-packages config variable.
2017-10-16 16:48:17 -05:00
e39cab9d7c
Fix undefined variables 'release'
...
The totest-manager crashed on Factory:ARM when it tried to release
a build.
2017-10-16 23:35:55 +02:00
Jimmy Berry
f6ce6deb87
osc-staging: select -i: s/merged/mergeable/ in stat comment.
2017-10-16 16:22:36 -05:00
Jimmy Berry
96ac840646
osc-staging: select -i: include remaining requests in comment.
...
Useful for manually adding open requests to proposal.
2017-10-16 16:22:28 -05:00
3cf49d9556
Python 2.6+ / 3.x style except clauses
...
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
Ludwig Nussel
406f870507
Merge pull request #1175 from lnussel/pkglistgen
...
pkglistgen: initial work for openSUSE
2017-10-13 15:14:59 +02:00
b00a8f5ed6
Merge pull request #1184 from lnussel/ttm
...
ttm: update for Leap 15.0
2017-10-13 16:59:45 +08:00
43f2eb0142
Merge pull request #1190 from jberry-suse/check_source-config
...
check_source: move all relevant flags to config to work properly without flags.
2017-10-13 16:51:30 +08:00
aeef41fd3c
Merge pull request #1189 from jberry-suse/staging-config
...
osclib: provide ConfigCommand and expose via osc-staging (utilize in repo_checker)
2017-10-13 16:50:13 +08:00
Jimmy Berry
cbd61d0f61
osclib/freeze: clear staging config during freeze as well.
2017-10-12 17:46:09 -05:00
Jimmy Berry
6eb4df3fba
osclib/stagingapi: set_prj_pseudometa(): only change if different.
2017-10-12 17:46:09 -05:00
Jimmy Berry
47f5affdb0
repo_checker: filter empty whitelist entries.
2017-10-12 17:46:09 -05:00
Jimmy Berry
d2e6b155ce
repo_checker: utilize staging configuration for whitelist additions.
2017-10-12 17:46:09 -05:00
Jimmy Berry
c0eaaf4268
osclib: provide ConfigCommand and expose via osc-staging.
2017-10-12 17:46:01 -05:00
Ludwig Nussel
e94577d1b9
ttm: update for Leap 15.0
2017-10-12 13:20:45 +02:00
Ludwig Nussel
d167d0e0fd
pkglistgen: add --ignore-unresolvable and --ignore-recommends options
...
by default write the error string to the xml so it doesn't build
anymore. With the --ignore-unresolvable option only comments are
added.
With the --ignore-recommends option recommended packges will only
be listed as comment.
2017-10-12 11:47:17 +02:00
Ludwig Nussel
c9875469d3
pkglistgen: make --repositories option use an array
2017-10-12 11:47:17 +02:00
Ludwig Nussel
85222b1243
pkglistgen: initial work for openSUSE
...
- allow to specify architecures
- need to specify default support status
- use correct api (still dirty)
2017-10-12 11:47:17 +02:00