test: make Sentry acceptance cleanup resilient (#411)
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Successful in 14m21s
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 5m18s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 1s
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Successful in 14m21s
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 5m18s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 1s
This commit is contained in:
1 parent
bc2bff96fb
commit
6da1fe4d67
2 files changed
+5
-1
No files matched your search
@@ -20,6 +20,6 @@ When changing this behavior:
|
||||
|
||||
## Acceptance
|
||||
|
||||
Run `skills/sentry-telemetry-privacy/acceptance.sh`. The recipe runs the focused .NET test from the current checkout in a uniquely named disposable Compose project using the upstream .NET SDK image. It publishes no ports, creates no application image, uses no deployed configuration, and removes and verifies the project's containers, volumes, and network. Upstream SDK images remain cached. Record the project name, test result, `local images built: none`, and resource-cleanup verification in the linked Gitea issue/PR.
|
||||
Run `skills/sentry-telemetry-privacy/acceptance.sh`. The recipe runs the focused .NET test from the current checkout in a uniquely named disposable Compose project using the upstream .NET SDK image. It publishes no ports, creates no application image, uses no deployed configuration, and removes and verifies the project's containers, volumes, and network. Its `EXIT` trap disables inherited `errexit`/`nounset` while attempting each independent cleanup step, preserves the original test status, and reports cleanup failures. Upstream SDK images remain cached. Record the project name, test result, `local images built: none`, and resource-cleanup verification in the linked Gitea issue/PR.
|
||||
|
||||
This proves local sanitization logic and event/transaction payload handling only. It does not claim a live Sentry/GlitchTip delivery or rotate any external credential.
|
||||
@@ -13,6 +13,10 @@ local_image_tags=()
|
||||
cleanup() {
|
||||
status=$?
|
||||
trap - EXIT
|
||||
# Cleanup must continue through every independent resource even when the
|
||||
# caller enabled errexit/nounset or an earlier Docker query failed.
|
||||
set +e
|
||||
set +u
|
||||
cleanup_failed=0
|
||||
docker compose --project-directory "$repo_root" --env-file "$env_file" \
|
||||
-f "$compose_file" -p "$project" down --volumes --remove-orphans || cleanup_failed=1
|
||||
|
||||
Reference in new issue
Block a user