[updatecli] Update default stack version to 9.0.4#2763
Conversation
Made with ❤️️ by updatecli
|
Other errors in
but AFAIK there is no solution to solve those yet. |
…lastic-stack-default-version
| package_name=$(basename "${package}") | ||
| echo " - label: \":go: Integration test (with logstash): ${package_name}\"" | ||
| echo " key: \"integration-with_logstash-${package_name}\"" | ||
| echo " command: ./.buildkite/scripts/integration_tests.sh -t test-check-packages-with-logstash -p ${package_name}" |
There was a problem hiding this comment.
Just realised that this if needs to be updated in order to trigger each package independently @jsoriano :
Or try to check different this condition
There was a problem hiding this comment.
Maybe something like this could be done ? WDYT?
diff --git .buildkite/scripts/integration_tests.sh .buildkite/scripts/integration_tests.sh
index c84889ce..b2db2b23 100755
--- .buildkite/scripts/integration_tests.sh
+++ .buildkite/scripts/integration_tests.sh
@@ -15,10 +15,17 @@ usage() {
PARALLEL_TARGET="test-check-packages-parallel"
FALSE_POSITIVES_TARGET="test-check-packages-false-positives"
+LOGSTASH_TARGET="test-check-packages-with-logstash"
KIND_TARGET="test-check-packages-with-kind"
SYSTEM_TEST_FLAGS_TARGET="test-system-test-flags"
TEST_BUILD_ZIP_TARGET="test-build-zip"
+TEST_EACH_PACKAGE_TARGETS=(
+ "${PARALLEL_TARGET}"
+ "${FALSE_POSITIVES_TARGET}"
+ "${LOGSTASH_TARGET}"
+)
+
REPO_NAME=$(repo_name "${BUILDKITE_REPO}")
export REPO_BUILD_TAG="${REPO_NAME}/$(buildkite_pr_branch_build_id)"
TARGET=""
@@ -89,7 +96,15 @@ if [ -n "${PACKAGE}" ]; then
label="${label} - ${PACKAGE}"
fi
echo "--- Run integration test ${label}"
-if [[ "${TARGET}" == "${PARALLEL_TARGET}" ]] || [[ "${TARGET}" == "${FALSE_POSITIVES_TARGET}" ]]; then
+test_each_package=false
+for target in "${TEST_EACH_PACKAGE_TARGETS[@]}"; do
+ if [[ "${TARGET}" == "${target}" ]]; then
+ test_each_package=true
+ break
+ fi
+done
+
+if [[ "${test_each_package}" == "true" ]]; then
make install
# allow to fail this command, to be able to upload safe logsThere was a problem hiding this comment.
Or maybe it can be revisited that if and try to unify both branches of that if statement into just one.
echo "--- Run integration test ${label}"
# allow to fail this command, to be able to upload safe logs
set +e
make SERVERLESS="${SERVERLESS}" PACKAGE_UNDER_TEST="${PACKAGE}" "${TARGET}"
testReturnCode=$?
set -e
if [[ "${UPLOAD_SAFE_LOGS}" -eq 1 ]] ; then
# upload safe logs code ...
fi
if [ $testReturnCode != 0 ]; then
echo "make SERVERLESS=${SERVERLESS} PACKAGE_UNDER_TEST=${PACKAGE} ${TARGET} failed with ${testReturnCode}"
exit ${testReturnCode}
fi
echo "--- Check git clean"
make check-git-clean
exit 0PACKAGE_UNDER_TEST variable should be empty string in the other Makefile targets, and SERVERLESS should be just true in its corresponding pipeline. But this needs to be tested...
There was a problem hiding this comment.
Now it fails due to a missing variable JOB_GCS_BUCKET_INTERNAL.
I think that variable can always be defined like this: d214271
No need to define it just in those specific steps.
There was a problem hiding this comment.
Why does it fail only for logstash? Should this be set in integration_tests.sh?
There was a problem hiding this comment.
Because steps testing logstash have another id/key name that do not match with the current conditions:
elastic-package/.buildkite/hooks/pre-command
Lines 51 to 68 in 778b52c
I'd remove that function and set JOB_GCS_BUCKET_INTERNAL unconditionally.
There was a problem hiding this comment.
I'd remove that function and set
JOB_GCS_BUCKET_INTERNALunconditionally.
Done like this.
b6839cd to
778b52c
Compare
|
/test |
5987d42 to
b6839cd
Compare
💔 Build Failed
Failed CI StepsHistory
|
…lastic-stack-default-version
|
Created follow up issue to revert the pinned versions at some point #2773. |
Bump elastic-stack default version
[updatecli] Update default stack version to 9.0.4
1 file(s) updated with "$1 \"9.0.4\"": * internal/install/stack_version.go
Created automatically by Updatecli
Options:
Most of Updatecli configuration is done via its manifest(s).
Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!