You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/06/09 12:20:25 UTC
[GH] (airflow/2604/deflake_ssh): Workflow run "Tests (AMD)" is working again!
The GitHub Actions job "Tests (AMD)" on airflow.git/2604/deflake_ssh has succeeded.
Run started by GitHub user Dev-iL (triggered by Dev-iL).
Head commit for run:
173a5e0c2bed24ab272b902f12998944f9e40549 / Dev-iL <65...@users.noreply.github.com>
Fix flaky SSH timeout test by adding mocking
The test_command_timeout_fail test was flaky because it relied on real SSH
connections and a 1ms timeout, causing paramiko's internal socket timeouts
to fire before the select loop could catch them.
Replaced real SSH connection with mocks for deterministic testing:
- Mock paramiko.SSHClient.exec_command to return controlled channel objects
- Mock select to simulate immediate timeout
- Use spec on all mocks (Channel, ChannelFile, ChannelStdinFile,
ChannelStderrFile) to catch attribute typos
- Verify cmd_timeout is correctly threaded through to both exec_command
and select calls
- Assert cleanup side effects: stdin.close, shutdown_write, shutdown_read,
channel.close, stdout.close, stderr.close
Report URL: https://github.com/apache/airflow/actions/runs/27203594217
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org