-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Re-enable test-cmd.sh tests #40428
Re-enable test-cmd.sh tests #40428
Conversation
19dc443
to
8305ee4
Compare
[APPROVALNOTIFIER] Needs approval from an approver in each of these OWNERS Files: We suggest the following people: |
330a948
to
3c2c40c
Compare
@@ -2411,7 +2412,7 @@ run_multi_resources_tests() { | |||
runTests() { | |||
if [ -z "${SUPPORTED_RESOURCES}" ]; then | |||
echo "Need to set SUPPORTED_RESOURCES env var. It is a comma separated list of resources that are supported and hence should be tested. Set it to (*) to test all resources" | |||
return | |||
exit 1 |
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.
SUPPORTED_RESOURCES is not a comma separated list, it is a bash array.
We'll never hit this echo if it was unset, since we'd die on the set -e. I think it should be be if [[ -z "${SUPPORTED_RESOURCES:-}" ]]
for the (wrong) comment to ever pop...
# to catch bugs due to which no tests run. | ||
kube::test::if_has_string "${output_message}" "Testing kubectl(v1:pods)" | ||
kube::test::if_has_string "${output_message}" "Testing kubectl(v1:services)" | ||
runTests "SUPPORTED_RESOURCES=${SUPPORTED_RESOURCES[@]}" |
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.
I'm trying to figure out what this does. I think this is passing a string as $1 to runTests() which is in turn never used for anything. runTests() does not appear to take any arguments.
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.
yeah, will remove the arg-passing bit
@@ -4,7 +4,6 @@ metadata: | |||
name: kubernetes | |||
namespace: default | |||
spec: | |||
clusterIP: 10.0.0.1 |
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.
why does this need killed? do we not need a predictable clusterIP ?
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.
was getting an "already allocated IP error" trying to create it
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.
fixed a different way (try to create, tolerate already existing, then verify existence)
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.
but this is the IP it $needs to be, no? do we hit that before we hit 'resource exists' ?
3c2c40c
to
c1dfc3e
Compare
c1dfc3e
to
da82a58
Compare
da82a58
to
5676b9a
Compare
lgtm. |
@deads2k please do not manually set |
@eparis Sorry, I'll add more detail next time. I don't have sufficient power in OWNERS to approve this. It's fixing a p0 bug which allows more broken code into master. I judged it to be an appropriate use of power. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 40428, 40176) |
Wrapping
runTests
in a subshell was masking return code failuresMoved init to top-level to properly install stack traces on exit
Fixes #39168