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

Update pre-commit hooks, change lockfile to use uv pip compile #278

Merged
merged 7 commits into from
May 7, 2024

Conversation

nicholasjng
Copy link
Collaborator

uv is much faster and thus more appropriate for a mandatory commit hook.

NB: setuptools is now in the lockfile, because uv does not have a "unsafe package exclusion" facility.

@AdrianoKF
Copy link
Contributor

Can you also update hack/lock-deps.sh, please, @nicholasjng?

nicholasjng and others added 4 commits May 6, 2024 09:28
uv is much faster and thus more appropriate for a mandatory commit hook.

NB: setuptools is now in the lockfile, because uv does not have a
"unsafe package exclusion" facility.

duckdb was downgraded to v0.10.0, which is the last version without
segfaults on cleanup with registered file systems.
We were getting some bad accesses (key errors) on empty-body API responses
from the lakeFS server, causing a crash in the error handling.
This solution lets us upgrade the mkdocs tech stack, while not abandoning
strict mode just for the git-revision plugin.

The root cause for the previous failures is not yet determined, but has
something to do with recent mkdocs/mkdocs-material updates.
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.02%. Comparing base (b5a1f85) to head (0f7b811).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #278      +/-   ##
==========================================
- Coverage   94.54%   94.02%   -0.52%     
==========================================
  Files           5        5              
  Lines         385      385              
  Branches       72       72              
==========================================
- Hits          364      362       -2     
- Misses         13       14       +1     
- Partials        8        9       +1     

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

@nicholasjng
Copy link
Collaborator Author

So codecov fails the pipeline every time code is deleted from the repo because of the percentage changes? ¯\_(ツ)_/¯

@AdrianoKF
Copy link
Contributor

So codecov fails the pipeline every time code is deleted from the repo because of the percentage changes? ¯_(ツ)_/¯

It's set up to prevent PRs with decreasing coverage atm. It seems that coverage actually went down in errors.py: https://app.codecov.io/gh/aai-institute/lakefs-spec/pull/278/blob/src/lakefs_spec/errors.py

image

It seems that one of the dependency updates might have made that else branch obsolete.

@AdrianoKF
Copy link
Contributor

I've configured Codecov to allow PRs that decrease coverage by 1% at most in 0f7b811.

As discussed on Slack, the check in errors.py is still valid for older versions of the lakeFS SDK that don't include the fix in treeverse/lakeFS#7697.

@nicholasjng nicholasjng merged commit 6bd0070 into main May 7, 2024
7 checks passed
@nicholasjng nicholasjng deleted the dev-updates branch May 7, 2024 06:45
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