Skip to content

Make two live tests independent of the extension and the wall clock (#3953) - #4389

Merged
erikdarlingdata merged 4 commits into
devfrom
test/3953-straddle-pin-enable-timescale
Sep 26, 2026
Merged

erikdarlingdata merged 4 commits into
devfrom
test/3953-straddle-pin-enable-timescale

Conversation

@erikdarlingdata

@erikdarlingdata erikdarlingdata commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Refs #3953. Test-only; no product change and no CHANGELOG entry.

QueryStoreTopLiteralEndStraddleLiveTests depends on the raw table being a TimescaleDB hypertable: the gate's chunk-floor input, and its failure diagnostic, read timescaledb_information. It did not enable TimescaleDB on its scratch database, so it passed only when the extension happened to be present, and otherwise failed with 42P01. It now enables TimescaleDB and converts the hypertables explicitly, the way its sibling live tests do, asserts that collect.query_store_stats is a hypertable, and guards the diagnostic's catalog read with to_regclass.

This PR also anchors SharedBaselineCacheLiveTests.Live_TheNextAnalysisHour_AndAnInvalidation_Recompute to midnight of its seeded day. The seeded hour is six hours before the run, so during the 05:00 UTC hour it fell on the previous day, and "the next hour" crossed midnight into a new day-grain cache key (#4248). The cache was correct; the test's clock arithmetic was not anchored.

@erikdarlingdata erikdarlingdata changed the title Enable TimescaleDB explicitly in the literal-end straddle pin (#3953) Make two live tests independent of the extension and the wall clock (#3953) Sep 26, 2026
@erikdarlingdata
erikdarlingdata marked this pull request as ready for review September 26, 2026 05:38
@erikdarlingdata
erikdarlingdata merged commit 112effd into dev Sep 26, 2026
15 of 16 checks passed
@erikdarlingdata
erikdarlingdata deleted the test/3953-straddle-pin-enable-timescale branch September 26, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant