From 4dfe62398f93855d37b1931db3beed4132d5239b Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Wed, 15 Nov 2023 08:18:23 +0100 Subject: [PATCH] more debug --- .buildkite/scripts/steps/integration_tests.sh | 2 +- testing/integration/logs_ingestion_test.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.buildkite/scripts/steps/integration_tests.sh b/.buildkite/scripts/steps/integration_tests.sh index 2a129193267..cfec71148a5 100755 --- a/.buildkite/scripts/steps/integration_tests.sh +++ b/.buildkite/scripts/steps/integration_tests.sh @@ -23,7 +23,7 @@ AGENT_PACKAGE_VERSION="${OVERRIDE_AGENT_PACKAGE_VERSION}" DEV=true EXTERNAL=true # Run integration tests set +e -AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_CLEAN_ON_EXIT=true STACK_PROVISIONER="$STACK_PROVISIONER" SNAPSHOT=true mage $MAGE_TARGET $MAGE_SUBTARGET +AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_CLEAN_ON_EXIT=true STACK_PROVISIONER="$STACK_PROVISIONER" SNAPSHOT=true mage -v $MAGE_TARGET $MAGE_SUBTARGET TESTS_EXIT_STATUS=$? set -e diff --git a/testing/integration/logs_ingestion_test.go b/testing/integration/logs_ingestion_test.go index e12acf1adde..d707d2504f8 100644 --- a/testing/integration/logs_ingestion_test.go +++ b/testing/integration/logs_ingestion_test.go @@ -207,6 +207,9 @@ func findESDocs(t *testing.T, findFn func() (estools.Documents, error)) estools. fmt.Println(">>>>>>>>>>>>>>>>>>>> Iteration ", count) var err error docs, err = findFn() + if err != nil { + fmt.Println(">>>>>>>>>>>>>>>>>>>> error tying to fetch ES docs: ", err) + } return err == nil }, 8*time.Minute,