Skip to content

Commit

Permalink
[8.15] Remove Agent Debug Info (#187126) (#187802)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.15`:
- [Remove Agent Debug Info
(#187126)](#187126)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brad
White","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-08T21:10:14Z","message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.15.0","v8.16.0"],"title":"[CI]
Remove Agent Debug
Info","number":187126,"url":"https://github.com/elastic/kibana/pull/187126","mergeCommit":{"message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187126","number":187126,"mergeCommit":{"message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91"}}]}]
BACKPORT-->

---------

Co-authored-by: Brad White <[email protected]>
Co-authored-by: Brad White <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent ca4b2e7 commit a269eb2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 64 deletions.
7 changes: 0 additions & 7 deletions .buildkite/scripts/lifecycle/post_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ echo '--- Log out of gcloud'
./.buildkite/scripts/common/activate_service_account.sh --unset-impersonation || echo "Failed to unset impersonation"
./.buildkite/scripts/common/activate_service_account.sh --logout-gcloud || echo "Failed to log out of gcloud"

if [[ "${SKIP_NODE_SETUP:-}" =~ ^(1|true)$ ]]; then
echo '--- Skipping Agent Debug Info'
else
echo '--- Agent Debug Info'
ts-node .buildkite/scripts/lifecycle/print_agent_links.ts || true
fi

IS_TEST_EXECUTION_STEP="$(buildkite-agent meta-data get "${BUILDKITE_JOB_ID}_is_test_execution_step" --default '')"

if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
Expand Down
10 changes: 0 additions & 10 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ if [[ "${SKIP_NODE_SETUP:-}" =~ ^(1|true)$ ]]; then
else
source .buildkite/scripts/common/setup_node.sh
source .buildkite/scripts/common/setup_buildkite_deps.sh

echo '--- Agent Debug/SSH Info'
ts-node .buildkite/scripts/lifecycle/print_agent_links.ts || true
fi

if [[ "$(curl -is metadata.google.internal || true)" ]]; then
echo ""
echo "To SSH into this agent, run:"
echo "gcloud compute ssh --tunnel-through-iap --project elastic-kibana-ci --zone \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/zone)\" \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/name)\""
echo ""
fi

if [[ "${BUILDKITE_LABEL:-}" == *"Run Dynamic Pipeline"* || "${BUILDKITE_LABEL:-}" == *"Upload Pipeline"* ]]; then
Expand Down
47 changes: 0 additions & 47 deletions .buildkite/scripts/lifecycle/print_agent_links.ts

This file was deleted.

0 comments on commit a269eb2

Please sign in to comment.