Skip to content

Commit

Permalink
Lock log waits in postgres and dump logs (#10992)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier authored Oct 18, 2023
1 parent f8f929d commit 01a2dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-postgres/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POSTGRES_USER=postgres
POSTGRES_OPTIONS="-c max_connections=1000 -c shared_buffers=2GB"
POSTGRES_OPTIONS="-c max_connections=1000 -c shared_buffers=2GB -c log_lock_waits=true"
POSTGRES_PASSWORD=postgres
POSTGRES_DB=chainlink_test
POSTGRES_HOST_AUTH_METHOD=trust
9 changes: 5 additions & 4 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
- name: Print Races
if: ${{ failure() && matrix.cmd == 'go_core_race_tests' }}
run: find race.* | xargs cat
- name: Print postgres logs
if: always()
run: docker compose logs postgres | tee ../../../postgres_logs.txt
working-directory: ./.github/actions/setup-postgres
- name: Store logs artifacts
if: always()
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
Expand All @@ -93,10 +97,7 @@ jobs:
./output-short.txt
./race.*
./coverage.txt
- name: Print postgres logs
if: always()
run: docker compose logs postgres
working-directory: ./.github/actions/setup-postgres
./postgres_logs.txt
- name: Notify Slack
if: ${{ failure() && matrix.cmd == 'go_core_race_tests' && github.event.schedule != '' }}
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
Expand Down

0 comments on commit 01a2dfb

Please sign in to comment.