683 Commits

Author SHA1 Message Date
Jimmy Berry
17e0089d5a conf: provide remote-config option and default to false for SLE. 2017-05-03 19:12:09 -05:00
Jimmy Berry
e755c061aa conf: explicitly check if config is None.
Otherwise a blank file may repeatedly submitted.
2017-05-01 22:33:11 -05:00
Jimmy Berry
2f32bf8fbf conf: remove splitter-whitelist default in favor of remote config. 2017-05-01 17:40:33 -05:00
Jimmy Berry
9ea9a50c35 request_splitter: expose age thresholds to config. 2017-05-01 17:40:33 -05:00
Jimmy Berry
f6c31d7f59 cache: include dashboard files. 2017-05-01 17:40:33 -05:00
Jimmy Berry
d4a2af58c8 osc-staging: implement remote config. 2017-05-01 17:40:13 -05:00
Jimmy Berry
b2058120e6 obslock: actually implement locked property. 2017-05-01 17:09:43 -05:00
Jimmy Berry
53a79f2c05 lock: provide command to place a multi-command hold on a project. 2017-05-01 17:09:16 -05:00
Jimmy Berry
77f79f9175 obslock: add reason to indicate what command is being run. 2017-05-01 16:45:35 -05:00
Jimmy Berry
7f9cc0f74c request_splitter: add staging whitelist config option.
For the initial Factory usage the bot will be allowed to stage on a subset
of the available stagings.
2017-04-28 15:42:09 -05:00
Jimmy Berry
9ae63cff62 list: color source_project. 2017-04-28 10:21:52 -05:00
Jimmy Berry
22ec112225 list & adi: share common stagingapi.ignore_format(). 2017-04-28 10:21:50 -05:00
Jimmy Berry
9f84a7c321 supersede: colorize. 2017-04-27 16:33:04 -05:00
Jimmy Berry
2c592bdb53 stagingapi: rebuild_broken(): utilize python argument expansion. 2017-04-27 16:29:21 -05:00
Jimmy Berry
4409304cb0 rebuild: colorize. 2017-04-27 16:29:21 -05:00
Jimmy Berry
448c88a56e supersede: include ignore and decline in output. 2017-04-27 15:35:26 -05:00
Jimmy Berry
0d760b707a Merge pull request #847 from jberry-suse/cleanup_rings
cleanup_rings: runtime requiredby check, whitelist, summary, and substantial refactoring
2017-04-27 15:13:58 -05:00
Jimmy Berry
c47b296291 list: rework ignore indent and apply wordwrap. 2017-04-26 21:04:37 -05:00
Jimmy Berry
a4432aefff list & adi: remove sr# prefix from request IDs to ease copy/paste. 2017-04-26 11:59:40 -05:00
Jimmy Berry
8dceae9053 list: move delete request indication to correct whitespace formatting. 2017-04-26 11:59:40 -05:00
Jimmy Berry
fb25b7a044 osc-staging: implement colorization using colorama for adi and list. 2017-04-26 11:59:38 -05:00
Jimmy Berry
41e4d5ae2b cleanup_rings: provide package whitelist for special cases. 2017-04-25 20:06:20 -05:00
Jimmy Berry
aca88d19c0 cleanup_rings: check runtime requiredby if not a build requirement.
This check only works if the runtime requirement resides in the same ring.
The fun case being kernel-syms which is required by virtual box (ring-2),
but must remain in ring-1 to ensure matching build revision with other
kernel packages.
2017-04-25 19:57:03 -05:00
Jimmy Berry
ac031bb915 stagingapi: provide fileinfo_ext_all() and fileinfo_ext(). 2017-04-25 19:55:00 -05:00
Jimmy Berry
4d0e98a00c cleanup_rings: print summary of packages to be dropped and commands last. 2017-04-25 19:54:59 -05:00
Jimmy Berry
39a4914e48 cleanup_rings: check ring index instead of string comparison. 2017-04-25 19:53:49 -05:00
Jimmy Berry
ce8818fd3d cleanup_rings: utilize splitlines() in check_buildconfig(). 2017-04-25 19:53:49 -05:00
Jimmy Berry
51c2f6e0e9 cleanup_rings: extract check_image_bdeps() and check_buildconfig().
- change archs loop to use the archs appropriate for the ring instead of
  always using DVD archs
- drop check_image_bdeps() out of archs loop since DVD should only look
  at DVD archs even if ring 1
2017-04-25 19:53:49 -05:00
Jimmy Berry
50166347e1 stagingapi: provide ring_archs() to return arch relevant to a ring. 2017-04-25 19:53:46 -05:00
Jimmy Berry
1198da8eef cleanup_ring: extract repo_state_acceptable(). 2017-04-25 19:15:04 -05:00
Jimmy Berry
253b6592b4 cleanup_rings: indicate the ring being processed. 2017-04-25 19:11:18 -05:00
Jimmy Berry
57174711ab cleanup_rings: utilize config ring list rather than hard-coded. 2017-04-25 18:24:55 -05:00
Jimmy Berry
50f8042ba9 stagingapi: convert rebuild_broken to a generator for instant feedback.
Otherwise, the rebuild command does not print output until all the
rebuilds for a whole staging are completed. With this change each package
should be printed immediately.
2017-04-20 23:10:05 -05:00
Jimmy Berry
52d356db29 Merge pull request #834 from jberry-suse/supersede-command
supersede: separate command, feedback, and force supersede post source project check
2017-04-20 14:10:08 -05:00
Ludwig Nussel
0f9d4fc86a Merge pull request #832 from jberry-suse/simplify-project-status-walk
stagingapi: simplify project_status_build_sum() with a generator.
2017-04-20 12:05:38 +02:00
Jimmy Berry
cf3ce7435e stagingapi: bypass ignored list when supersede with target_requests. 2017-04-19 18:14:35 -05:00
Jimmy Berry
7e26435ee0 supersede: provide feedback about what requests were superseded. 2017-04-19 18:09:34 -05:00
Jimmy Berry
862ee547eb supersede: allow list of request IDs or packages. 2017-04-19 18:09:34 -05:00
Jimmy Berry
b2ba0730de stagingapi: enhance supersede target_pkgs to skip source project check.
This creates a facility for forcing a request, that was ignored due to
the source check, to supersede the existing one.
2017-04-19 18:09:25 -05:00
Jimmy Berry
54f502da37 osc-staging: break out list --supersede PACKAGES... as separate command.
Maintains `list --supersede`, but places the explicit supersede based on
a list of packages in a separate command.
2017-04-19 17:42:14 -05:00
Jimmy Berry
567d6d7950 Merge pull request #831 from jberry-suse/obsolete-skip-superseded
unselect: filter superseded when using --cleanup.
2017-04-19 16:54:52 -05:00
Jimmy Berry
f79e35caeb stagingapi: correct project_status_build_percent() formula.
final: packages in final state (not final count ie total)
tobuild: packages remaining to build
2017-04-19 16:08:39 -05:00
Jimmy Berry
e156e1cede stagingapi: simplify project_status_build_sum() with a generator. 2017-04-19 15:23:49 -05:00
Jimmy Berry
9135f91620 unselect: filter superseded when using --cleanup. 2017-04-19 14:55:42 -05:00
Jimmy Berry
3d503c1f2c request_splitter: provide quick strategy based on lack of reviews needed. 2017-04-18 13:36:40 -05:00
Jimmy Berry
2aa494aea3 request_splitter: provide Strategy.desirable() in base.
Default should be all groups are desirable which the strategy can override.
2017-04-18 13:33:05 -05:00
Jimmy Berry
959a8f7905 request_splitter: add super strategy for representing devel groups. 2017-04-17 23:06:24 -05:00
Jimmy Berry
59eda5d82d request_splitter: group_by(): provide required option and use in devel.
Staging packages with no devel project as a result of devel strategy seems
like the incorrect behavior.
2017-04-17 23:05:04 -05:00
Jimmy Berry
232219363c request_splitter: s/supliment/supplement/ in comment. 2017-04-17 22:55:41 -05:00
Jimmy Berry
446a30dde0 request_splitter: switch from build percentage to staging age for merge.
Using build percentage is sub-optimal since many events can reset the
percentage which can result in additional requests being merged into the
staging. A better metric is the time since the first request was added to
the staging (the age of the staging). Unfortunately, this is not trivial to
determine especially given that the original request may be superseded or
unstaged entirely. As such the datetime at which the staging was activated
is stored in the staging pseudometa. A max age is then used to allow for
merging up until that point.
2017-04-14 17:11:30 -05:00