Skip to content

Commit

Permalink
Pin EC stack version to 8.x in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
1pkg committed Sep 24, 2024
1 parent e1fad6d commit 7e61797
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion testing/benchmark/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ variable "deployment_template" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down
3 changes: 2 additions & 1 deletion testing/cloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ variable "deployment_template" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down
3 changes: 2 additions & 1 deletion testing/infra/terraform/modules/ec_deployment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ variable "deployment_template" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ variable "elasticsearch_password" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down
3 changes: 2 additions & 1 deletion testing/rally-cloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ variable "deployment_template" {
}

variable "stack_version" {
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
type = string
description = "Optional stack version"
default = "latest"
}

variable "elasticsearch_size" {
Expand Down
3 changes: 2 additions & 1 deletion testing/smoke/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ get_latest_snapshot() {
if [ $RC -ne 0 ]; then echo "${RES}"; fi
# NOTE: semver with SNAPSHOT is not working when using the sort_by function in jq,
# that's the reason for transforming the SNAPSHOT in a semver 4 digits.
VERSIONS=$(echo "${RES}" | jq -r -c '[.stacks[].version | select(. | contains("-SNAPSHOT"))] | sort' | sed 's#-SNAPSHOT#.0#g' | jq -r -c ' sort_by(.| split(".") | map(tonumber))' | sed 's#.0"#-SNAPSHOT"#g' | jq -r -c .)
# Filter out 9.0.0 temporarily until it's ready.
VERSIONS=$(echo "${RES}" | jq -r -c '[.stacks[].version | select(. | startswith("9.0.0") | not | contains("-SNAPSHOT"))] | sort' | sed 's#-SNAPSHOT#.0#g' | jq -r -c ' sort_by(.| split(".") | map(tonumber))' | sed 's#.0"#-SNAPSHOT"#g' | jq -r -c .)
}

get_latest_snapshot_for_version() {
Expand Down
3 changes: 2 additions & 1 deletion testing/smoke/managed/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ variable "aws_provisioner_key_name" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down
3 changes: 2 additions & 1 deletion testing/smoke/supported-os/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ variable "aws_provisioner_key_name" {
}

variable "stack_version" {
default = "latest"
# Use the latest 8 version until 9 is ready.
default = "8.?.?"
description = "Optional stack version"
type = string
}
Expand Down

0 comments on commit 7e61797

Please sign in to comment.