The GitHub Actions job "Coverage" on grails-core.git/feat/gorm-registry-core 
has failed.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
b79e64500ffe0d0fbf01e38f2c0ea3acaad1f45e / Walter Duque de Estrada 
<[email protected]>
fix: register HibernateGormApiFactory in registerConstraints; update affected 
tests

HibernateGormEnhancer.registerConstraints() was a no-op in both H5 and H7.
This caused GormRegistry to use the default GormApiFactory instead of the
Hibernate-specific one, so APIs created via createStaticApi/createInstanceApi
did not produce HibernateGormStaticApi / HibernateGormInstanceApi instances.
registerConstraints() now registers HibernateGormApiFactory for 
HibernateDatastore.

Introduce HibernateGormApiFactory (H5 + H7) — factory that creates the correct
Hibernate-typed API objects (HibernateGormStaticApi, HibernateGormInstanceApi,
HibernateGormValidationApi) — replacing the previous ad-hoc construction paths.

GrailsDataHibernate5TckManager: extract grailsConfig and isTransactional as
instance fields so subclasses (e.g. multi-tenant multi-datasource manager) can
pre-populate them before createSession() runs.  Fix domainClasses cast to 
Class[]
to avoid Groovy collection coercion issues.

Test updates:
- GormEnhancerCleanupSpec (H5 + H7): replace reflective DATASTORES/STATIC_APIS
  field access with public GormRegistry API now that the registry is the source
  of truth; verify removeDatastore() clears entity and API registrations.
- HibernateGormInstanceApiSpec / StaticApiSpec / ValidationApiSpec: obtain APIs
  via GormRegistry instead of GormEnhancer internals.
- SchemaTenantGormEnhancerSpec: remove assertion that no longer holds after
  the ApiFactory wiring change.
- GrailsIdentityGeneratorSpec: add missing domain-class setup.
- GraphQLDataFetcherManagerSpec, DomainEventsSpec, FirstAndLastMethodSpec:
  minor import and assertion cleanup.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to