test: add source-side integration test for crawl/parse pipeline - #42
Merged
cloudshiftchris merged 1 commit intoMay 12, 2026
Merged
Conversation
Drives a real MavenHttpRepository against a user-supplied source repo and runs crawl, parse, target-diff (against an empty fake target), and per-version asset listing — everything the engine does up to but excluding the upload to the target. Writes a deterministic discovery report to build/reports/maven-sync-it/ and supports snapshot comparison via MAVEN_SYNC_IT_EXPECTED. Skipped by default when the env var is unset. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MavenSyncIntegrationTest— a KotestFunSpecthat points a realMavenHttpRepositoryat a user-supplied source repo and runs everything the engine does (crawl, directory-listing parsing,maven-metadata.xmlparsing, target-diff, per-versionlistArtifactVersionAssets) up to but excluding any upload to the target. The target is faked with an empty in-memory stand-in so every source version appears "missing".MAVEN_SYNC_IT_CONFIG(path to a JSON file using the standardSyncConfigschema, layered overdefaults.jsonvia the same Hoplite pipeline asMavenSyncMain); when unset the test is reported as skipped and./gradlew testdoes no network IO.build/reports/maven-sync-it/discovery-report.json(group:artifact → version → asset filenames), asserts ≥1 artifact / ≥1 version / ≥1 asset per version, and supports regression snapshots viaMAVEN_SYNC_IT_EXPECTED.target.urlis required by the schema but not contacted.Test plan
./gradlew test— passes, integration test reportsSKIPPED.MAVEN_SYNC_IT_CONFIG=<local.json> ./gradlew test --tests '*MavenSyncIntegrationTest*'against a real source repo.MAVEN_SYNC_IT_EXPECTEDpointing at a saved report.🤖 Generated with Claude Code