Skip to content

Ch2399/support bundle categories#8

Merged
laverya merged 8 commits intomasterfrom
ch2399/support-bundle-categories
Oct 27, 2017
Merged

Ch2399/support bundle categories#8
laverya merged 8 commits intomasterfrom
ch2399/support-bundle-categories

Conversation

@laverya
Copy link
Copy Markdown
Contributor

@laverya laverya commented Oct 26, 2017

The default bundle contents have been greatly expanded

Commands referring to docker containers can now use the container name instead of id
(use the container_name field where you would have used container_id)

Also includes timeout improvements - global timeout can be set via the command line, and per-task timeouts in the yaml spec. The first timeout to fire is the one used. (global 1m, task 30s -> task timeout dominates; global 1m, task 5m -> global timeout dominates) It may be worth warning if task timeouts are set to be set longer than global timeouts.

laverya and others added 5 commits October 25, 2017 16:55
Includes all commands and files run as part of integrated support bundle
Allow setting timeouts within specs if they are lower than the global timeout
Allow setting global timeout on command line, and per spec timeouts if lower than global timeout
@laverya laverya requested a review from areed October 26, 2017 23:40
Comment thread plugins/docker/planners/run-command.go Outdated

if spec.Config.ContainerID == "" || len(fullCommand) == 0 || spec.Config.Command == "" {
err := errors.New("spec requires a container ID and command within config")
if (spec.Config.ContainerID == "" && spec.Config.ContainerName == "") || len(fullCommand) == 0 || spec.Config.Command == "" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(fullCommand) could never be 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be easier to read if broken up into separate checks for Id/Name and missing command. Also the resulting error would be more precise.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, it could be [""] at worst.
And I'll break up the error messages, here and elsewhere with similar issues

@laverya laverya merged commit 20675db into master Oct 27, 2017
@laverya laverya deleted the ch2399/support-bundle-categories branch October 27, 2017 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants