Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include running query in CI coredump information #4714

Merged
merged 2 commits into from Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-32bit-build-and-test.yaml
Expand Up @@ -96,7 +96,7 @@ jobs:
apt-get install postgresql-${PG_MAJOR}-dbgsym >/dev/null
for file in /tmp/core*
do
gdb /usr/lib/postgresql/${PG_MAJOR}/bin/postgres -c $file <<<'bt full' | tee -a stacktraces.log
echo 'printf "%s", debug_query_string\nbt full' | gdb /usr/lib/postgresql/${PG_MAJOR}/bin/postgres -c $file | tee -a stacktraces.log
done
echo "::set-output name=coredumps::true"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux-build-and-test.yaml
Expand Up @@ -162,11 +162,11 @@ jobs:
with:
name: PostgreSQL log ${{ matrix.os }} ${{ matrix.name }} ${{ matrix.pg }}
path: postgres.log

- name: Stack trace
if: always() && steps.collectlogs.outputs.coredumps == 'true'
run: |
echo "bt full" | sudo coredumpctl gdb
echo 'printf "%s", debug_query_string\nbt full' | sudo coredumpctl gdb
./scripts/bundle_coredumps.sh
false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanitizer-build-and-test.yaml
Expand Up @@ -140,7 +140,7 @@ jobs:
- name: Stack trace
if: always() && steps.collectlogs.outputs.coredumps == 'true'
run: |
echo "bt full" | sudo coredumpctl gdb
echo 'printf "%s", debug_query_string\nbt full' | sudo coredumpctl gdb
./scripts/bundle_coredumps.sh
false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sqlsmith.yaml
Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Stack trace
if: always() && steps.collectlogs.outputs.coredumps == 'true'
run: |
echo "bt full" | sudo coredumpctl gdb
echo 'printf "%s", debug_query_string\nbt full' | sudo coredumpctl gdb
./scripts/bundle_coredumps.sh
false

Expand Down
2 changes: 1 addition & 1 deletion tsl/test/sql/CMakeLists.txt
Expand Up @@ -3,7 +3,6 @@ include(GenerateTestSchedule)
# These are the files for the 'postgresql' configuration. This is the default,
# so unless you have a good reason, add new test files here.
set(TEST_FILES
bgw_db_scheduler.sql
bgw_custom.sql
bgw_policy.sql
cagg_errors.sql
Expand Down Expand Up @@ -31,6 +30,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
list(
APPEND
TEST_FILES
bgw_db_scheduler.sql
bgw_reorder_drop_chunks.sql
compress_bgw_reorder_drop_chunks.sql
chunk_api.sql
Expand Down