Skip to content

test: stop the analytics tests from silently skipping and remove unused auth hooks - #1932

Merged
spydon merged 7 commits into
mainfrom
lukasklingsbo/test-hygiene-pyiceberg-incremental
Nov 3, 2026
Merged

spydon merged 7 commits into
mainfrom
lukasklingsbo/test-hygiene-pyiceberg-incremental

Conversation

@spydon

@spydon spydon commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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.py and its sync copy skipped themselves with pytest.importorskip("pyiceberg"). pyiceberg was only in the mypy dependency group and the iceberg extra, not in the default dev group that pytest runs with. CI ran these tests only because make storage.tests runs mypy (with --group mypy) before pytest, which happened to install pyiceberg into the shared environment. Running make storage.pytest on its own, or reordering those steps, made both tests skip without anyone noticing.

  • pyiceberg[pyarrow] is added to the tests group, so it's installed with the default dev group. The uv.lock change is 4 lines.
  • The importorskip is removed, so a missing pyiceberg now fails loudly instead of skipping. The requests import moves up with the other imports.
  • The sync test is regenerated with make storage.build-sync.

Verified with uv sync --frozen --exact --package storage3, which installs only the default groups: pyiceberg is present, and the analytics tests run and pass with nothing skipped.

auth: unused incremental hooks

src/auth/tests/conftest.py contained only pytest_runtest_makereport and pytest_runtest_setup hooks for an incremental marker. 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

@spydon
spydon requested a review from o-santi as a code owner November 3, 2026 13:21
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1113f40 and b53fbff.

Files ignored due to path filters: 1
  • uv.lock is excluded by !**/*.lock
Files selected for processing: 4
  • src/auth/tests/conftest.py
  • src/storage/pyproject.toml
  • src/storage/tests/_async/test_analytics.py
  • src/storage/tests/_sync/test_analytics.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@spydon
spydon force-pushed the lukasklingsbo/test-hygiene-pyiceberg-incremental branch from 998fe8b to a0cc8f4 Compare November 3, 2026 13:23
Base automatically changed from lukasklingsbo/sdk-2666-supabase-py-improve-test-coverage-and-flag-bugs-found to main November 3, 2026 13:30
@spydon
spydon merged commit aaa10c7 into main Nov 3, 2026
41 checks passed
@spydon
spydon deleted the lukasklingsbo/test-hygiene-pyiceberg-incremental branch November 3, 2026 13:35
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