Skip to content

test: aggressive second-pass volume reduction (backend + frontend)#16

Merged
DONGRYEOLLEE1 merged 2 commits into
mainfrom
test/aggressive-second-pass-reduction
May 22, 2026
Merged

test: aggressive second-pass volume reduction (backend + frontend)#16
DONGRYEOLLEE1 merged 2 commits into
mainfrom
test/aggressive-second-pass-reduction

Conversation

@DONGRYEOLLEE1
Copy link
Copy Markdown
Owner

Summary

backend pytest: 224 → 184 (-40, -17.9%) / 54 → 47 files
frontend vitest: 88 → 54 (PASS, 51 vitest + 3 node-test) / LOC 5,046 → 3,115 (-38%)

이전 PR #15(1차 축소)에 이어 사용자의 추가 축소 요청에 응답한 2차. 회귀 차단 핵심은 모두 보존하고, 단일 case 파일·중복 variant·trivial helper sanity만 정리.

Backend 변경 (79404d1)

8 파일 삭제 — 회귀 보호 가치 없음 (다른 파일이 cover):

  • test_dynamic_tools / test_memory_service / test_rope_validation(293 LOC, 1 case) / test_thread_profile_service / test_thread_suggested_query_service / test_thread_title_service / test_user_profile_service

케이스 통합 (parametrize 또는 sibling merge):

  • test_event_processor 15→9 / test_llm_router 12→9 / test_supervisor 8→6 / test_team_subgraphs 10→6 / test_thread_service 7→3 / test_memory_api 5→2

Frontend 변경 (140866a)

중복 variant 통합:

  • page.test.tsx 23→13 / sse-reducer 17→11 / dashboard 4→2 / workspace-state 5→3 / hooks 8→4 / components 11→8
  • helper(summary, authMePayload, stubCsrfCookie) 추출로 fetchMock 보일러플레이트 축소

절대 보존 확인

Verification

  • pytest 184/184 PASS, vitest 54/54 PASS, node --test 3/3 PASS, 회귀 0
  • CLAUDE.md §"🧪 테스트 코드 추가 정책" 부합 — Core 5 카테고리 외 케이스 적극 정리

🤖 Generated with Claude Code

DONGRYEOLLEE1 and others added 2 commits May 22, 2026 14:46
…itle/pin/reasoning variants

vitest 88 cases (5046 LOC) → 51 cases (3078 LOC), node --test 3/3 PASS.

- page.test.tsx (23→13): merge thread hydration variants, collapse 4 ai-title
  cases into success/failure pair, single pin/unpin reorder case, split
  reasoning vs tool_start fallback into 2 focused cases, fold send/resume
  failure into one error-pathway case
- sse-reducer.test.ts (17→11): collapse status/route/tool/purity variants
  into single sequential transitions; FINAL_RESPONSE_STREAM_OWNERSHIP 3
  cases preserved verbatim
- hooks/*.test.ts: 8 cases (4 files × 2) → 4 (1 per hook), consolidated into
  lifecycle walks
- workspace-state.test.ts (5→3), markdown.test.ts (5→1), dashboard (4→2),
  auth-flow (9→8 — fold admin-hidden into profile-saves), components
  (10→7)

Preserved regressions: V-001 HITLPanel interrupt banner, trend.png
attachment timing (PR #8/#15), FINAL_RESPONSE_STREAM_OWNERSHIP contract,
auth+chat smoke, 401 redirect pathways, supported-file upload smoke,
historical-view tool overlay suppression.

lint clean, build PASS, vitest 54 passed (51 + 3 mjs node --test).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…licate consolidation

Cut 224 → 184 cases (-40), 54 → 47 files (-7) by removing tests that
violate the CLAUDE.md Core-only policy:

Files removed (8 single-case files with redundant coverage):
- test_dynamic_tools.py (duplicated by test_team_subgraphs)
- test_memory_service.py (projection edge case, not a regression fix)
- test_rope_validation.py (293 LOC end-to-end already covered by
  test_response_collector + test_chat_turn_lifecycle)
- test_thread_profile_service.py (covered by test_thread_api)
- test_thread_suggested_query_service.py (covered by test_thread_api)
- test_thread_title_service.py (covered by test_thread_api)
- test_user_profile_service.py (covered by test_patch_api)

Per-file consolidations (parametrize + bundle):
- test_api.py: dropped resume duplicate of supervisor-text dropping; removed
  trivial _serialize_value helper test
- test_event_processor.py: bundled status/route/text/reasoning/tool builders;
  dropped trivial display_name + utc_timestamp + constant-range tests
- test_llm_router.py: parametrized parse_failed + layer_limit pairs;
  merged strip-content into invalid-goto case
- test_state_schema.py: removed trivial append_route_history concat test
- test_supervisor.py: dropped dispatch_limit (covered by llm_router) and
  invalid_cross_graph_route (covered by router_safeguards)
- test_team_subgraphs.py: bundled per-team source-grep + prompt-kit loops
- test_thread_api.py: dropped 404 path (other endpoints cover)
- test_thread_service.py: removed CRUD wrappers + trivial _derive_status
- test_trace_service.py: removed trivial get_thread_traces wrapper
- test_event_processor.py: bundled tool start/end/error and text+reasoning
- test_chat_analytics_service.py: removed mark_first_token (latency already
  covered by finalize_turn test)
- test_security_service.py: removed trivial header-extraction helper
- test_memory_api.py: removed 404 paths + plain CRUD smoke for settings
- test_personalization_instruction_service.py: removed update-returns-None
  CRUD wrapper

Absolute preserves untouched:
- test_router_safeguards.py (11) — plan §4.0 P3
- test_response_collector.py (10) — FINAL_RESPONSE_STREAM_OWNERSHIP
- routing_eval/ — golden dataset
- test_chat_turn_lifecycle.py — 4 turn-kind lifecycle cases
- test_workflow_graph.py, test_admin_user_service.py,
  test_chat_api_coding_flow.py, test_workspace_manager.py,
  test_error_handling.py — kept per task instruction

184 pytest cases, 0 failures, 0 skips.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
orchagent Ready Ready Preview, Comment May 22, 2026 6:07am
project-vdajw Ready Ready Preview, Comment May 22, 2026 6:07am

@DONGRYEOLLEE1 DONGRYEOLLEE1 merged commit e16ca3b into main May 22, 2026
5 checks passed
@DONGRYEOLLEE1 DONGRYEOLLEE1 deleted the test/aggressive-second-pass-reduction branch May 22, 2026 06:08
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.

1 participant