Skip to content

chore(tests): restrict default pytest run to checkin tests; mark full suite invalid#37

Merged
FileSystemGuy merged 1 commit into
mainfrom
chore/mark-full-suite-invalid
Jun 26, 2026
Merged

chore(tests): restrict default pytest run to checkin tests; mark full suite invalid#37
FileSystemGuy merged 1 commit into
mainfrom
chore/mark-full-suite-invalid

Conversation

@russfellows

Copy link
Copy Markdown

Summary

The full test suite (dlio_dataset_dimension_test.py, test_data_generator_improvements.py) tests aspirational/incorrect behaviour and is expected to fail. Running pytest tests/ produces misleading failure reports and takes hours.

Two-pronged fix so this can never happen accidentally again:

Option 1 — pytest.ini default path:

  • testpaths = tests/test_fast_ci.py — bare pytest only collects the ~85 fast checkin tests
  • addopts = -m "not full_suite" — even if someone runs pytest tests/, full-suite files are excluded

Option 2 — explicit marker in the files:

  • Both invalid test files get pytestmark = pytest.mark.full_suite at module level, making the intent visible to anyone reading them

To run full suite explicitly (not recommended):

pytest tests/ -m full_suite

Test plan

  • pytest --collect-only -q collects exactly 85 tests, all from test_fast_ci.py
  • pytest -v (checkin suite) passes

🤖 Generated with Claude Code

… suite invalid

The full test suite (dlio_dataset_dimension_test.py,
test_data_generator_improvements.py) tests aspirational/incorrect behaviour
and is expected to fail. Running it produces misleading failure reports and
takes hours.

Two-pronged fix:

1. pytest.ini: set testpaths = tests/test_fast_ci.py and
   addopts = -m "not full_suite" so bare `pytest` only runs the ~85
   fast checkin tests (< 10 min). Full suite must be invoked explicitly:
     pytest tests/ -m full_suite

2. Mark both full-suite files with pytestmark = pytest.mark.full_suite
   so the intent is visible in the files themselves and any pytest
   invocation that does collect them skips them by default.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@russfellows russfellows requested a review from a team June 26, 2026 02:16
@russfellows russfellows added the enhancement New feature or request label Jun 26, 2026
@FileSystemGuy FileSystemGuy merged commit 373d275 into main Jun 26, 2026
7 checks passed
@FileSystemGuy FileSystemGuy deleted the chore/mark-full-suite-invalid branch June 26, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants