-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
fix test/e2e_node/gubernator.sh shellcheck failures #79317
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Confirming that you ran this script (either locally or via the test suite) and it succeeded?
|
||
|
||
if [[ $# -eq 0 || ! $1 =~ ^[Yy]$ ]]; then | ||
read -p "Do you want to run gubernator.sh and upload logs publicly to GCS? [y/n]" yn | ||
read -r -p "Do you want to run gubernator.sh and upload logs publicly to GCS? [y/n]" yn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own knowledge - why is -r
necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without -r
read will mangle escape sequences. technically it shouldn't matter in this context, but it's a good habit and a correctness fix unless you actually wanted that behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the shellcheck wiki has a good entry on this https://github.com/koalaman/shellcheck/wiki/SC2162
/retest Review the full test history for this PR. Silence the bot with an |
So actually I did not run it directly as it needs to be part of the suite, I'm not positive that we're still running it but:
I'm tempted to just delete it as CI shouldn't be using scripts here to craft these uploads, it should be letting Prow do that, but it was quick enough to just fix it. |
/retest Review the full test history for this PR. Silence the bot with an |
/retest |
On Mon, Jun 24, 2019 at 11:48:46AM -0700, Benjamin Elder wrote:
> Confirming that you ran this script (either locally or via the test suite) and it succeeded?
So actually I did not run it directly as it needs to be part of the suite, I'm not positive that we're still running it but:
- the changes should be safe
- if it _does_ break we'll actually find out where it is being used!
I'm tempted to just delete it as CI shouldn't be using scripts here to craft these uploads, it should be letting Prow do that, but it was quick enough to just fix it.
--
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub:
#79317 (comment)
Sounds good to me!
|
What type of PR is this?
What this PR does / why we need it: fixes shellcheck failures in test/e2e_node/gubernator.sh
Which issue(s) this PR fixes:
Part of #72956
Special notes for your reviewer: I was hoping nobody used this script still, but it seems the node e2e tests may invoke it :|
Since the fixes are trivial enough, I just went ahead and fixed it. If we can eliminate all failing files we can dramatically speedup and simplify the shellcheck verify script.
Does this PR introduce a user-facing change?:
/sig node
/priority important-longterm