Skip to content

Commit

Permalink
Quote label filters on ci-e2e.sh on main branch (#434) (#443)
Browse files Browse the repository at this point in the history
This is to ensure the full value of LABEL_FILTERS gets propagated.
  • Loading branch information
thunderboltsid authored Jun 3, 2024
1 parent fe299ae commit 16120ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export PATH="${REPO_ROOT}/hack/tools/bin:${PATH}"

# Override e2e conf values with CI specific environment variables
MAKE_TARGET=${MAKE_TARGET}
LABEL_FILTERS=${LABEL_FILTERS}
LABEL_FILTERS="${LABEL_FILTERS}"
KUBERNETES_VERSION_MANAGEMENT=${KUBERNETES_VERSION_MANAGEMENT}
NUTANIX_ENDPOINT=${NUTANIX_ENDPOINT}
NUTANIX_USER=${NUTANIX_USER}
Expand All @@ -43,4 +43,4 @@ NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME=${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
NUTANIX_SUBNET_NAME=${NUTANIX_SUBNET_NAME}

# Run e2e tests
make ${MAKE_TARGET} LABEL_FILTERS=${LABEL_FILTERS}
make ${MAKE_TARGET} LABEL_FILTERS="${LABEL_FILTERS}"
2 changes: 1 addition & 1 deletion test/e2e/md_rollout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
)

var _ = Describe("When testing MachineDeployment rolling upgrades", Label("md-rolling-upgrades", "slow", "network"), func() {
var _ = Describe("When testing MachineDeployment rolling upgrades", Label("scaling", "md-rolling-upgrades", "slow", "network"), func() {
capi_e2e.MachineDeploymentRolloutSpec(ctx, func() capi_e2e.MachineDeploymentRolloutSpecInput {
return capi_e2e.MachineDeploymentRolloutSpecInput{
E2EConfig: e2eConfig,
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/md_scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"sigs.k8s.io/cluster-api/util"
)

var _ = Describe("When testing MachineDeployment scale out/in", Label("md-scale-out-in", "slow", "network"), func() {
var _ = Describe("When testing MachineDeployment scale out/in", Label("scaling", "md-scale-out-in", "slow", "network"), func() {
capi_e2e.MachineDeploymentScaleSpec(ctx, func() capi_e2e.MachineDeploymentScaleSpecInput {
return capi_e2e.MachineDeploymentScaleSpecInput{
E2EConfig: e2eConfig,
Expand All @@ -47,7 +47,7 @@ var _ = Describe("When testing MachineDeployment scale out/in", Label("md-scale-
})

// Label `only-for-validation` is used to run this test only for validation and not as part of the regular test suite.
var _ = Describe("When testing MachineDeployment scale up/down from 10 replicas to 20 replicas to 10 again", Label("md-scale-up-down", "slow", "network", "only-for-validation"), func() {
var _ = Describe("When testing MachineDeployment scale up/down from 10 replicas to 20 replicas to 10 again", Label("scaling", "md-scale-up-down", "slow", "network", "only-for-validation"), func() {
// MachineDeploymentScaleSpec implements a test that verifies that MachineDeployment scale operations are successful.
inputGetter := func() capi_e2e.MachineDeploymentScaleSpecInput {
return capi_e2e.MachineDeploymentScaleSpecInput{
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/mhc_remediations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
)

var _ = Describe("When testing unhealthy machines remediation", Label("machine-health-remediation", "slow", "network"), func() {
var _ = Describe("When testing unhealthy machines remediation", Label("scaling", "machine-health-remediation", "slow", "network"), func() {
capi_e2e.MachineDeploymentRemediationSpec(ctx, func() capi_e2e.MachineDeploymentRemediationSpecInput {
return capi_e2e.MachineDeploymentRemediationSpecInput{
E2EConfig: e2eConfig,
Expand Down

0 comments on commit 16120ff

Please sign in to comment.