Skip to content

Add S3RemoteLogIO.from_config and register s3 remote logging scheme#69817

Merged
jason810496 merged 1 commit into
apache:mainfrom
jason810496:feature/logging/s3-remote-log-io-from-config
Jul 22, 2026
Merged

Add S3RemoteLogIO.from_config and register s3 remote logging scheme#69817
jason810496 merged 1 commit into
apache:mainfrom
jason810496:feature/logging/s3-remote-log-io-from-config

Conversation

@jason810496

@jason810496 jason810496 commented Jul 13, 2026

Copy link
Copy Markdown
Member

Why

#67056 decoupled remote logging from the hardcoded branches in airflow_local_settings.py: core and the Task SDK now resolve the handler via ProvidersManager dispatch on the [logging] remote_base_log_folder URL scheme, instantiating the provider class through a no-arg from_config() classmethod. This migrates the s3 scheme as the first adopter.

What

  • Add S3RemoteLogIO.from_config(), mirroring the legacy airflow_local_settings.py branch -- including the [logging] remote_task_handler_kwargs IO-kwargs merge and expanduser on base_log_folder, so behavior is unchanged for existing configs.
  • Register the s3 scheme in the amazon get_provider_info.py.

Note

A sibling PR migrates the cloudwatch scheme the same way (#69816); whichever merges second needs a trivial rebase of the new remote-logging: section. If from_config raises on a bad config, the shared factory falls back to the legacy path, so this is not a breaking change.


Was generative AI tooling used to co-author this PR?

@jason810496 jason810496 self-assigned this Jul 13, 2026
@jason810496
jason810496 force-pushed the feature/logging/s3-remote-log-io-from-config branch 2 times, most recently from bb01bb5 to a09a4ab Compare July 18, 2026 13:12
@jason810496
jason810496 marked this pull request as ready for review July 18, 2026 13:12
@jason810496
jason810496 requested a review from o-nikolas as a code owner July 18, 2026 13:12
@jason810496
jason810496 requested review from ferruzzi and vincbeck July 18, 2026 13:12

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Here're more context about the changes itself.

Comment thread providers/amazon/tests/unit/amazon/aws/log/test_s3_task_handler.py
@jason810496
jason810496 requested a review from eladkal July 18, 2026 13:29

@ferruzzi ferruzzi 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

@jason810496

Copy link
Copy Markdown
Member Author

Thanks for the review!

Airflow resolves remote task log handlers through provider dispatch on
the remote_base_log_folder URL scheme since apache#67056; providers must
expose from_config so core and the Task SDK no longer depend on the
hardcoded branches in airflow_local_settings.py. This migrates the s3
scheme as the first adopter.
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.

2 participants