Skip to content

Migrate OpenShift Cleanup Functions From util.sh - #11838

Closed
stevekuznetsov wants to merge 3 commits into
openshift:masterfrom
stevekuznetsov:skuznets/cleanup-migration
Closed

stevekuznetsov wants to merge 3 commits into
openshift:masterfrom
stevekuznetsov:skuznets/cleanup-migration

Conversation

@stevekuznetsov

Copy link
Copy Markdown
Contributor

@Miciah PTAL the last two commits

Comment thread hack/lib/cleanup.sh Outdated
return
fi

mkdir -p ${LOG_DIR}

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.

We can assume it exists, we do everywhere else and this isn't special.

Comment thread hack/lib/cleanup.sh Outdated

pids=($(jobs -pr))
for i in "${pids[@]-}"; do
pgrep -P "${i}" | xargs ${sudo} kill &> /dev/null

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.

We should just assume a process kills it's children, or go down the whole tree recursively

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Larger functional changes to come later when I integrate these methods into the EXIT trap.

@stevekuznetsov stevekuznetsov changed the title Skuznets/cleanup migration Migrate OpenShift Cleanup Functions From util.sh Nov 8, 2016
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 13, 2016
@stevekuznetsov
stevekuznetsov force-pushed the skuznets/cleanup-migration branch 2 times, most recently from 9279517 to e821671 Compare November 22, 2016 21:48
@stevekuznetsov
stevekuznetsov force-pushed the skuznets/cleanup-migration branch from e821671 to 64bb815 Compare November 22, 2016 21:52
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

@Miciah this is ready for review, second commit is simple Bash improvements, third commit is some functional refactors

@openshift-bot [test] this please

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 22, 2016
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

@Miciah ping

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 64bb815

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 6, 2016
@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 20, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 19, 2017
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 26, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 26, 2017
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Superseded by #14116 and #14435

1 similar comment
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Superseded by #14116 and #14435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants