Skip to content

fix: preserve Maven module resource and dependency impact - #33

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/maven-module-safety
Oct 22, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/maven-module-safety

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Summary

Close several reproduced Maven test-selection false negatives while keeping unsupported effective-model behavior conservative.

  • Discover default Surefire Test*.java/Kotlin-prefix test names alongside the existing suffix conventions.
  • Connect conventional main/test resources to their owning module, including resource-only dependency modules.
  • Require full validation for custom source/test roots, unresolved dependency-coordinate properties, and unmodeled local-parent dependency inheritance.
  • Avoid taking nested dependency/plugin coordinates as the POM's own identity.
  • Bump the Maven adapter version and invalidate schema-2 persisted dependency graphs.

Reproduction and tests

Eight synthetic regressions failed before the fix. They cover prefix tests, main/test resources, resource-only JAR dependencies, custom source/test roots, interpolated reactor dependencies, and inherited parent dependencies. Each includes relevant module/test evidence and an unrelated test/module. The previous results were COMPLETE, SELECTIVE and command synthesis OK while affected tests were omitted.

Validated on Node v24.19.0, Linux, from baseline 9d575cef7b1dd118300cd6298c9f85a8c1a44ad8:

  • npm run typecheck
  • npm run build
  • npm run audit:boundary
  • node --import tsx --test --test-concurrency=1 $(find tests -name '*.test.ts' | sort) — 342/342 passed
  • git diff --check

The targeted adapter suite passes 18/18. The warm-schema-2 cache regression fails before invalidation and passes afterward. The unmodified baseline passes 333/333 tests serially; its default parallel run lost suite processes in this environment. Native Maven execution, Windows and Node 22 were not run locally.

Scope and references

This remains a static POM approximation, not a complete Maven effective-model implementation. Custom resources, arbitrary plugins/test includes, external-parent effective models and managed-dependency inheritance are not fully resolved. The inheritance blocker may conservatively include dependency-management/plugin dependency tags.

Other independent safety PRs from this review also bump cache schema 2 to 3. If merged/released separately, advance the schema again (or otherwise invalidate intermediate-version graphs) for subsequent analysis changes. Do not reuse warmed graphs from an earlier subset of the fixes.

@adityankale190895

Copy link
Copy Markdown
Member

Hi @FredApps, we're relicensing DiffCI Core from AGPL-3.0-only to MIT and need your consent for this contribution. Details and the one-line consent reply are in #43. Thank you!

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.

2 participants