Skip to content

Commit

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

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

<!--- Backport version: 8.9.8 -->

### 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"],"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":[],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/187802","number":187802,"state":"OPEN"},{"branch":"main","label":"v8.16.0","labelRegex":"^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-->
  • Loading branch information
Ikuni17 authored Jul 9, 2024
1 parent 0833f58 commit 8a96297
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
3 changes: 0 additions & 3 deletions .buildkite/scripts/lifecycle/post_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +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"

echo '--- Agent Debug Info'
node .buildkite/scripts/lifecycle/print_agent_links.js || true

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 @@ -12,13 +12,3 @@ else
source .buildkite/scripts/common/setup_node.sh
source .buildkite/scripts/common/setup_buildkite_deps.sh
fi

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

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
46 changes: 0 additions & 46 deletions .buildkite/scripts/lifecycle/print_agent_links.js

This file was deleted.

0 comments on commit 8a96297

Please sign in to comment.