Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threading mg execution and ensuring that we alway exit 0 (true) #88

Closed
wants to merge 1 commit into from

Conversation

sferich888
Copy link
Contributor

@RickJWagner @coreydaley PTAL
@sanchezl you may want to review as well.

@sferich888
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 29, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sferich888

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2019
@RickJWagner
Copy link
Contributor

In 'gather', do we really want to make the same directory in a loop? It seems we'd make it once and have it.

for resource in ${resources[@]}; do
LOG_DIR="${BASE_COLLECTION_PATH}/must-gather-resource-logs"
mkdir -p ${LOG_DIR}

/usr/bin/openshift-must-gather inspect ${resource}
LOG_DIR="${BASE_COLLECTION_PATH}/must-gather-resource-logs"
mkdir -p ${LOG_DIR}
/usr/bin/openshift-must-gather inspect ${resource} 2> ${LOG_DIR}/${resource/\//_}.log &
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/usr/bin/openshift-must-gather inspect ${resource} 2> ${LOG_DIR}/${resource/\//_}.log &
/usr/bin/openshift-must-gather inspect ${resource} 2> ${LOG_DIR}/${resource//[^A-Za-z0-9._-]/_}.log &

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand the sugestion, my code converts resources with '/' in them like ns/default to resources names with '_' in them like ns_default, what is yours doing?

This avoid bash path issues when I go to save the resource.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sanchezl can you followup here?

@sferich888
Copy link
Contributor Author

@RickJWagner I fixed the log directory creation, happening in a loop.

@openshift-ci-robot
Copy link

@sferich888: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws e87e03e link /test e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 15, 2020
@sferich888
Copy link
Contributor Author

Obsolete

@sferich888 sferich888 closed this Oct 22, 2020
@sferich888 sferich888 deleted the thread_mg branch October 22, 2020 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants