Skip to content

[CI] test terraform issues - DO NOT MERGE #14485

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

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
361ca3f
Update elastic-package dependency
mrodm Jul 9, 2025
229830e
Test just canva
mrodm Jul 9, 2025
e7c75ac
Test without aws profile
mrodm Jul 10, 2025
77c2d79
Update elastic-package
mrodm Jul 10, 2025
b041e5a
Add env. variables to debug
mrodm Jul 10, 2025
5d1e44e
Update elastic-package - includes retries
mrodm Jul 10, 2025
eb07bdb
Update elastic-package - set specific runID
mrodm Jul 11, 2025
444c120
Update elastic-package - set other specific runID
mrodm Jul 11, 2025
e5e18f3
Update elastic-package - test buckets
mrodm Jul 11, 2025
671e67c
Update elastic-package - test buckets
mrodm Jul 11, 2025
5bd7ed6
Update elastic-package - test sublime_security
mrodm Jul 11, 2025
33216c1
update env vars
mrodm Jul 11, 2025
272e950
Update elastic-package - test prefix
mrodm Jul 11, 2025
fc34c37
Update elastic-package - test symantec_endpoint_security
mrodm Jul 11, 2025
03c3e2e
Update env vars symantec_endpoint_security
mrodm Jul 11, 2025
a38ebaf
test with another RunID
mrodm Jul 14, 2025
d731d33
Update elastic-package
mrodm Jul 14, 2025
a68e32a
Add comment
mrodm Jul 14, 2025
3b87349
Test all packages
mrodm Jul 14, 2025
2b34c3e
Update elastic-package
mrodm Jul 15, 2025
4953d39
Remove some env variables
mrodm Jul 15, 2025
8f7cbc5
Test another random string
mrodm Jul 15, 2025
0829dbc
Test another dynamic env var
mrodm Jul 15, 2025
e57f41c
Set prefix in pre-command hook
mrodm Jul 15, 2025
59d1d8b
Add default value
mrodm Jul 15, 2025
6228602
Trigger intgration tests
mrodm Jul 15, 2025
0bea2a1
Test all packages with random prefix RunID (step_id)
mrodm Jul 15, 2025
333d5e9
Update elastic-package - random service test run ID
mrodm Jul 17, 2025
5f5ca7d
Fix condition to set prefix
mrodm Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ BUILDKITE_API_TOKEN_PATH=kv/ci-shared/platform-ingest/buildkite_token

EC_DATA_PATH=secret/ci/elastic-integrations/ec_data

# variables required for terraform
export JOB_GCS_BUCKET_INTERNAL="ecosystem-ci-internal"

# ---- start variables required by terrafrom ------
# https://github.com/elastic/elastic-package/blob/f8f2f15a04bcc25eca00887fb147bd7f8a0f32b3/internal/servicedeployer/_static/terraform_deployer.yml#L8

export ENVIRONMENT="ci"
export REPO="${REPO_NAME}"

export JOB_GCS_BUCKET_INTERNAL="ecosystem-ci-internal"

branch_name_label() {
local branch="$1"

Expand Down Expand Up @@ -68,6 +70,15 @@ export BUILD_ID="${BUILDKITE_BUILD_NUMBER}"
CREATED_DATE=$(date +%s%3N)
export CREATED_DATE

if [[ "${ELASTIC_PACKAGE_CUSTOMIZE_SERVICE_TEST_RUN_ID:-"false"}" == "true" ]]; then
# Required to customize the RunID value to use in terraform resources
# Get the latest 4 digits of the BUILDKITE_STEP_ID
export ELASTIC_PACKAGE_PREFIX_SERVICE_TEST_RUN_ID="${BUILDKITE_STEP_ID: -4}"
echo "Using Terraform prefix RunID: ${ELASTIC_PACKAGE_PREFIX_SERVICE_TEST_RUN_ID}"
fi

# ----end variables required by terrafrom ------

if [ -n "${ELASTIC_PACKAGE_LINKS_FILE_PATH+x}" ]; then
# first upload pipeline does not have the environment variables defined in the YAML
export ELASTIC_PACKAGE_LINKS_FILE_PATH=${BASE_DIR}/${ELASTIC_PACKAGE_LINKS_FILE_PATH}
Expand Down
6 changes: 6 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ env:
ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI: "${ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI:-false}"
# Disable checking for newer versions
ELASTIC_PACKAGE_CHECK_UPDATE_DISABLED: "true"
# Customize Service Test Run ID used by elastic-package
# It requires to be customized in .buildkite/hooks/pre-command
# Defining here an expression like this:
# ELASTIC_PACKAGE_CUSTOMIZE_SERVICE_TEST_RUN_ID: "${BUILDKITE_STEP_ID: -4}"
# It always gets the value "BUILDKITE_STEP_ID" from the "Upload pipeline" step
ELASTIC_PACKAGE_CUSTOMIZE_SERVICE_TEST_RUN_ID: "true"

steps:
- label: "Get reference from target branch"
Expand Down
38 changes: 20 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/magefile/mage v1.15.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.10.0
golang.org/x/tools v0.34.0
golang.org/x/tools v0.35.0
gopkg.in/yaml.v3 v3.0.1
)

Expand Down Expand Up @@ -71,7 +71,7 @@ require (
github.com/elastic/go-windows v1.0.1 // indirect
github.com/elastic/gojsonschema v1.2.1 // indirect
github.com/elastic/kbncontent v0.1.4 // indirect
github.com/elastic/package-spec/v3 v3.4.0 // indirect
github.com/elastic/package-spec/v3 v3.4.1 // indirect
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
github.com/envoyproxy/go-control-plane v0.13.1 // indirect
github.com/envoyproxy/protoc-gen-validate v1.1.0 // indirect
Expand All @@ -91,7 +91,7 @@ require (
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/strfmt v0.23.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/btree v1.1.3 // indirect
Expand All @@ -112,7 +112,7 @@ require (
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-retryablehttp v0.7.8 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand All @@ -131,7 +131,8 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mholt/archives v0.1.2 // indirect
github.com/mholt/archives v0.1.3 // indirect
github.com/mikelolasagasti/xz v1.0.1 // indirect
github.com/minio/minlz v1.0.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
Expand All @@ -148,7 +149,7 @@ require (
github.com/oklog/ulid v1.3.1 // indirect
github.com/olekukonko/errors v1.1.0 // indirect
github.com/olekukonko/ll v0.0.8 // indirect
github.com/olekukonko/tablewriter v1.0.7 // indirect
github.com/olekukonko/tablewriter v1.0.8 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pkg/xattr v0.4.10 // indirect
Expand All @@ -170,7 +171,6 @@ require (
github.com/spf13/cobra v1.9.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/therootcompany/xz v1.0.1 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.8.0 // indirect
github.com/ulikunitz/xz v0.5.12 // indirect
Expand Down Expand Up @@ -199,14 +199,14 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
golang.org/x/crypto v0.39.0 // indirect
golang.org/x/mod v0.25.0 // indirect
golang.org/x/net v0.41.0 // indirect
golang.org/x/crypto v0.40.0 // indirect
golang.org/x/mod v0.26.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/oauth2 v0.28.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/text v0.26.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.34.0 // indirect
golang.org/x/term v0.33.0 // indirect
golang.org/x/text v0.27.0 // indirect
golang.org/x/time v0.9.0 // indirect
google.golang.org/api v0.215.0 // indirect
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 // indirect
Expand All @@ -220,11 +220,11 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
helm.sh/helm/v3 v3.18.4 // indirect
howett.net/plist v1.0.0 // indirect
k8s.io/api v0.33.2 // indirect
k8s.io/api v0.33.3 // indirect
k8s.io/apiextensions-apiserver v0.33.2 // indirect
k8s.io/apimachinery v0.33.2 // indirect
k8s.io/cli-runtime v0.33.2 // indirect
k8s.io/client-go v0.33.2 // indirect
k8s.io/apimachinery v0.33.3 // indirect
k8s.io/cli-runtime v0.33.3 // indirect
k8s.io/client-go v0.33.3 // indirect
k8s.io/component-base v0.33.2 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
Expand All @@ -237,3 +237,5 @@ require (
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)

replace github.com/elastic/elastic-package => github.com/mrodm/elastic-package v0.53.1-0.20250717101642-8e96a29a6ea4
Loading