Skip to content

fix: use trap for cleanup in run-integration-tests.sh#213

Merged
pranishnepal merged 1 commit into
masterfrom
follow-up/WCN-399
May 29, 2026
Merged

fix: use trap for cleanup in run-integration-tests.sh#213
pranishnepal merged 1 commit into
masterfrom
follow-up/WCN-399

Conversation

@pranishnepal
Copy link
Copy Markdown
Contributor

What

Replace || true pattern with trap 'docker-compose down' EXIT so cleanup always runs on exit while preserving the real exit code. The previous approach always captured exit code 0 due to || true, meaning CI would never go red on test failures.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

WCN-399

Replace || true pattern with trap 'docker-compose
down' EXIT so cleanup always runs on exit while
preserving the real exit code.

Ticket: WCN-399
@pranishnepal pranishnepal marked this pull request as ready for review May 29, 2026 21:06
@pranishnepal pranishnepal requested a review from a team as a code owner May 29, 2026 21:06
@pranishnepal pranishnepal requested a review from mrdanish26 May 29, 2026 21:06
@pranishnepal pranishnepal enabled auto-merge May 29, 2026 21:07
@pranishnepal pranishnepal requested a review from danielpeng1 May 29, 2026 21:07
@pranishnepal pranishnepal merged commit 9a274a0 into master May 29, 2026
20 checks passed
@pranishnepal pranishnepal deleted the follow-up/WCN-399 branch May 29, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants