Repository navigation
test: stop the analytics tests from silently skipping and remove unused auth hooks - #1932
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
spydon
force-pushed
the
lukasklingsbo/test-hygiene-pyiceberg-incremental
branch
from
November 3, 2026 13:23
998fe8b to
a0cc8f4
Compare
Base automatically changed from
lukasklingsbo/sdk-2666-supabase-py-improve-test-coverage-and-flag-bugs-found
to
main
November 3, 2026 13:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1931. Review only the last two commits; this PR's base is the #1931 branch.
What
Two fixes to how tests run. No library code changes.
storage: the analytics tests could silently skip
tests/_async/test_analytics.pyand its sync copy skipped themselves withpytest.importorskip("pyiceberg").pyicebergwas only in themypydependency group and theicebergextra, not in the defaultdevgroup that pytest runs with. CI ran these tests only becausemake storage.testsruns mypy (with--group mypy) before pytest, which happened to installpyiceberginto the shared environment. Runningmake storage.pyteston its own, or reordering those steps, made both tests skip without anyone noticing.pyiceberg[pyarrow]is added to thetestsgroup, so it's installed with the defaultdevgroup. Theuv.lockchange is 4 lines.importorskipis removed, so a missingpyicebergnow fails loudly instead of skipping. Therequestsimport moves up with the other imports.make storage.build-sync.Verified with
uv sync --frozen --exact --package storage3, which installs only the default groups:pyicebergis present, and the analytics tests run and pass with nothing skipped.auth: unused incremental hooks
src/auth/tests/conftest.pycontained onlypytest_runtest_makereportandpytest_runtest_setuphooks for anincrementalmarker. Once one test in a marked class failed, they turned the rest of the class into expected failures (xfail). No test uses the marker, so the file was dead code. If someone added the marker later, real failures would have been hidden as expected failures, so the file is deleted.All 482 auth tests are still collected, and mypy is clean.
Refs SDK-2666