revision=a24ece9cf797f7ea647e33bf846b115208ed1ba5
executedAt=2026-08-29T14:58:08+00:00
cwd=/shared/codebase/clean-architecture-backend-template/src
command=./gradlew :adapter:outbound:persistence-jpa:postgresqlMigrationIntegrationTest --rerun-tasks --console=plain
gitStatusBefore=0
note: original unmodified source; this task is the readiness-task producer of the selected card jpa-flyway-migration

> Task :build-logic:extractPluginRequests
> Task :build-logic:generatePluginAdapters
> Task :build-logic:compileJava
> Task :build-logic:compileGroovy
> Task :build-logic:compileGroovyPlugins
> Task :build-logic:pluginDescriptors
> Task :build-logic:processResources
> Task :build-logic:classes
> Task :build-logic:jar
> Task :shared-contract:compileJava
> Task :shared-contract:processResources
> Task :shared-contract:classes
> Task :shared-contract:jar
> Task :application-core:compileJava
> Task :application-core:processResources NO-SOURCE
> Task :application-core:classes
> Task :application-core:jar
> Task :adapter:outbound:persistence-jpa:compileJava
> Task :adapter:outbound:persistence-jpa:processResources
> Task :adapter:outbound:persistence-jpa:classes
> Task :adapter:outbound:persistence-jpa:compileTestkitJava
> Task :adapter:outbound:persistence-jpa:processTestkitResources NO-SOURCE
> Task :adapter:outbound:persistence-jpa:testkitClasses
> Task :adapter:outbound:persistence-jpa:compilePostgresqlIntegrationTestJava
> Task :adapter:outbound:persistence-jpa:processPostgresqlIntegrationTestResources
> Task :adapter:outbound:persistence-jpa:postgresqlIntegrationTestClasses

> Task :adapter:outbound:persistence-jpa:postgresqlMigrationIntegrationTest

PostgreSqlMigrationIntegrationTest > adoptsImmutableLegacyHistoryThenRunsTheIndependentCoreStream() FAILED
    org.opentest4j.AssertionFailedError at PostgreSqlMigrationIntegrationTest.java:47

PostgreSqlMigrationIntegrationTest > freshCoreStreamInitializesWithoutLegacyHistory() FAILED
    org.opentest4j.AssertionFailedError at PostgreSqlMigrationIntegrationTest.java:89

4 tests completed, 2 failed

> Task :adapter:outbound:persistence-jpa:postgresqlMigrationIntegrationTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':adapter:outbound:persistence-jpa:postgresqlMigrationIntegrationTest'.
> There were failing tests. See the report at: file:///shared/codebase/clean-architecture-backend-template/src/adapter/outbound/persistence-jpa/build/reports/tests/postgresqlMigrationIntegrationTest/index.html

* Try:
> Run with --scan to generate a Build Scan (Powered by Develocity).

BUILD FAILED in 30s
19 actionable tasks: 19 executed
taskExit=1

=== failure messages from the JUnit XML ===
org.opentest4j.AssertionFailedError: 
Expecting actual:
  ["1", "3", "4", "5", "6", "9", "10", "11", "12"]
to contain exactly (and in same order):
  ["1", "3", "4", "5", "6"]
but some elements were not expected:
  ["9", "10", "11", "12"]
---
org.opentest4j.AssertionFailedError: 
Expecting actual:
  ["1", "2"]
to contain exactly (and in same order):
  ["1"]
but some elements were not expected:
  ["2"]
---

=== measured stream contents ===
$ ls src/main/resources/db/migration/postgresql
V10__idempotency_request_hash_varchar.sql
V11__durable_operation.sql
V12__live_event_log.sql
V1__idempotency_record.sql
V3__outbox_event.sql
V4__int_lock.sql
V5__int_lock_expired_after.sql
V6__capability_schema_registry_adoption.sql
V9__widen_capability_schema_stream.sql
$ ls src/main/resources/db/migration/jpa/core
V1__initialize_or_adopt.sql
V2__widen_capability_schema_stream.sql

=== history: when the later migrations landed vs when the assertion was last touched ===
2026-08-15  adapter/outbound/persistence-jpa/src/main/resources/db/migration/postgresql/V9__widen_capability_schema_stream.sql
2026-08-18  adapter/outbound/persistence-jpa/src/main/resources/db/migration/postgresql/V10__idempotency_request_hash_varchar.sql
2026-08-28  adapter/outbound/persistence-jpa/src/main/resources/db/migration/postgresql/V11__durable_operation.sql
2026-08-28  adapter/outbound/persistence-jpa/src/main/resources/db/migration/postgresql/V12__live_event_log.sql
2026-08-15  adapter/outbound/persistence-jpa/src/main/resources/db/migration/jpa/core/V2__widen_capability_schema_stream.sql
2026-07-31  adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlMigrationIntegrationTest.java
gitStatusAfter=0
