Repository navigation
test(inkless): speed up Postgres test setup and cluster test poll intervals - #924
Merged
Merged
Conversation
jeqo
force-pushed
the
jeqo/ci-tier2-test-infra
branch
3 times, most recently
from
December 1, 2026 16:18
98411fe to
e993d68
Compare
Every Postgres-backed test method creates a blank database and runs the full Flyway migration chain from scratch, spending ~1.2s per test in DDL setup (`PostgresControlPlaneTest` runs 114 migrations in 146s; `WriterPropertyTest` runs 100 in 131s). In `InklessPostgreSQLContainer`, create and migrate an `inkless_migrated_template` database once per container, lock it with `IS_TEMPLATE true ALLOW_CONNECTIONS false`, and clone per-test databases via `CREATE DATABASE ... TEMPLATE`. Add `createEmptyDatabase` for tests that migrate to a specific historical Flyway version (`BatchesPlanRegressionTest` and `ListOffsetsTimestampScanBenchmarkTest`). Assisted-by: Gemini 4 Neon
…tests The four heaviest tiered and consolidated cluster test classes configure 5-second remote log manager and consolidation cleanup poll intervals, stretching every tiering, WAL-pruning, and local-retention wait. Lower `remote.log.manager.task.interval.ms` from 5000 ms to 1000 ms in `InklessTopicTypeSwitcherClusterTest`, `InklessConsolidatedDisklessTopicsTest`, `InklessUntieredDisklessMigrationTest`, and `InklessConsolidatedDisklessReassignmentTest`. Lower `consolidation.cleanup.interval.ms` to 1000 ms in `InklessConsolidatedDisklessTopicsTest` and adjust its reclaim-cycle wait from 15s to 5s (5 cycles at 1s instead of 3 at 5s). Assisted-by: Gemini 4 Neon
gqmelo
force-pushed
the
jeqo/ci-tier2-test-infra
branch
from
December 2, 2026 14:39
e993d68 to
5fd0afb
Compare
jeqo
marked this pull request as ready for review
December 2, 2026 14:40
gqmelo
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Postgres-backed unit tests and the heaviest
:corecluster tests spend most of their wall time waiting on repeated Flyway migrations and 5-second background poll intervals. Cloning a single pre-migrated template database per container preserves per-test database isolation without replaying DDL on every test method, and lowering remote log manager and consolidation cleanup poll intervals shortens tiering and WAL-pruning waits without changing test assertions.Commits
test(inkless): clone a pre-migrated Postgres template database per testtest(inkless): lower RLM and consolidation poll intervals in cluster testsSee the commit messages for the reasoning behind each step.
Test plan
BatchesPlanRegressionTestusescreateEmptyDatabaseto verify historical-version migration paths remain unmigrated beforemigrate(targetVersion).InklessControlPlaneMigrationLockClusterTestverifies Flyway still acquires the advisory lock on restart against a template-cloned database.PostgresControlPlaneTest,WriterPropertyTest,CommitFileJobTest,InklessConsolidatedDisklessReassignmentTest, andInklessConsolidatedDisklessTopicsTest.testCrossTierDeleteRecordsOnConsolidatedTopicverify control-plane behavior and shortened RLM/consolidation cycles.