Skip to content

Re-iteration of #194 - #196

Merged
safl merged 2 commits into
mainfrom
wait_for_transport
Oct 2, 2025
Merged

Re-iteration of #194#196
safl merged 2 commits into
mainfrom
wait_for_transport

Conversation

@safl

@safl safl commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

Another iteration on #194
Along with a revert of disabling checks of macos runners

@safl safl added the enhancement New feature or request label Oct 2, 2025
@safl
safl requested a review from naddinadja October 2, 2025 07:25
@safl
safl force-pushed the wait_for_transport branch from 4b5fb20 to 5633d09 Compare October 2, 2025 07:27
@safl safl changed the title Fix https://github.com/refenv/cijoe/issues/194 Re-iteration of #194 Oct 2, 2025
@safl
safl force-pushed the wait_for_transport branch from 5633d09 to c478b52 Compare October 2, 2025 07:35
@coveralls

coveralls commented Oct 2, 2025

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 18187184696

Details

  • 23 of 40 (57.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 78.426%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/cijoe/core/scripts/wait_for_ssh.py 23 40 57.5%
Totals Coverage Status
Change from base Build 18157357306: -0.04%
Covered Lines: 1582
Relevant Lines: 2083

💛 - Coveralls

@karlowich karlowich 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.

LGTM
Avoided hangs from Paramiko sounds great!

The `wait_for_ssh` script previously only checked whether the target was
*up*. This could cause false positives during reboots, since a rebooting
target might still appear as reachable at the time of the check.

To improve reliability:

- The script can now check for both *up* and *down* states.
- A raw socket probe is used instead of Paramiko to avoid hangs.

Signed-off-by: Simon A. F. Lund <os@safl.dk>
@safl
safl force-pushed the wait_for_transport branch from c478b52 to 3a423b4 Compare October 2, 2025 08:07

@naddinadja naddinadja 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.

Nice! :)

@safl
safl merged commit 674f528 into main Oct 2, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants