Skip to content

Conversation

@wild-endeavor
Copy link
Contributor

@wild-endeavor wild-endeavor commented Dec 12, 2024

Why are the changes needed?

Syntax was always wrong. This is not how open_async is used.

See fsspec/s3fs#871, which may be resolved here.

Polars

This also affected polars. In testing, noticed part of the logic was incorrect - updated and added a test to exercise.

What changes were proposed in this pull request?

Replace with a normal call - this means that writes for bytes and bytes-like objects will be blocking. Given this seems to be fundamentally missing from fsspec at this time I think it's okay.

How was this patch tested?

Unit tested and local sandbox.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Yee Hing Tong <[email protected]>
git push

Signed-off-by: Yee Hing Tong <[email protected]>
Copy link
Collaborator

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

This looks reasonable.

I don't understand the integration test failures. This change shouldn't have any impact in the minio credentials. Any idea what's going on there?

@wild-endeavor
Copy link
Contributor Author

nope... botocore.exceptions.NoCredentialsError: Unable to locate credentials i don't see how that's related to anything at all.

Signed-off-by: Yee Hing Tong <[email protected]>
@codecov
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 76.86%. Comparing base (f99d50e) to head (935b831).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
flytekit/core/data_persistence.py 72.72% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2998       +/-   ##
===========================================
+ Coverage   51.08%   76.86%   +25.78%     
===========================================
  Files         201      204        +3     
  Lines       21231    21406      +175     
  Branches     2731     2726        -5     
===========================================
+ Hits        10846    16454     +5608     
+ Misses       9787     4201     -5586     
- Partials      598      751      +153     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yee Hing Tong <[email protected]>
eapolinario
eapolinario previously approved these changes Dec 13, 2024
Signed-off-by: Yee Hing Tong <[email protected]>
@wild-endeavor wild-endeavor merged commit e08792a into master Dec 13, 2024
102 of 104 checks passed
wild-endeavor added a commit that referenced this pull request Dec 16, 2024
Atharva1723 pushed a commit to Atharva1723/flytekit that referenced this pull request Oct 5, 2025
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