Skip to content

test: keep the scenario's status when SCTP wire cleanup fails or hangs - #146

Merged
gomaja merged 1 commit into
mainfrom
fix/i141-harness-cleanup
Oct 16, 2026
Merged

gomaja merged 1 commit into
mainfrom
fix/i141-harness-cleanup

Conversation

@gomaja

@gomaja gomaja commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

The shared SCTP wire harness ran its cleanup under set -e, so one failing
Docker command ended the EXIT handler early: the run's scratch directory
stayed behind and the runner exited with the cleanup's status instead of
the scenario's. A hanging Docker command stopped cleanup for good, and a
SIGINT or SIGTERM during cleanup replaced the status with 130.

Cleanup now carries on past every failing command, bounds each Docker
command it runs (60 s by default, then a forced kill), shields itself from
further SIGINT and SIGTERM, always removes the scratch directory and returns
the scenario's status. The Python harness tests cover failing, hanging and
interrupted cleanup, each under its own deadline, and scripts/check.sh now
runs them in its test step.

The TLS restart runner and its fixture name their test binary, environment
variables and readiness markers after the scenario.

Closes #141.


Summary by cubic

Fixes the shared SCTP wire harness cleanup so a failing, hanging, or interrupted Docker command no longer replaces the scenario's exit status with the cleanup's, and the run's scratch directory is always removed.

  • Cleanup now continues past failing Docker commands, times out each one (60 s default, then a forced kill), ignores further SIGINT and SIGTERM, and returns the scenario's status.
  • The TLS restart runner and fixture now name their binary, environment variables, and readiness markers after the scenario.
  • New Python harness tests cover failing, hanging, and interrupted cleanup; scripts/check.sh runs them in its test step.

Closes #141.

Written for commit f745c01. Summary will update on new commits.

View guided diff Turn on auto-fix

The shared SCTP wire harness ran its cleanup under set -e, so one failing
Docker command ended the EXIT handler early: the run's scratch directory
stayed behind and the runner exited with the cleanup's status instead of
the scenario's. A hanging Docker command stopped cleanup for good, and a
SIGINT or SIGTERM during cleanup replaced the status with 130.

Cleanup now carries on past every failing command, bounds each Docker
command it runs (60 s by default, then a forced kill), shields itself from
further SIGINT and SIGTERM, always removes the scratch directory and returns
the scenario's status. The Python harness tests cover failing, hanging and
interrupted cleanup, each under its own deadline, and scripts/check.sh now
runs them in its test step.

The TLS restart runner and its fixture name their test binary, environment
variables and readiness markers after the scenario.

Closes #141.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 17:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3ce3d9d1-9bf8-4a8d-9374-3a5faabbcca2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T17:35:23.354729Z f745c01 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gomaja
gomaja merged commit 4f98a3c into main Oct 16, 2026
2 checks passed
@gomaja
gomaja deleted the fix/i141-harness-cleanup branch October 16, 2026 17:36
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.

test: SCTP wire harness cleanup and TLS harness naming leftovers

2 participants