Skip to content

Commit 6c8c90b

Browse files
authored
Increase maximum number of postgres connections used in tests (#4649)
# Description When running tests with lots of parallel partitions, tests would spin up too many connections to the temporary Postgres server we spin up for tests. This increases the maximum number of allowed connections to the temporary test server. Also updates actions/cache to v4 since Github is deprecating it soon. # Checklist - [x] Reviewed the [contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes) document - [x] Rebased on top of master (no merge commits) - [x] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio extension) - [x] Compiles - [x] Ran all tests - [ ] If change impacts performance, include supporting evidence per the [performance document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)
2 parents 44ec33b + 0df308c commit 6c8c90b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
# bother filing another.
8383
- name: Probe Cache
8484
id: cache
85-
uses: actions/cache/restore@v3.3.1
85+
uses: actions/cache/restore@v4
8686
with:
8787
path: ${{ env.CACHED_PATHS }}
8888
key: ${{ runner.os }}-${{ matrix.toolchain }}-${{ matrix.protocol }}-${{ github.sha }}
@@ -92,7 +92,7 @@ jobs:
9292
# This will restore the most-recently-written cache (github does this date ordering itself).
9393
- name: Restore Cache
9494
if: steps.cache.outputs.cache-hit != 'true'
95-
uses: actions/cache/restore@v3.3.1
95+
uses: actions/cache/restore@v4
9696
with:
9797
path: ${{ env.CACHED_PATHS }}
9898
key: ${{ steps.cache.outputs.cache-primary-key }}
@@ -144,7 +144,7 @@ jobs:
144144
./ci-build.sh --use-temp-db --protocol ${{ matrix.protocol }} ${{ matrix.scenario }}
145145
146146
# We only _save_ to the cache when we had a cache miss, are running on master, and are the non-txmeta scenario.
147-
- uses: actions/cache/save@v3.3.1
147+
- uses: actions/cache/save@v4
148148
if: ${{ steps.cache.outputs.cache-hit != 'true' && github.ref_name == 'master' && matrix.scenario == ''}}
149149
with:
150150
path: ${{ env.CACHED_PATHS }}

src/test/run-selftest-pg

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ logging_collector = yes
8484
fsync = no
8585
synchronous_commit = off
8686
full_page_writes = off
87+
max_connections = 1000
8788
EOF
8889
$PGCTL start -w -s &> /dev/null
8990
}

0 commit comments

Comments
 (0)