Skip to content

Conversation

@jroachgolf84
Copy link
Collaborator

@jroachgolf84 jroachgolf84 commented Jul 7, 2025

Per #52920, using the S3KeySensor in deferrable mode split the bucket_key parameter into individual characters when passing a string. This PR aims to resolve this by first checking if bucket_key is a string, before handling that behavior.

Note that two tests were updated as part of this PR. It appears, in fact, that these tests were written to accommodate this faulty logic. This has been fixed.

Closes: #52920

Copy link
Contributor

@dominikhei dominikhei left a comment

Choose a reason for hiding this comment

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

Can you add tests to check list inputs to get_files_async too?

@vincbeck
Copy link
Contributor

vincbeck commented Jul 7, 2025

Can you add tests to check list inputs to get_files_async too?

I agree

@jroachgolf84
Copy link
Collaborator Author

I'll add those tests - thanks all!

Copy link
Contributor

@o-nikolas o-nikolas left a comment

Choose a reason for hiding this comment

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

This issue is so bizarre. I'm curious how we went so long without noticing. Thanks for catching it!

+1 to adding tests

@jroachgolf84
Copy link
Collaborator Author

@vincbeck, do you mind merging this?

@eladkal eladkal merged commit 906ce98 into apache:main Jul 8, 2025
75 checks passed
HsiuChuanHsu pushed a commit to HsiuChuanHsu/airflow that referenced this pull request Jul 10, 2025
…dividual chars (apache#52983)

* Handle S3KeySensor in deferrable mode splits key into individual chars

* Adding tests for passing keys as a list
stephen-bracken pushed a commit to stephen-bracken/airflow that referenced this pull request Jul 15, 2025
…dividual chars (apache#52983)

* Handle S3KeySensor in deferrable mode splits key into individual chars

* Adding tests for passing keys as a list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

S3KeySensor in deferrable mode splits key into individual chars

5 participants