The GitHub Actions job "Tests (AMD)" on airflow.git/2604/deflake_ssh has failed. Run started by GitHub user Dev-iL (triggered by Dev-iL).
Head commit for run: 8055f4d182175ff928386f4c485a770e114b0d1e / Dev-iL <[email protected]> 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/27192242713 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
