Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: path.rglob("…") does not need "**" #33669

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

eumiro
Copy link
Contributor

@eumiro eumiro commented Aug 23, 2023

Replace path.glob("**/…") with path.rglob("…"). If the ** placeholder is deeper, then extend path.

lines = [line.upper() for line in src.readlines()]
print(lines)
dest.writelines(lines)
with f.open() as src:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this block should be indented, so it happens for every f and not only for the last one. Please review.

Copy link
Member

Choose a reason for hiding this comment

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

Yes. Google System tests are not yet run regularly. Google team works on automatically running them and providing a dashboard so they would get to this one too.. but we can correct it now.

@potiuk
Copy link
Member

potiuk commented Aug 24, 2023

conflicts/tests/ to solve

@eumiro eumiro force-pushed the rglob branch 5 times, most recently from 568713e to b69f7e7 Compare August 24, 2023 20:48
@potiuk
Copy link
Member

potiuk commented Aug 24, 2023

Conflicts now :(

@potiuk potiuk merged commit 8aa2229 into apache:main Aug 25, 2023
63 of 64 checks passed
@eumiro eumiro deleted the rglob branch August 25, 2023 17:36
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.2 milestone Oct 3, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Oct 3, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools area:providers area:system-tests kind:documentation provider:google Google (including GCP) related issues type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants