Skip to content

Fix helm upgrade test#4622

Merged
kleimkuhler merged 4 commits intomasterfrom
kleimkuhler/fix-helm-upgrade
Jun 18, 2020
Merged

Fix helm upgrade test#4622
kleimkuhler merged 4 commits intomasterfrom
kleimkuhler/fix-helm-upgrade

Conversation

@kleimkuhler
Copy link
Contributor

@kleimkuhler kleimkuhler commented Jun 17, 2020

Problem

#4557 changed the name of the function that helm_upgrade_integration_tests
uses.

install_stable() was renamed to latest_release_channel() and now takes an
argument for specifying either edge or stable.

run_helm_upgrade_test is a function used by the helm upgrade integration test
and was not properly updated to use latest_release_channel().

This silently passed integration tests because run_helm_upgrade_test started
passing an empty string for the version to upgrade from, which results in the
default behavior of install_test.go--and therefore still passes.

Solution

run_helm_upgrade_test now uses latest_release_channel() and passes the
proper argument.

Additionally, it checks that the version returned from
latest_release_channel() is not empty. If it is empty, it exits the test. This
ensures something like this does happen in the future.

Signed-off-by: Kevin Leimkuhler [email protected]

Signed-off-by: Kevin Leimkuhler <[email protected]>
Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

Test script: [install_test.go] Params: [--linkerd-namespace=l5d-integration-helm --helm-path=/home/runner/work/linkerd2/linkerd2/bin/helm --helm-chart=/home/runner/work/linkerd2/linkerd2/charts/linkerd2 --helm-stable-chart=linkerd/linkerd2 --helm-release=l5d-integration-test --upgrade-helm-from-version=stable-2.8.0]

LGTM 👍

@kleimkuhler kleimkuhler requested a review from adleong June 17, 2020 18:47
Signed-off-by: Kevin Leimkuhler <[email protected]>
Copy link
Member

@zaharidichev zaharidichev left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Kevin Leimkuhler <[email protected]>
@kleimkuhler kleimkuhler merged commit d5591f0 into master Jun 18, 2020
@kleimkuhler kleimkuhler deleted the kleimkuhler/fix-helm-upgrade branch June 18, 2020 16:22
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants