test: consolidate remote-runtime tests under tests/remote/ (#872)#1215
Conversation
…oud#872) Move the seven test modules under tests/app/remote/ into the canonical tests/remote/ home and drop the now-empty tests/app/remote/ package, so remote-runtime coverage lives in one obvious place. No naming collisions, no cross-test imports, and no duplicate coverage; pytest collects 247 tests in tests/remote/ and the full suite collects 4582 tests cleanly.
Greptile SummaryThis PR consolidates 7 test modules for Confidence Score: 5/5Safe to merge — pure file renames with no content changes and no risk of broken collection. All 7 files are 100%-identical renames; no logic, imports, or config was modified. tests/remote/init.py already existed pre-PR, so pytest package discovery is unaffected. The now-empty tests/app/remote/ directory is cleanly removed. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[tests/app/remote/] -->|renamed 7 modules| B[tests/remote/]
A -->|deleted| C[__init__.py ❌]
B --> D[test_client.py]
B --> E[test_reasoning.py]
B --> F[test_renderer.py]
B --> G[test_server.py]
B --> H[test_stream.py]
B --> I[test_system_metrics.py]
B --> J[test_vercel_poller.py]
B --> K[__init__.py ✅ pre-existing]
Reviews (1): Last reviewed commit: "test: consolidate remote-runtime tests u..." | Re-trigger Greptile |
|
@rrajan94 @davincios @muddlebee @VaibhavUpreti kindly review |
|
LGTM. I will wait for additional ci checks, just enabled for windows |
|
@Davidson3556 windows CI is failing pls check |
|
Thanks , I checked, the failures are in tests/cli/interactive_shell/test_loop.py (added in #1167), not in any file this PR touches. They're caused by prompt_toolkit requiring a real Windows console buffer, which GitHub's windows-latest runner doesn't provide; the Ubuntu test job passes. The Windows jobs are also marked continue-on-error: true. Happy to open a separate PR to skip those tests on Windows if helpful. |
|
Sure @Davidson3556 let's fix the CI. Meanwhile I will merge this |
|
🐸 Rebase? Handled. Conflicts? Squashed. CI? Vibing. @Davidson3556 touched the untouchable and lived. 🫡 👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome. |
|
sure I will do that now. thank you |


Fixes #872
Describe the changes you have made in this PR -
Consolidates the remote-runtime tests into a single canonical home. Before this change, tests for
app/remote/*were split betweentests/remote/andtests/app/remote/, which made the coverage map confusing.What this PR does:
tests/app/remote/intotests/remote/(100% identical renames, no content changes)tests/app/remote/__init__.pyso the duplicate package is goneFiles moved:
Demo/Screenshot for feature changes and bug fixes -
No naming collisions, no duplicate test modules, no stale imports referencing the old path.
Code Understanding and AI Usage
Did you use AI assistance (ChatGPT, Claude, Copilot, etc.) to write any part of this code?
If you used AI assistance:
Explain your implementation approach:
The problem: the repo had two parallel homes for remote-runtime tests —
tests/remote/andtests/app/remote/. This made it unclear where new tests forapp/remote/*should live and made the coverage map harder to read.I considered two approaches:
tests/app/remote/as the canonical home (mirrors theapp/remote/source layout)tests/remote/as the canonical home (matches the existing convention used by other folders liketests/services/,tests/nodes/,tests/integrations/, etc., which are flat undertests/)I chose option 2 because every other capability boundary in
tests/is flat, not mirrored —tests/services/(nottests/app/services/),tests/nodes/(nottests/app/nodes/), and so on. Keeping remote tests flat undertests/remote/matches the existing convention documented in AGENTS.md, andtests/remote/already had more files thantests/app/remote/, so moving the smaller set was less churn.There were no functions or classes added — this is a pure file-move refactor. Before moving, I checked that none of the 7 filenames being moved already existed in
tests/remote/(no collisions) and that no code referenced the oldtests/app/remote/path. After moving, I confirmed thattests/remote/still collects 247 tests and the full suite still collects 4582 tests cleanly.Checklist before requesting a review
Terminal output proving collection still works after the move: