Skip to content

Conversation

@sunank200
Copy link
Collaborator

Root Cause

The test was using a hardcoded /tmp/fake*.csv path instead of the unique temporary directory (self.tmpdir_posix) provided by pytest's tmp_path fixture. When tests run in parallel with pytest-xdist, multiple test instances could see each other's files in the shared /tmp/ directory, causing race conditions.

Fix

Changed line to use f"{self.tmpdir_posix}/fake*.csv" instead of the hardcoded /tmp/fake*.csv, ensuring each test instance only looks at files in its own isolated temporary directory.

Fixes CI failure: https://github.com/apache/airflow/actions/runs/19626674515


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Nov 24, 2025
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Thought so :)

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Good find.

@potiuk potiuk merged commit a4965b8 into apache:main Nov 24, 2025
85 checks passed
@potiuk potiuk added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Nov 24, 2025
potiuk pushed a commit to potiuk/airflow that referenced this pull request Nov 24, 2025
…systemToGCSOperator (apache#58613)

(cherry picked from commit a4965b8)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
@potiuk
Copy link
Member

potiuk commented Nov 24, 2025

Backport in #58617

potiuk added a commit that referenced this pull request Nov 24, 2025
…systemToGCSOperator (#58613) (#58617)

(cherry picked from commit a4965b8)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
…systemToGCSOperator (#58613) (#58617)

(cherry picked from commit a4965b8)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants