Skip to content

Conversation

nicholasjng
Copy link
Collaborator

Unlike fsspec's base class, which infers the value of autocommit from the kwargs and, if necessary, from the current transaction state, we keep autocommit as an explicit named keyword argument in our signature of LakeFSFileSystem.open().

Previously, this value was unused, and the keyword arguments would never contain autocommit due to name collision, so we implicitly autocommitted files if and only if we were not in a transaction. This change makes the file committing strategy configurable, and defaults to True.


Please review. In its current state, it is probably wrong, since this means we would also autocommit files in a transaction if the autocommit keyword is not explicitly set to False.

The opposite choice, which is to remove autocommit from the named keyword arguments and keeping the value computation, is probably better for our transaction logic, but would make the autocommit config option more opaque.

@nicholasjng nicholasjng self-assigned this Sep 30, 2025
@nicholasjng
Copy link
Collaborator Author

yup, this breaks our transaction expectations. I guess the play is to remove autocommit from the named keyword arguments in the open() signature.

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.21%. Comparing base (1019fae) to head (15e3b4d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
- Coverage   95.22%   95.21%   -0.02%     
==========================================
  Files           6        6              
  Lines         440      439       -1     
  Branches       64       64              
==========================================
- Hits          419      418       -1     
  Misses         15       15              
  Partials        6        6              
Flag Coverage Δ
3.10 94.76% <100.00%> (-0.02%) ⬇️
3.11 94.76% <100.00%> (-0.02%) ⬇️
3.12 94.76% <100.00%> (-0.02%) ⬇️
3.13 94.76% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Unlike fsspec's base class, which infers the value of `autocommit` from the kwargs
and, if necessary, from the current transaction state, we keep `autocommit` as an
explicit named keyword argument in our signature of `LakeFSFileSystem.open()`.

Previously, this value was unused, and the keyword arguments would never
contain autocommit due to name collision, so we implicitly autocommitted files if and
only if we were not in a transaction. This change makes the file committing strategy
configurable, and defaults to `False`.
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.

1 participant