Skip to content

test: drop duplicate top-level test files#151

Merged
pratyush618 merged 1 commit into
masterfrom
chore/remove-duplicate-test-files
May 8, 2026
Merged

test: drop duplicate top-level test files#151
pratyush618 merged 1 commit into
masterfrom
chore/remove-duplicate-test-files

Conversation

@pratyush618
Copy link
Copy Markdown
Collaborator

Summary

Cleanup of an artifact from how #150 was merged. The squash-merge of #150 (group tests into subdirs) recorded only the subdir additions, not the top-level deletions, so every test file ended up in two places at once: tests/test_X.py AND tests/<subdir>/test_X.py.

Removes the 50 stale top-level test_*.py files plus the duplicate tests/prefork_apps/ directory. Verified all 50 pairs were byte-identical before deletion.

Pure deletion — 53 files / -9195 lines, no other changes.

Why this happened

#150 was stacked on #149's branch. When #150 was squash-merged, GitHub computed the squashed diff against the branch's pre-rename state rather than against post-#149 master, so the rename pairs collapsed to "add new path, leave old in place." The top-level files matched the merged tree on disk, so git status showed clean — only ls revealed the duplication.

Test plan

  • Verified all 50 tests/test_X.pytests/<subdir>/test_X.py pairs are byte-identical.
  • uv run python -m pytest tests/ --collect-only — 514 tests (unchanged).
  • uv run python -m pytest tests/core/test_basic.py tests/worker/test_prefork.py tests/workflows/test_workflows_linear.py — 32 passed, 1 skipped (covers the prefork_apps import path under the new layout).
  • CI runs the full suite.

Squash-merge of #150 added the subdir copies without removing the top-level originals, leaving every test file present in two places. Removes the 50 stale top-level files and the duplicate prefork_apps/ directory.
@github-actions github-actions Bot added the tests label May 8, 2026
@pratyush618 pratyush618 merged commit 9fec398 into master May 8, 2026
19 checks passed
@pratyush618 pratyush618 deleted the chore/remove-duplicate-test-files branch May 8, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant