mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 18:43:18 +08:00
Fix telemetry_stats test failure in PG15
The telemetry_stats testcase uses random() with seed(1) to generate the column values on which the hypertable is partitioned. The Postgres commit postgres/postgres@3804539e48 updates the random() implementation to use a better algorithim causing the test to generate a different set of rows in PG15. Due to this the test failed in PG15 as the distrubution stats of the tuples have now changed. Fixed that by creating separate test outputs for PG15 and other releases. Fixes #5037
This commit is contained in:
parent
7d3d260afb
commit
06eca172bd
3
.github/gh_matrix_builder.py
vendored
3
.github/gh_matrix_builder.py
vendored
@ -138,9 +138,8 @@ def macos_config(overrides):
|
||||
|
||||
# common installcheck_args for all pg15 tests
|
||||
# dist_move_chunk is skipped due to #4972
|
||||
# telemetry_stats is ignored due to #5037
|
||||
# partialize_finalize is ignored due to #4937
|
||||
pg15_installcheck_args = "SKIPS='dist_move_chunk' IGNORES='telemetry_stats partialize_finalize'"
|
||||
pg15_installcheck_args = "SKIPS='dist_move_chunk' IGNORES='partialize_finalize'"
|
||||
|
||||
# always test debug build on latest of all supported pg versions
|
||||
m["include"].append(build_debug_config({"pg": PG12_LATEST}))
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
||||
include:
|
||||
- pg: ${{ fromJson(needs.config.outputs.pg15_latest) }}
|
||||
skips_version: dist_move_chunk
|
||||
ignores_version: telemetry_stats partialize_finalize
|
||||
ignores_version: partialize_finalize
|
||||
|
||||
steps:
|
||||
|
||||
|
@ -64,9 +64,8 @@ jobs:
|
||||
pg: ${{ fromJson(needs.config.outputs.pg_latest) }}
|
||||
include:
|
||||
- pg: ${{ fromJson(needs.config.outputs.pg15_latest) }}
|
||||
# telemetry_stats is ignored in PG15 due to #5037
|
||||
# partialize_finalize is ignored in PG15 due to #4937
|
||||
ignores_version: telemetry_stats partialize_finalize
|
||||
ignores_version: partialize_finalize
|
||||
skips_version: 002_replication_telemetry 003_connections_privs 004_multinode_rdwr_1pc
|
||||
steps:
|
||||
- name: Install Linux Dependencies
|
||||
|
@ -59,7 +59,7 @@ jobs:
|
||||
- pg: 15
|
||||
pkg_version: 15.0.1 # hardcoded due to issues with PG15.1 on chocolatey
|
||||
tsl_skips_version: dist_partial_agg-15 dist_grant-15
|
||||
tsl_ignores_version: telemetry_stats partialize_finalize
|
||||
tsl_ignores_version: partialize_finalize
|
||||
env:
|
||||
# PostgreSQL configuration
|
||||
PGPORT: 55432
|
||||
|
1194
tsl/test/expected/telemetry_stats-13.out
Normal file
1194
tsl/test/expected/telemetry_stats-13.out
Normal file
File diff suppressed because it is too large
Load Diff
1194
tsl/test/expected/telemetry_stats-14.out
Normal file
1194
tsl/test/expected/telemetry_stats-14.out
Normal file
File diff suppressed because it is too large
Load Diff
1194
tsl/test/expected/telemetry_stats-15.out
Normal file
1194
tsl/test/expected/telemetry_stats-15.out
Normal file
File diff suppressed because it is too large
Load Diff
1
tsl/test/sql/.gitignore
vendored
1
tsl/test/sql/.gitignore
vendored
@ -17,5 +17,6 @@
|
||||
/plan_skip_scan-*.sql
|
||||
/remote-copy-*sv
|
||||
/remote_copy-*.sql
|
||||
/telemetry_stats-*.sql
|
||||
/transparent_decompression-*.sql
|
||||
/transparent_decompression_ordered_index-*.sql
|
||||
|
@ -95,9 +95,6 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
transparent_decompression_queries.sql
|
||||
tsl_tables.sql
|
||||
license_tsl.sql)
|
||||
if(USE_TELEMETRY)
|
||||
list(APPEND TEST_FILES telemetry_stats.sql)
|
||||
endif()
|
||||
endif(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
|
||||
if((${PG_VERSION_MAJOR} GREATER_EQUAL "14"))
|
||||
@ -153,6 +150,9 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
dist_query.sql.in
|
||||
cagg_invalidation_dist_ht.sql.in
|
||||
continuous_aggs.sql.in)
|
||||
if(USE_TELEMETRY)
|
||||
list(APPEND TEST_TEMPLATES telemetry_stats.sql.in)
|
||||
endif()
|
||||
endif(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
|
||||
# Check if PostgreSQL was compiled with JIT support
|
||||
|
Loading…
x
Reference in New Issue
Block a user