Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

e2e: fix flakiness of various tests #178

Merged
merged 6 commits into from
Jan 7, 2020
Merged

e2e: fix flakiness of various tests #178

merged 6 commits into from
Jan 7, 2020

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jan 7, 2020

This improves the stability of the end-to-end tests by fixing the flakiness of various tests. In addition, to help (new) contributors with the setup of the end-to-end tests a check has been added to confirm the parallel version on the system is GNU Parallel and not Tollef's parallel, as they behave differently.

@hiddeco hiddeco added the build About the build or test scaffolding label Jan 7, 2020
@stefanprodan
Copy link
Member

@hiddeco fix this typo also Git mituation causes upgrade

This ensures that the cleanup of clusters also happens when the
creation of one of the clusters fails, as otherwise manual removal
is required before the tests can be run again.
The `HELM_VERSION` environmental variable is only used when the
flag has not been modified. Due to the default `helm.versions`
value in the Helm chart's `values.yaml`, the flag is always
modified when the Helm operator is installed using Helm and the
environmental value is thus ignored.

This commit sets the `helm.versions` flag when installing the
operator for end-to-end tests instead of the `HELM_VERSION`, so
that the correct Helm version is targeted for e.g. Helm v3 specific
tests.
Since the timeout is per package and not per test, set it to a
generous 5m instead of 60s.
@hiddeco hiddeco changed the title e2e: fix typo in teardown 'run_deffered' -> 'run_deferred' e2e: fix flakiness of various tests Jan 7, 2020
@hiddeco hiddeco merged commit 8645527 into master Jan 7, 2020
@hiddeco hiddeco deleted the e2e/deferred-typo branch January 7, 2020 20:36
@@ -37,15 +37,20 @@ E2E_KIND_CLUSTER_NUM=${E2E_KIND_CLUSTER_NUM:-1}
if ! kubectl version > /dev/null 2>&1; then
install_kind

# We require GNU Parallel, but some systems come with Tollef's parallel (moreutils)
if ! parallel -h | grep -q "GNU Parallel"; then
Copy link
Contributor

@2opremio 2opremio Jan 8, 2020

Choose a reason for hiding this comment

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

We should include this in Flux too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build About the build or test scaffolding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants