Skip to content

Dump diagnostic logs from snippets runs #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ variables:
- func: setup_mongosh
- func: download_kube_tools
- func: build_multi_cluster_binary
teardown_group:
teardown_task:
- func: upload_e2e_logs
- func: upload_code_snippets_logs

- &setup_and_teardown_group_kind_code_snippets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdir -p secrets

gcloud iam service-accounts keys create secrets/external-dns-sa-key.json --iam-account="${DNS_SA_EMAIL}"
gcloud iam service-accounts keys create secrets/external-dns-sa-key.json --iam-account="${DNS_SA_EMAIL}" || true
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ function cleanup() {
echo "Not deleting anything"
fi
}
trap cleanup EXIT

function on_exit() {
scripts/evergreen/e2e/dump_diagnostic_information_from_all_namespaces.sh
cleanup
}

trap on_exit EXIT

source public/architectures/setup-multi-cluster/setup-gke/env_variables.sh
./public/architectures/setup-multi-cluster/setup-gke/test.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ function cleanup() {
echo "Not deleting anything"
fi
}
trap cleanup EXIT

function on_exit() {
scripts/evergreen/e2e/dump_diagnostic_information_from_all_namespaces.sh
cleanup
}

trap on_exit EXIT

source public/architectures/setup-multi-cluster/setup-gke/env_variables.sh
./public/architectures/setup-multi-cluster/setup-gke/test.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
set -eou pipefail
source scripts/dev/set_env_context.sh

dump_logs() {
source scripts/evergreen/e2e/dump_diagnostic_information.sh
dump_all_non_default_namespaces "$@"
function on_exit() {
scripts/evergreen/e2e/dump_diagnostic_information_from_all_namespaces.sh
}
trap dump_logs EXIT
trap on_exit EXIT

test_dir="./docs/community-search/quick-start"

Expand Down
4 changes: 4 additions & 0 deletions scripts/evergreen/e2e/dump_diagnostic_information.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ dump_all_non_default_namespaces() {
grep -v "kube-public" | \
grep -v "kube-system" | \
grep -v "local-path-storage" | \
grep -v "gmp-" | \
grep -v "gke-managed" | \
grep -v "local-path-storage" | \
grep -v "local-path-storage" | \
grep -v "metallb-system"
)

Expand Down