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

test: 'FAIL' on release binary download failure #8133

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jun 19, 2017

This fixes bash syntax on '[[ -n ${VAR} ]]', which is
always true. Replacing with '[[ ${VAR} ]]'.

I also see CI is failing to download release binaries
but exit code doesn't trigger CI job failure.

We need 'FAIL' string.

It' failing here https://semaphoreci.com/coreos/etcd/branches/pull-request-8133/builds/2

Downloading etcd--linux-amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                           Dload  U   ploadTotal         Spent    Left  Speed

  0     0    0     0    0     0    0        0 --:--:-----::- -- --:--:   0
    --0     0        0 0       0    0    0      0 --:--:-- --:--:-- --:--:-0
  -   cu: rl(22) T rheueeqsted URL ruretned erro 4r:04 Not Found
FAIL with 22

test Outdated
@@ -181,9 +181,13 @@ function release_pass {
rm -f ./bin/etcd-last-release
# to grab latest patch release; bump this up for every minor release
UPGRADE_VER=$(git tag -l --sort=-version:refname "v3.2.*" | head -1)
if [ -n "$MANUAL_VER" ]; then
if [[ ${MANUAL_VER} ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

why doesn't -n work? If ${MANUAL_VER} is an empty string then the condition should evaluate to false...

emptyStr=""
if [ -n "$emptyStr" ]; then
        echo non-empty
else
        echo empty
fi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh nvm. I was doing if [ -n ${MANUAL_VER} ]; then

I see CI is failing to download release binaries
but exit code doesn't trigger CI job failure.

We need 'FAIL' string.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@gyuho
Copy link
Contributor Author

gyuho commented Jun 20, 2017

@heyitsanthony PTAL. Thanks.

@gyuho gyuho merged commit ac62c6c into etcd-io:master Jun 20, 2017
@gyuho gyuho deleted the release-test branch June 20, 2017 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants