Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Clean up verification tools #97

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Jul 22, 2019

Signed-off-by: Chuck Ha chuckh@vmware.com
What this PR does / why we need it:
This PR cleans up the verify scripts to make the output tell us what failed in a clean way.

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 22, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2019
@k8s-ci-robot k8s-ci-robot requested review from detiber and vincepri July 22, 2019 23:21
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 22, 2019
@chuckha
Copy link
Contributor Author

chuckha commented Jul 23, 2019

fixed! ptal @ashish-amarnath

set -o nounset
set -o pipefail

# shellcheck source=/dev/null
source "$(dirname "$0")/utils.sh"

# set REPO_PATH
readonly REPO_PATH=$(get_root_path)
REPO_PATH=$(get_root_path)
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
REPO_PATH=$(get_root_path)
readonly REPO_PATH=$(get_root_path)

@@ -117,6 +121,11 @@ if [[ "${res}" = 0 ]]; then
echo "All verify checks passed, congrats!"
else
echo ""
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is for aligning the output. It's nicer with it in.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Signed-off-by: Chuck Ha <chuckh@vmware.com>
@chuckha chuckha mentioned this pull request Jul 23, 2019
@ashish-amarnath
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5aa99cd into kubernetes-retired:master Jul 23, 2019
@chuckha chuckha deleted the verify2 branch August 16, 2019 02:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants