Repository navigation
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilitygood first issueSmall, clear, safe task for new contributorshelp wantedMaintainers welcome external contributionintegration: dcodeLangChain Deep Code integration behavior
Description
Objective
Use one Deep Agents Code rebuild helper and one DCode probe fixture.
Evidence
test/helpers/rebuild-dcode-flow-helpers.tsandtest/helpers/rebuild-dcode-flow-support.tsduplicatemakeDcodeSandboxEntry,configureDcodeSession, andexpectNoDcodeMutation. The first module also ownssetGatewayProviderMetadata.src/lib/actions/sandbox/snapshot-restore-test-fixture.tsduplicatesDcodeProbeStateanddcodeProbeOutputfromsrc/lib/actions/sandbox/dcode-probe-test-fixture.ts.
Scope
- Keep
test/helpers/rebuild-dcode-flow-helpers.tsas the rebuild-helper owner. - Move consumers and delete
test/helpers/rebuild-dcode-flow-support.ts. - Import and re-export the dedicated DCode probe type and function from
snapshot-restore-test-fixture.ts. - Do not change production behavior, fixture values, test titles, or assertions.
Expected net reduction: at least 49 LOC.
Relationships
- Parent Epic: Consolidate test support and enforce test-suite boundaries #8345
- Parent hierarchy: Consolidate test support and enforce test-suite boundaries #8345 is a child of Reduce code and converge architecture by retiring inert surfaces and consolidating repeated mechanics #8281.
- Blocked by: None. Work can start independently.
- Blocks: Refactor rebuild test harnesses into a shared core with generic and Deep Agents Code profiles #8359 — it consumes the canonical DCode helper and probe-fixture ownership established here.
Why this is a good first issue
This is a test-only consolidation with named duplicate definitions, an existing canonical owner, and no production behavior change.
Acceptance criteria
- Each duplicated DCode rebuild helper has one definition.
dcodeProbeOutputandDcodeProbeStatehave one implementation.- Existing consumers compile without compatibility wrappers.
- Targeted suites preserve their current titles and behavior.
- The change has a negative net LOC delta.
Validation
npx vitest run --project cli src/lib/actions/sandbox/rebuild-dcode-*.test.ts src/lib/actions/sandbox/snapshot*.test.ts
npm run test:projects:checkMetadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilitygood first issueSmall, clear, safe task for new contributorshelp wantedMaintainers welcome external contributionintegration: dcodeLangChain Deep Code integration behavior
Activity
test(sandbox): consolidate the duplicate DCode test helper (#8430)