792 Commits

Author SHA1 Message Date
Jimmy Berry
75ee7ef3e1 Merge pull request #872 from jberry-suse/unselect-cleanup-conditions
unselect: add conditions to obsolete filter used by --cleanup (along with refactor and tests).
2017-05-04 15:20:07 -05:00
Jimmy Berry
f70544ec81 unselect: extract filter conditions as config variables. 2017-05-04 15:08:41 -05:00
Jimmy Berry
cf966f5053 unselect: add conditions to obsolete filter used by --cleanup. 2017-05-04 15:08:12 -05:00
Jimmy Berry
83aac77c6a stagingapi: project_status_requests(): provide filter function. 2017-05-04 15:00:04 -05:00
Jimmy Berry
ed1dc8b788 stagingapi: project_status_requests(): filter requests changed < 5 min ago. 2017-05-04 15:00:04 -05:00
Jimmy Berry
a86259e0e1 Merge pull request #879 from jberry-suse/obslock-hold-expire
obslock: cleanup hold logic and resolve inheriting an expired hold.
2017-05-04 12:18:48 -05:00
Jimmy Berry
c505e838cf cache: correction to match all dashboard file requests.
With the query PUTs are not match and thus the local cache is not cleared
until the next statistics/latest_updated call.
2017-05-04 11:13:12 -05:00
Jimmy Berry
1e511e9c85 obslock: delta.total_seconds() is more resilient than delta.seconds. 2017-05-03 20:38:09 -05:00
Jimmy Berry
73f0ed895f obslock: cleanup hold logic and resolve inheriting an expired hold. 2017-05-03 20:37:03 -05:00
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