chore: remove dead test artifacts#1229
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Mock-LLM E2E Tests42/42 passed Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
📸 Snapshot Test Report✅ All snapshots match the main branch baselines.
✅ Unchanged snapshots (73)
Generated by the Snapshot Tests workflow. This comment was created by an AI agent (OpenHands) on behalf of the repo maintainers. |
🔶 Mock-LLM Docker E2E Test Results37/42 passed · 5 skipped Commit:
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Why
Description:
Two test artifacts provide zero coverage and only cost maintenance:
__tests__/components/terminal/terminal.test.tsx— the entire suite isdescribe.skip'd with the in-file comment "Terminal is now read-only - no user input functionality". All 7 tests exercise terminal input behavior that was removed from the product; the suite has never run since. It also emits a vitest "non-top-levelvi.mock" deprecation warning on every test run.__tests__/fixtures/library-consumer-smoke.tsx— added alongside the library build mode (PR [Phase 2] Create library build mode + barrel exports for component packages #54) but never imported by any test, script, or CI step, and explicitly excluded from typechecking since the day it was created (tsconfig.jsonexclude: ["__tests__/fixtures/**/*"]). It is never compiled, never executed, never referenced.With the fixture gone, the
__tests__/fixtures/directory is empty, so thetsconfig.jsonexclude entry becomes pointless and is removed too.Scope (~152 LOC):
__tests__/components/terminal/terminal.test.tsx__tests__/fixtures/library-consumer-smoke.tsx"exclude": ["__tests__/fixtures/**/*"]fromtsconfig.jsonAcceptance Criteria:
npm run lintpasses (tsc validates the exclude removal — wildcard includes still never traversenode_modules, which is implicitly excluded by TypeScript).npm testpasses with no new tests written.use-websockettests (deliberately kept).Out of scope / Notes:
it.skiptests in__tests__/hooks/use-websocket.test.ts(documented flaky-test TODO awaiting a fix, not dead) and theit.todoplaceholders indropdown.test.tsx/chat-interface.test.tsx(intentional markers for future work).Summary
Removes two dead test artifacts (~152 LOC): a Terminal suite that is entirely
describe.skip'd because it tests removed functionality, and a library-consumer smoke fixture that was never wired into any test, CI step, or typecheck since its creation. The now-pointlesstsconfig.jsonfixtures exclude goes with them.Changes
__tests__/components/terminal/terminal.test.tsx(128 LOC, 7 always-skipped tests)__tests__/fixtures/library-consumer-smoke.tsx(23 LOC, zero references)tsconfig.json— drop the"exclude": ["__tests__/fixtures/**/*"]entry (directory is now empty;node_modulesremains implicitly excluded from wildcard includes by TypeScript itself)Verification
npm run lint✅ (typegen + tsc + eslint + prettier — tsc green confirms the exclude removal is safe)npm test✅ — 403 test files passed | 1 skipped, 3016 tests passed | 5 skipped | 9 todo, 0 failuresuse-websockettests; the 9 todos are untouched placeholders.Risk
None identified. Test-only deletions cannot affect runtime or the published library. The tsconfig change is proven inert by the green typecheck.
Rollback
Revert this single commit; independent of all other units.
Issue Number
Resolves #1228
Type
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.26.0-pythonopenhands-automation==1.0.0a66524143bf2863f55da308d69bebea3188a796dc9Pull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-6524143Run
All tags pushed for this build
About Multi-Architecture Support
sha-6524143) is a multi-arch manifest supporting both amd64 and arm64sha-6524143-amd64) are also available if needed