Skip to content

Add structured export/import archive validation - #3587

Merged
Widthdom merged 3 commits into
mainfrom
fix-issue3548-3549-3550
Jun 12, 2026
Merged

Add structured export/import archive validation#3587
Widthdom merged 3 commits into
mainfrom
fix-issue3548-3549-3550

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Added structured JSON errors for cdidx export --json and cdidx import --json, including stable phases and error codes.
  • Extended export manifests with bounded readiness and summary metadata, with import validation for present summary counts and older manifest compatibility coverage.
  • Added cdidx import --dry-run / --check archive validation that skips destination DB replacement and reports validation phases in JSON.

Validation

  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet build CodeIndex.sln -c Debug -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Debug -p:UseSharedCompilation=false --filter "FullyQualifiedName~ExportImportCommandRunnerTests|FullyQualifiedName~ProgramCliTests.ExportArchive_ManifestIncludesReadinessAndSummaryMetadata_Issue3549|FullyQualifiedName~ProgramCliTests.ImportArchive_RejectsManifestFileCountMismatch_Issue3549|FullyQualifiedName~ProgramCliTests.ImportArchive_AcceptsOlderManifestWithoutSummaryMetadata_Issue3549|FullyQualifiedName~ProgramCliTests.ImportArchive_DryRunJsonValidatesWithoutReplacingDestination_Issue3550"
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json

Fixes #3548
Fixes #3549
Fixes #3550

@Widthdom
Widthdom marked this pull request as ready for review June 12, 2026 00:10
@Widthdom
Widthdom merged commit ee2e8d4 into main Jun 12, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3548-3549-3550 branch June 12, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant