Skip to content

Commit ae5a938

Browse files
authored
[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (elastic#220272)
## Summary - Changes the location of any captured Elastic agent diagnostics files during a cypress tests failure to `target/agent_diagnostics` from `target/test_failures`
1 parent 208d7b5 commit ae5a938

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.buildkite/scripts/lifecycle/post_command.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
5454
ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts
5555
fi
5656

57+
if [[ -d 'target/agent_diagnostics' ]]; then
58+
buildkite-agent artifact upload 'target/agent_diagnostics/**/*'
59+
fi
60+
5761
fi
5862

5963
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then

x-pack/solutions/security/plugins/security_solution/public/management/cypress/support/data_loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ ${s1Info.status}
577577
.toISOString()
578578
.replace(/:/g, '.')}.zip`;
579579
const vmDiagnosticsFile = `/tmp/${fileName}`;
580-
const localDiagnosticsDir = `${REPO_ROOT}/target/test_failures`;
580+
const localDiagnosticsDir = `${REPO_ROOT}/target/agent_diagnostics`;
581581
const localDiagnosticsFile = `${localDiagnosticsDir}/${
582582
fileNamePrefix
583583
? // Insure the file name prefix does not have characters that can't be used in file names

0 commit comments

Comments
 (0)