Skip to content

Conversation

@deads2k
Copy link
Contributor

@deads2k deads2k commented Jul 2, 2020

builds on #973

/assign @damemi

@deads2k
Copy link
Contributor Author

deads2k commented Jul 2, 2020

REPOSITORY_PATH=/resourcewatch openshift-tests run-resourcewatch --kubeconfig=${KUBECONFIG} --namespace=ci-operator-monitor &
rw_pid=$!
openshift-tests run-resourcewatch --help > /dev/null 2>&1
rwsupported=$?

Choose a reason for hiding this comment

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

I think these two lines need to be changed. Could you replace the 325-326 with these two lines?

         rwsupported=0   
         openshift-tests run-resourcewatch --help > /dev/null 2>&1 || rwsupported=$?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, this is a pretty bad look. We're hosed again.

I'll try one last tiem to fix it

Choose a reason for hiding this comment

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

We use 'set -e' that is really the trouble maker. I don't like set -e at all. Since it fails with any error, we have to invent these kind of workaround that makes the scripts look very ugly.

I have written lengthy shell scripts and maintained them, while taking care of my own error handling. Never had a problem with scripts or error handling.

@deads2k
Copy link
Contributor Author

deads2k commented Jul 2, 2020

if this doesn't work, I'm revert the whole lot to prepare for the next disruptive bit.

We have got to find a better way, this is garbage.

@deads2k deads2k added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Jul 2, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: deads2k

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

The pull request process is described here

Details 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

@deads2k
Copy link
Contributor Author

deads2k commented Jul 2, 2020

/retest

@openshift-merge-robot openshift-merge-robot merged commit 574a792 into openshift:master Jul 2, 2020
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants