From cc04058a1da367d51129bf14f2154649c934428d Mon Sep 17 00:00:00 2001 From: Zhou Cheng Date: Sun, 5 Jan 2025 09:31:30 +1000 Subject: [PATCH] CI: increase max connections for postgres. (#5509) --- .github/scripts/start_meta_engine.sh | 5 ++++- .github/workflows/rmfiles.yml | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/scripts/start_meta_engine.sh b/.github/scripts/start_meta_engine.sh index d7e7ffa1998f..ac6a6fc7855d 100755 --- a/.github/scripts/start_meta_engine.sh +++ b/.github/scripts/start_meta_engine.sh @@ -137,13 +137,16 @@ start_meta_engine(){ if lsof -i:5432; then echo "postgres is already running" else + # default max_connections is 100. docker run --name postgresql \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=postgres \ -p 5432:5432 \ -v /tmp/postgresql:/var/lib/postgresql/data \ - -d postgres + -d postgres \ + -N 300 sleep 10 + docker exec -i postgresql psql -U postgres -c "SHOW max_connections;" fi fi diff --git a/.github/workflows/rmfiles.yml b/.github/workflows/rmfiles.yml index c754221d8b87..f288b05f2973 100644 --- a/.github/workflows/rmfiles.yml +++ b/.github/workflows/rmfiles.yml @@ -3,10 +3,16 @@ name: "rmr-test" on: push: branches: + - 'main' - 'release-**' - paths-ignore: - - 'docs/**' - - '**.md' + paths: + - '**/rmfiles.yml' + pull_request: + branches: + - 'main' + - 'release-**' + paths: + - '**/rmfiles.yml' schedule: - cron: '0 20 * * *' workflow_dispatch: