Skip to content

Commit

Permalink
Run dist_move_chunk as a solo test in PG15
Browse files Browse the repository at this point in the history
When run in a parallel group, the dist_move_chunk test can get into a
deadlock with another test running a 'DROP DATABASE' command. So, mark
it as a solo test to disallow it from running in a parallel group.

Closes timescale#4972
  • Loading branch information
lkshminarayanan committed Jan 31, 2023
1 parent 03b740c commit 3892744
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/gh_matrix_builder.py
Expand Up @@ -138,9 +138,8 @@ def macos_config(overrides):


# common installcheck_args for all pg15 tests
# dist_move_chunk is skipped due to #4972
# partialize_finalize is ignored due to #4937
pg15_installcheck_args = "SKIPS='dist_move_chunk' IGNORES='partialize_finalize'"
pg15_installcheck_args = "IGNORES='partialize_finalize'"

# always test debug build on latest of all supported pg versions
m["include"].append(build_debug_config({"pg": PG12_LATEST}))
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/linux-32bit-build-and-test.yaml
Expand Up @@ -44,7 +44,6 @@ jobs:
build_type: [ Debug ]
include:
- pg: ${{ fromJson(needs.config.outputs.pg15_latest) }}
skips_version: dist_move_chunk
ignores_version: partialize_finalize

steps:
Expand Down Expand Up @@ -89,7 +88,7 @@ jobs:
run: |
set -o pipefail
export LANG=C.UTF-8
sudo -u postgres make -k -C build installcheck IGNORES="${IGNORES} ${{ matrix.ignores_version }}" SKIPS="${SKIPS} ${{ matrix.skips_version }}" | tee installcheck.log
sudo -u postgres make -k -C build installcheck IGNORES="${IGNORES} ${{ matrix.ignores_version }}" SKIPS="${SKIPS}" | tee installcheck.log
- name: Show regression diffs
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-build-and-test-ignored.yaml
Expand Up @@ -52,7 +52,7 @@ jobs:
build_type: ${{ fromJson(needs.config.outputs.build_type) }}
ignores: ["chunk_adaptive metadata"]
tsl_ignores: ["compression_algos remote_connection"]
tsl_skips: ["bgw_db_scheduler bgw_db_scheduler_fixed cagg_ddl_dist_ht data_fetcher dist_compression dist_move_chunk dist_remote_error remote_txn"]
tsl_skips: ["bgw_db_scheduler bgw_db_scheduler_fixed cagg_ddl_dist_ht data_fetcher dist_compression dist_remote_error remote_txn"]
pg_config: ["-cfsync=off -cstatement_timeout=60s"]
include:
- pg: 12
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-build-and-test.yaml
Expand Up @@ -54,7 +54,7 @@ jobs:
build_type: ${{ fromJson(needs.config.outputs.build_type) }}
ignores: ["chunk_adaptive metadata"]
tsl_ignores: ["compression_algos remote_connection"]
tsl_skips: ["bgw_db_scheduler bgw_db_scheduler_fixed cagg_ddl_dist_ht data_fetcher dist_compression dist_move_chunk dist_remote_error remote_txn"]
tsl_skips: ["bgw_db_scheduler bgw_db_scheduler_fixed cagg_ddl_dist_ht data_fetcher dist_compression dist_remote_error remote_txn"]
pg_config: ["-cfsync=off -cstatement_timeout=60s"]
include:
- pg: 12
Expand Down
6 changes: 6 additions & 0 deletions tsl/test/sql/CMakeLists.txt
Expand Up @@ -130,6 +130,12 @@ set(SOLO_TESTS
reorder
telemetry_stats-${PG_VERSION_MAJOR})

# In PG15.0 and PG15.1, dist_move_chunk can get stuck when run in parallel with
# other tests as mentioned in #4972.
if(${PG_VERSION_MAJOR} EQUAL "15" AND ${PG_VERSION_MINOR} LESS "2")
list(APPEND SOLO_TESTS dist_move_chunk)
endif()

set(TEST_TEMPLATES
compression_insert.sql.in cagg_union_view.sql.in plan_skip_scan.sql.in
transparent_decompression.sql.in
Expand Down

0 comments on commit 3892744

Please sign in to comment.