Skip to content

Fix sshd test flakiness and orphan daemon#1024

Open
ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:tmux
Open

Fix sshd test flakiness and orphan daemon#1024
ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:tmux

Conversation

@ejohnstown

Copy link
Copy Markdown
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 wolfSSL-Fenrir-bot 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.

Fenrir Automated Review — PR #1024

No scan targets match the changed files in this PR. Review skipped.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 via trap to avoid stale “duplicate session” failures.
  • run_all_sshd_tests.sh: Validate --match before 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
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.

3 participants