The GitHub Actions job "CodeQL" on 
grails-core.git/refactor/mongo-package-rename-and-base-spec has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
b5a7aa76256cdf71753b632c8a8666c8e6961f47 / James Fredley 
<[email protected]>
Address Copilot review feedback: use direct domainClasses.addAll

16 mongo specs in this PR called manager.addAllDomainClasses(...), a
helper method that does not exist on 8.0.x. The helper is introduced
by a sibling PR (#15683, the GrailsDataTckManager helper extraction)
that this PR does not depend on.

The setupSpec calls were inherited from the staging branch where both
changes already coexisted. On 8.0.x in isolation, the helper method
is undefined and the specs would throw MissingMethodException at
runtime.

Converting all 16 callers to the existing manager.domainClasses.addAll
pattern so this PR is self-contained against 8.0.x. After both this
PR and #15683 land, the callers can be optionally converted to use
the helper in a follow-up (or naturally via the next merge of 8.0.x
into the staging branch), but that is not a prerequisite for this PR.

Files updated:
- DisjunctionQuerySpec.groovy
- EmbeddedHasManyWithBeforeUpdateSpec.groovy
- EmbeddedWithIdSpecifiedSpec.groovy
- GetAllSpec.groovy
- HintQueryArgumentSpec.groovy
- InListQuerySpec.groovy
- LikeQuerySpec.groovy
- MongoResultsListIndexSpec.groovy
- NegateInListSpec.groovy
- NullifyPropertySpec.groovy
- OneToOneIntegritySpec.groovy
- OrderWithPaginationSpec.groovy
- ReadConcernArgumentSpec.groovy
- ResultsWithGroovyCollectionMethodsSpec.groovy
- SchemalessSpec.groovy
- SessionCachingSpec.groovy

Verified locally with ./gradlew :grails-data-mongodb-core:compileTestGroovy.

Assisted-by: claude-code:claude-4.7-opus

Report URL: https://github.com/apache/grails-core/actions/runs/26550083068

With regards,
GitHub Actions via GitBox

Reply via email to