Skip to content

Conversation

@jason810496
Copy link
Member

related: Fix CloudwatchTaskHandler display error #54054

Why

While fixing comments in #54054, I realized that we should support stream method in RemoteIO as #54054 (review) point out. Starting with Airflow 3, FileTaskHandler._read_remote_logs will utilize RemoteIO behind the scenes, rather than relying on <Provider>TaskHandler._read_remote_logs.

What

Add stream method to RemoteIO Protocol and add corresponding unit tests.

@jason810496 jason810496 marked this pull request as ready for review August 22, 2025 14:27
@jason810496 jason810496 requested review from Lee-W and ashb August 22, 2025 14:28
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from 88b1454 to a7c7322 Compare August 23, 2025 02:31
@jason810496 jason810496 marked this pull request as draft August 28, 2025 06:50
@jason810496 jason810496 marked this pull request as ready for review September 4, 2025 05:39
@ashb ashb added the full tests needed We need to run full set of tests for this PR to merge label Sep 4, 2025
@ashb
Copy link
Member

ashb commented Sep 4, 2025

re-triggering tests

@ashb ashb closed this Sep 4, 2025
@ashb ashb reopened this Sep 4, 2025
@jason810496 jason810496 marked this pull request as draft September 5, 2025 01:55
@jason810496 jason810496 marked this pull request as ready for review September 8, 2025 10:28
@jason810496 jason810496 added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Sep 8, 2025
@jason810496
Copy link
Member Author

I added backport-to-v3-0-test because, regardless of whether Airflow Core is 3.0.x or 3.1.x.
If the provider implements the .stream method, the core should use it and fallback to .read if not implement.

@kaxil kaxil removed the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Sep 14, 2025
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

You seem to have added some test classes that have no test functions, so the fixtures will never be run?

@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from 8125772 to fd7d0b5 Compare September 17, 2025 06:04
@jason810496 jason810496 requested a review from ashb September 18, 2025 06:16
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from fd7d0b5 to 3be54d3 Compare October 5, 2025 11:25
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from 3be54d3 to 353e66e Compare October 22, 2025 11:57
Copy link
Member Author

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

This PR should be really to go.

@jason810496 jason810496 marked this pull request as draft October 22, 2025 14:34
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from 32b47a1 to 2372ad8 Compare October 23, 2025 02:36
@jason810496 jason810496 marked this pull request as ready for review October 23, 2025 03:20
@jason810496 jason810496 requested a review from kaxil October 23, 2025 03:21
@potiuk potiuk force-pushed the refactor/logging/add-stream-method branch from 2372ad8 to 8304975 Compare October 25, 2025 20:52
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch 2 times, most recently from 2d64952 to 9afa883 Compare October 27, 2025 11:51
@jason810496 jason810496 requested a review from potiuk October 28, 2025 07:54
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from 9afa883 to c56da4d Compare October 30, 2025 16:27
@jason810496 jason810496 force-pushed the refactor/logging/add-stream-method branch from c56da4d to 00fcf78 Compare November 10, 2025 11:50
@jason810496 jason810496 merged commit 27240e6 into apache:main Nov 12, 2025
118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logging area:providers full tests needed We need to run full set of tests for this PR to merge provider:alibaba provider:amazon AWS/Amazon - related issues provider:apache-hdfs provider:google Google (including GCP) related issues provider:microsoft-azure Azure-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants