diff --git a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlConcurrentIndexMigrationIntegrationTest.java b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlConcurrentIndexMigrationIntegrationTest.java index 33b1a78f..5b7fc33d 100644 --- a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlConcurrentIndexMigrationIntegrationTest.java +++ b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlConcurrentIndexMigrationIntegrationTest.java @@ -206,7 +206,7 @@ class PostgreSqlConcurrentIndexMigrationIntegrationTest { "실패한 동시 인덱스 마이그레이션은 runbook 절차(빌드 확인, 무효 인덱스 삭제, 원인 정리, 그 버전의 실패 이력 행 삭제) 뒤 다시 배포하면 적용된다") void aFailedConcurrentIndexMigrationIsRecoveredByTheRunbookProcedure(@TempDir Path stream) throws Exception { - OutboxRunbookSql runbook = OutboxRunbookSql.fromSystemProperty(MIGRATION_FAILED_RUNBOOK); + RunbookSql runbook = RunbookSql.fromSystemProperty(MIGRATION_FAILED_RUNBOOK); try (HikariDataSource database = postgres.createDatabase(databaseName())) { // given Files.writeString(stream.resolve("V1__probe.sql"), FIRST_RELEASE + DUPLICATE_NOTE); diff --git a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxDispositionRunbookIntegrationTest.java b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxDispositionRunbookIntegrationTest.java index d5b7f9f9..bcf1ace4 100644 --- a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxDispositionRunbookIntegrationTest.java +++ b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxDispositionRunbookIntegrationTest.java @@ -41,13 +41,13 @@ class PostgreSqlOutboxDispositionRunbookIntegrationTest { private static final Duration IN_FLIGHT_TIMEOUT = Duration.ofMinutes(5); private static PostgreSqlReadinessSupport postgres; - private static OutboxRunbookSql deadLetterRunbook; - private static OutboxRunbookSql publishFailedRunbook; + private static RunbookSql deadLetterRunbook; + private static RunbookSql publishFailedRunbook; @BeforeAll static void setup() throws IOException { - deadLetterRunbook = OutboxRunbookSql.fromSystemProperty("outbox.runbook"); - publishFailedRunbook = OutboxRunbookSql.fromSystemProperty("outbox.publish-failed.runbook"); + deadLetterRunbook = RunbookSql.fromSystemProperty("outbox.runbook"); + publishFailedRunbook = RunbookSql.fromSystemProperty("outbox.publish-failed.runbook"); postgres = PostgreSqlReadinessSupport.start(); } diff --git a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxOrderKeyRunbookIntegrationTest.java b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxOrderKeyRunbookIntegrationTest.java index 09a8381c..94f7a156 100644 --- a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxOrderKeyRunbookIntegrationTest.java +++ b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/PostgreSqlOutboxOrderKeyRunbookIntegrationTest.java @@ -47,13 +47,13 @@ class PostgreSqlOutboxOrderKeyRunbookIntegrationTest { private static final Instant OCCURRED = Instant.parse("2026-11-01T00:00:00Z"); private static PostgreSqlReadinessSupport postgres; - private static OutboxRunbookSql runbook; + private static RunbookSql runbook; private static String duplicateCheck; private static String removePublishedDuplicates; @BeforeAll static void setup() throws IOException { - runbook = OutboxRunbookSql.fromSystemProperty("outbox.runbook"); + runbook = RunbookSql.fromSystemProperty("outbox.runbook"); duplicateCheck = runbook.block("v21-duplicate-order-keys"); removePublishedDuplicates = runbook.block("v21-remove-published-duplicates"); postgres = PostgreSqlReadinessSupport.start(); diff --git a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/OutboxRunbookSql.java b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/RunbookSql.java similarity index 83% rename from src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/OutboxRunbookSql.java rename to src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/RunbookSql.java index 0d2556dc..ba1855cd 100644 --- a/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/OutboxRunbookSql.java +++ b/src/adapter/outbound/persistence-jpa/src/postgresqlIntegrationTest/java/dev/caskeleton/adapter/outbound/persistence/readiness/RunbookSql.java @@ -7,19 +7,21 @@ import java.nio.file.Path; import java.util.Map; /** - * The SQL a runbook gives an operator, read out of the runbook itself: the outbox runbooks, and the - * migration runbook's recovery of a failed concurrent index migration. + * The SQL a runbook gives an operator, read out of the runbook itself. Every lane that runs a + * runbook's SQL reads it through this one class: so far the outbox runbooks and the migration + * runbook's recovery of a failed concurrent index migration (re-review 2026-11-03 round 8, + * RR8-03-03: the class kept an outbox name after the migration runbook began to use it). * *
A runbook block is marked {@code } and followed by a {@code sql} * fence. The lanes that run these blocks against real PostgreSQL read them from the document rather * than keep a copy, so editing a block in the runbook is what the lane tests: a copy would pass * while the document an operator follows is wrong. */ -final class OutboxRunbookSql { +final class RunbookSql { private final String runbook; - private OutboxRunbookSql(String runbook) { + private RunbookSql(String runbook) { this.runbook = runbook; } @@ -30,13 +32,13 @@ final class OutboxRunbookSql { * @return the runbook's SQL blocks * @throws IOException when the file cannot be read */ - static OutboxRunbookSql fromSystemProperty(String property) throws IOException { + static RunbookSql fromSystemProperty(String property) throws IOException { String path = System.getProperty(property); if (path == null || path.isBlank()) { throw new IllegalStateException( "system property " + property + " must name the runbook this lane runs"); } - return new OutboxRunbookSql(Files.readString(Path.of(path), StandardCharsets.UTF_8)); + return new RunbookSql(Files.readString(Path.of(path), StandardCharsets.UTF_8)); } /**