Skip to content

refactor: remove integration/stress tests and sim_adapter#141

Merged
hlin99 merged 1 commit into
mainfrom
refactor/remove-integration-tests-v2
Apr 6, 2026
Merged

refactor: remove integration/stress tests and sim_adapter#141
hlin99 merged 1 commit into
mainfrom
refactor/remove-integration-tests-v2

Conversation

@hlin99

@hlin99 hlin99 commented Apr 6, 2026

Copy link
Copy Markdown
Member

Tests migrated to xPyD-integration. Remove integration/ + stress/ + sim_adapter.py + conftest + xpyd-sim dep. Fix build job CI.

@hlin99 hlin99 force-pushed the refactor/remove-integration-tests-v2 branch from 6249ed5 to c97b428 Compare April 6, 2026 12:31
Migrated to xPyD-integration repo:
- tests/integration/ (~115 tests)
- tests/stress/ (~10 tests)

Also removed:
- sim_adapter.py (no longer needed)
- tests/conftest.py (only used by integration tests)
- xpyd-sim dev dependency
- Fixed build job CI to run unit tests
@hlin99 hlin99 force-pushed the refactor/remove-integration-tests-v2 branch from c97b428 to 2522c43 Compare April 6, 2026 12:33

@hlin99-Review-Bot hlin99-Review-Bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint CI is failing. tests/unit/test_metrics.py still has import pytest at line 3, but after removing the async integration tests from that file, pytest is no longer used directly — only unittest.TestCase remains. Ruff flags this as F401.

Please remove the unused import pytest from tests/unit/test_metrics.py so lint passes.

Minor note: the build job in ci.yml now installs pytest-asyncio for running unit tests only — if no async tests remain in tests/unit/, that dependency is unnecessary (not blocking, just a cleanup opportunity).

Everything else looks good: integration/stress test removal is clean, xpyd-sim dev dep removed, CI test matrix updated correctly, sim_adapter.py and conftest.py removed. Unit and build CI jobs pass.

@@ -59,33 +59,3 @@ def test_track_request_lifecycle(self):
output = get_metrics().decode()
assert "proxy_active_requests 0.0" in output
assert "proxy_request_duration_seconds" in output

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import pytest is still present on the branch but is now unused (the async tests that needed it were removed below). Ruff catches this as F401, causing lint CI to fail. Please remove this import.

@hlin99-Review-BotX hlin99-Review-BotX left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The unused import pytest in test_metrics.py is fixed, CI is all green. Removal of integration/stress tests, sim_adapter.py, conftest.py, and xpyd-sim dev dep is clean.

Minor nit (non-blocking): .github/workflows/ci.yml is missing a trailing newline on the last line, and the build job still installs pytest-asyncio — if no async tests remain under tests/unit/, that dep is unnecessary.

@hlin99 hlin99 merged commit c83b397 into main Apr 6, 2026
5 checks passed
hlin99 added a commit that referenced this pull request Apr 6, 2026
…141)

Migrated to xPyD-integration repo:
- tests/integration/ (~115 tests)
- tests/stress/ (~10 tests)

Also removed:
- sim_adapter.py (no longer needed)
- tests/conftest.py (only used by integration tests)
- xpyd-sim dev dependency
- Fixed build job CI to run unit tests

Co-authored-by: hlin99 <hlin99@users.noreply.github.com>
hlin99 added a commit that referenced this pull request Apr 6, 2026
…141)

Migrated to xPyD-integration repo:
- tests/integration/ (~115 tests)
- tests/stress/ (~10 tests)

Also removed:
- sim_adapter.py (no longer needed)
- tests/conftest.py (only used by integration tests)
- xpyd-sim dev dependency
- Fixed build job CI to run unit tests

Co-authored-by: hlin99 <hlin99@users.noreply.github.com>
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.

3 participants