Skip to content

Remove stale test-tree duplicates of DbtTest and IDbtTest#2416

Merged
cmgrote merged 2 commits intomainfrom
models
Apr 16, 2026
Merged

Remove stale test-tree duplicates of DbtTest and IDbtTest#2416
cmgrote merged 2 commits intomainfrom
models

Conversation

@cmgrote
Copy link
Copy Markdown
Collaborator

@cmgrote cmgrote commented Apr 16, 2026

Summary

  • Removes stale duplicates of DbtTest.java and IDbtTest.java from src/test/java — the old ModelGeneratorV2 accidentally placed copies of both in the test source tree alongside the authoritative versions in src/main/java

Why this breaks

DbtTest is a real leaf asset type. The Pkl sync (PR #2415) correctly updates src/main/java/com/atlan/model/assets/DbtTest.java with the new catalogDatasetGuid field. But the stale src/test/java copy (without the field) is also compiled by compileTestJava, shadowing the updated version and producing:

DbtTest.java:42: error: DbtTest is not abstract and does not
override abstract method getCatalogDatasetGuid() in IDbt

Relationship to prior cleanup

Follows PR #2414 which removed 9 stale concrete classes/interfaces for interfaceOnlyTypes. This is a different flavour: DbtTest is not an interfaceOnlyType — it's a genuine leaf type whose concrete class just happened to be duplicated into the test tree by the old generator.

Test plan

  • ./gradlew assemble shadowJar passes
  • ./gradlew test passes

The old ModelGeneratorV2 accidentally placed copies of the DbtTest
concrete class and IDbtTest interface into src/test/java alongside
the authoritative versions in src/main/java. Because the test
compilation source set includes both trees, the stale test-tree
copies shadow the correctly-maintained main-tree versions.

When the Pkl sync (PR #2415) added catalogDatasetGuid to DbtTest.java
in src/main/java, the stale src/test/java/DbtTest.java (without the
field) continued to be compiled by compileTestJava, producing:

  DbtTest.java:42: error: DbtTest is not abstract and does not
  override abstract method getCatalogDatasetGuid() in IDbt

The canonical files in src/main/java are generated and maintained by
the Pkl renderer; the test-tree copies serve no purpose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
@cmgrote cmgrote enabled auto-merge April 16, 2026 11:44
@cmgrote cmgrote merged commit 412f927 into main Apr 16, 2026
7 checks passed
@cmgrote cmgrote added the bug Something isn't working label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant