Fix sshd test flakiness and orphan daemon#1024
Open
ejohnstown wants to merge 1 commit into
Open
Conversation
ejohnstown
commented
Jun 12, 2026
Contributor
- term size test: poll tmux output with retries instead of fixed sleeps
- run_all_sshd_tests.sh: validate --match before starting wolfSSHd
- term size test: poll tmux output with retries instead of fixed sleeps - run_all_sshd_tests.sh: validate --match before starting wolfSSHd
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #1024
No scan targets match the changed files in this PR. Review skipped.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the wolfSSHd test harness to reduce CI flakiness and prevent leaving orphaned wolfSSHd/tmux resources when a test selection is invalid or a test times out.
Changes:
sshd_term_size_test.sh: Replace fixed sleeps with polling of tmux pane output; add tmux-session teardown viatrapto avoid stale “duplicate session” failures.run_all_sshd_tests.sh: Validate--matchbefore starting a local wolfSSHd to avoid orphan daemons when a test name is invalid.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/wolfsshd/test/sshd_term_size_test.sh | Adds polling helpers + EXIT trap to reduce tmux/terminal-size test flakiness. |
| apps/wolfsshd/test/run_all_sshd_tests.sh | Moves --match validation ahead of wolfSSHd startup to prevent orphan processes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+51
to
+54
| for _ in $(seq 1 10); do | ||
| sleep 1 | ||
| SIZE_LINE=$(tmux capture-pane -p -t test | grep -E '^[0-9]+ [0-9]+$' | tail -n 1) | ||
| if [ -n "$SIZE_LINE" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.