Skip to content

Commit fe309ab

Browse files
[8.19] [Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272) (#224823)
# Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272)](#220272) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Paul Tavares","email":"56442535+paul-tavares@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-07T14:32:32Z","message":"[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272)\n\n## Summary\n\n- Changes the location of any captured Elastic agent diagnostics files\nduring a cypress tests failure to `target/agent_diagnostics` from\n`target/test_failures`","sha":"ae5a93811b42c2435cc7de7ee7fa41f6c45d30f9","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","backport:version","v9.1.0","v8.19.0"],"title":"[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites","number":220272,"url":"https://github.com/elastic/kibana/pull/220272","mergeCommit":{"message":"[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272)\n\n## Summary\n\n- Changes the location of any captured Elastic agent diagnostics files\nduring a cypress tests failure to `target/agent_diagnostics` from\n`target/test_failures`","sha":"ae5a93811b42c2435cc7de7ee7fa41f6c45d30f9"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220272","number":220272,"mergeCommit":{"message":"[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272)\n\n## Summary\n\n- Changes the location of any captured Elastic agent diagnostics files\nduring a cypress tests failure to `target/agent_diagnostics` from\n`target/test_failures`","sha":"ae5a93811b42c2435cc7de7ee7fa41f6c45d30f9"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
1 parent a0698d3 commit fe309ab

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
@@ -57,6 +57,10 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
5757
ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts
5858
fi
5959

60+
if [[ -d 'target/agent_diagnostics' ]]; then
61+
buildkite-agent artifact upload 'target/agent_diagnostics/**/*'
62+
fi
63+
6064
fi
6165

6266
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)