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

Proxy release 2024-07-11 #8351

Merged
merged 102 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
d557002
strocon: don't overcommit when making node fill plan (#8171)
VladLazar Jun 27, 2024
6f20a18
Allow to change compute safekeeper list without restart.
arssher Jun 17, 2024
54a06de
CI: Use `runner.arch` in cache keys along with `runner.os` (#8175)
bayandin Jun 27, 2024
89cf8df
stocon: bump number of concurrent reconciles per operation (#8179)
VladLazar Jun 27, 2024
66b0bf4
fix: shutdown does not kill walredo processes (#8150)
problame Jun 27, 2024
23827c6
feat(pageserver): add delta layer iterator (#8064)
skyzh Jun 27, 2024
1d66ca7
Improve slow operations observability in safekeepers (#8188)
petuhovskiy Jun 27, 2024
5700233
Add application_name to compute activity monitor connection string
tristan957 Jun 27, 2024
063553a
pageserver: remove tenant create API (#8135)
jcsp Jun 28, 2024
deec3bc
virtual_file: take a `Slice` in the read APIs, eliminate `read_exact_…
problame Jun 28, 2024
c22c6a6
Add buckets to safekeeper ops metrics (#8194)
petuhovskiy Jun 28, 2024
ca2f7d0
Cherry-pick upstream fix for TruncateMultiXact assertion (#8195)
hlinnaka Jun 28, 2024
babbe12
pageserver: drop out of secondary download if iteration time has pass…
jcsp Jun 28, 2024
e1a06b4
Add rate limiter for partial uploads (#8203)
petuhovskiy Jun 28, 2024
b8bbaaf
storage controller: fix heatmaps getting disabled during shard split …
jcsp Jun 28, 2024
bc70491
fix(pageserver): ensure tenant harness has different names (#8205)
skyzh Jun 28, 2024
30027d9
Fix tracking of the nextMulti in the pageserver's copy of CheckPoint …
hlinnaka Jun 30, 2024
57535c0
tests: remove a leftover 'running' flag (#8216)
hlinnaka Jul 1, 2024
75c84c8
tests: Make neon_xlogflush() flush all WAL, if you omit the LSN arg
hlinnaka Jul 1, 2024
9ce1930
Restore running xacts from CLOG on replica startup (#7288)
hlinnaka Jul 1, 2024
aea5cfe
pageserver: add metric `pageserver_secondary_resident_physical_size` …
jcsp Jul 1, 2024
e823b92
CI(build-tools): Remove libpq from build image (#8206)
bayandin Jul 1, 2024
b02aafd
fix(pageserver): include aux file in basebackup only once (#8207)
skyzh Jul 1, 2024
9c32604
CI(gather-rust-build-stats): fix build with libpq (#8219)
bayandin Jul 1, 2024
0789160
tests: Make neon_xlogflush() flush all WAL, if you omit the LSN arg (…
hlinnaka Jul 1, 2024
9882ac8
docs: Graceful storage controller cluster restarts RFC (#7704)
VladLazar Jul 1, 2024
0497b99
Check status of connection after PQconnectStartParams (#8210)
knizhnik Jul 2, 2024
7dcdbaa
remote_storage config: move handling of empty inline table `{}` to ca…
problame Jul 2, 2024
1a0f545
pageserver: simpler, stricter config error handling (#8177)
jcsp Jul 2, 2024
9b4b4bb
fix: noisy logging when download gets cancelled during shutdown (#8224)
problame Jul 2, 2024
28929d9
pageserver: rate limit log for loads of layers visited (#8228)
VladLazar Jul 2, 2024
25eefde
Add support for reading and writing compressed blobs (#8106)
arpad-m Jul 2, 2024
5de896e
L0 flush: opt-in mechanism to bypass PageCache reads and writes (#8190)
problame Jul 2, 2024
6216df7
CI(benchmarking): move psql queries to actions/run-python-test-set (#…
bayandin Jul 2, 2024
f583232
tense of errors (#8234)
jcsp Jul 2, 2024
891cb5a
fix(pageserver): comments about metadata key range (#8236)
skyzh Jul 2, 2024
4a0c2ae
Add test for proper handling of connection failure to avoid 'cannot w…
knizhnik Jul 2, 2024
4273309
docker: add storage_scrubber into the docker image (#8239)
skyzh Jul 3, 2024
dae55ba
Simplify test_wal_page_boundary_start test (#8214)
hlinnaka Jul 3, 2024
aae3876
CI: update docker/* actions to latest versions (#7694)
bayandin Jul 3, 2024
97f7188
pageserver: don't try to flush if shutdown during attach (#8235)
jcsp Jul 3, 2024
e0891ec
Only support compressed reads if the compression setting is present (…
arpad-m Jul 3, 2024
392a58b
add pagebench test cases for periodic pagebench on dedicated hardware…
Bodobolero Jul 3, 2024
ea0b22a
pageserver: reduce ops tracked at per-timeline detail (#8245)
jcsp Jul 3, 2024
cdaed4d
Fix outdated comment (#8149)
japinli Jul 3, 2024
a85aa03
page_service: stop exposing `get_last_record_rlsn` (#8244)
problame Jul 3, 2024
90b51dc
fix(pageserver): ensure test creates valid layer map (#8191)
skyzh Jul 3, 2024
778787d
pageserver: add supplementary branch usage stats (#8131)
jcsp Jul 3, 2024
bbb2fa7
tests: perform graceful rolling restarts in storcon scale test (#8173)
VladLazar Jul 4, 2024
e03c3c9
proxy: cache certain non-retriable console errors for a short time (#…
conradludgate Jul 4, 2024
5b69b32
CI(build-and-test): add conclusion job (#8246)
bayandin Jul 4, 2024
a462537
pageserver: increase rate limit duration for layer visit log (#8263)
VladLazar Jul 4, 2024
a004d27
Use bool param for round_trip_test_compressed (#8252)
arpad-m Jul 4, 2024
bf9fc77
CI(pg-clients): unify workflow with build-and-test (#8160)
bayandin Jul 4, 2024
c9e6dd4
pageserver: downgrade stale generation messages to INFO (#8256)
jcsp Jul 4, 2024
e579bc0
Add find-large-objects subcommand to scrubber (#8257)
arpad-m Jul 4, 2024
19accfe
feat(pageserver): integrate lsn lease into synthetic size (#8220)
yliang412 Jul 4, 2024
adde0ec
Flatten compression algorithm setting (#8265)
arpad-m Jul 4, 2024
88b13d4
implement rolling hyper-log-log algorithm (#8068)
knizhnik Jul 4, 2024
711716c
add checkout depth1 to workflow to access local github actions like g…
Bodobolero Jul 4, 2024
e25ac31
tests: extend allow list in deletion test (#8268)
jcsp Jul 5, 2024
6876f0d
correct error handling for periodic pagebench runner status (#8274)
Bodobolero Jul 5, 2024
5aae806
tests: make location_conf_churn more robust (#8271)
jcsp Jul 5, 2024
6849ae4
safekeeper: add separate `tombstones` map for deleted timelines (#8253)
jcsp Jul 5, 2024
7dd2e44
pageserver: add time based image layer creation check (#8247)
VladLazar Jul 5, 2024
c9fd8d7
SELECT 💣(); (#8270)
bayandin Jul 5, 2024
13522fb
Increase timeout for wating subscriber caught-up (#8118)
knizhnik Jul 5, 2024
f0d29a0
pageserver_live_connections: track as counter pair (#8227)
problame Jul 5, 2024
b8d031c
Improve parsing of `ImageCompressionAlgorithm` (#8281)
arpad-m Jul 5, 2024
0a937b7
Add concurrency to the find-large-objects scrubber subcommand (#8291)
arpad-m Jul 5, 2024
27fe7f8
build(deps): bump certifi from 2023.7.22 to 2024.7.4 (#8301)
dependabot[bot] Jul 6, 2024
154ba5e
fix(pageserver): ensure sparse keyspace is ordered (#8285)
skyzh Jul 8, 2024
1121a1c
pageserver: switch to jemalloc (#8307)
jcsp Jul 8, 2024
2a3410d
Hide import behind TYPE_CHECKING
tristan957 Jul 3, 2024
f2ec542
Add Neon HTTP API test fixture
tristan957 Jul 3, 2024
118847c
Log PG environment variables when a PgBin runs
tristan957 Jul 3, 2024
b54dd9a
Add PgBin.run_nonblocking()
tristan957 Jul 3, 2024
1c57f6b
Add long running replication tests
tristan957 Jul 3, 2024
fcdf060
pageserver: respect has_relmap_file in collect_keyspace (#8276)
jcsp Jul 8, 2024
a68edad
refactor: move part of sharding API from `pageserver_api` to `utils` …
yliang412 Jul 8, 2024
84b039e
compute_ctl: Use 'fast' shutdown for Postgres termination (#8289)
ololobus Jul 8, 2024
daea26a
tests: use smaller layers in test_pg_regress (#8232)
jcsp Jul 8, 2024
df3dc6e
fix(pageserver): write to both v1+v2 for aux tenant import (#8316)
skyzh Jul 8, 2024
811eb88
tests: stabilize test_timeline_size_quota_on_startup (#8255)
jcsp Jul 8, 2024
d9c1068
tests: increase approx size equal threshold to avoid `test_lsn_lease_…
yliang412 Jul 8, 2024
8b15864
CI(promote-compatibility-data): take into account commit sha (#8283)
bayandin Jul 9, 2024
c196cf6
proxy/http: avoid spurious vector reallocations
lucab Jul 9, 2024
73fa3c0
chore(storage-scrubber): allow disable file logging (#8297)
skyzh Jul 9, 2024
4a5b55c
chore: fix nightly build (#8142)
conradludgate Jul 9, 2024
b1fe825
fix(storage-scrubber): use default AWS authentication (#8299)
skyzh Jul 9, 2024
6d3cb22
Refactor how migrations are ran
tristan957 Jul 1, 2024
abc330e
Add an application_name to more Neon connections
tristan957 Jul 9, 2024
3f7aebb
refactor: postgres_backend: replace abstract shutdown_watcher with Ca…
problame Jul 9, 2024
9bb16c8
fix(l0_flush): drops permit before fsync, potential cause for OOMs (#…
problame Jul 9, 2024
1a49f1c
pageserver: move `page_service`'s `import basebackup` / `import wal`…
problame Jul 9, 2024
fe13fcc
proxy: pg17 fixes (#8321)
conradludgate Jul 10, 2024
e89ec55
tests: stabilize test_sharding_split_compaction (#8318)
jcsp Jul 10, 2024
1afab13
proxy: remove some trace logs (#8334)
conradludgate Jul 10, 2024
98387d6
build(deps-dev): bump zipp from 3.8.1 to 3.19.1
dependabot[bot] Jul 9, 2024
e78341e
Remove ImageCompressionAlgorithm::DisabledNoDecompress (#8300)
arpad-m Jul 10, 2024
9f4511c
feat(pageserver): add k-merge layer iterator with lazy loading (#8053)
skyzh Jul 10, 2024
24f8133
safekeeper: add eviction_min_resident to stop evictions thrashing (#8…
jcsp Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/allure-report-generate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ runs:
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: v2-${{ runner.os }}-python-deps-${{ hashFiles('poetry.lock') }}
key: v2-${{ runner.os }}-${{ runner.arch }}-python-deps-${{ hashFiles('poetry.lock') }}

- name: Store Allure test stat in the DB (new)
if: ${{ !cancelled() && inputs.store-test-results-into-db == 'true' }}
Expand Down
18 changes: 14 additions & 4 deletions .github/actions/run-python-test-set/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ runs:
if: inputs.build_type != 'remote'
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-${{ inputs.build_type }}-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build_type }}-artifact
path: /tmp/neon

- name: Download Neon binaries for the previous release
if: inputs.build_type != 'remote'
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-${{ inputs.build_type }}-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build_type }}-artifact
path: /tmp/neon-previous
prefix: latest

Expand All @@ -89,7 +89,7 @@ runs:
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: v2-${{ runner.os }}-python-deps-${{ hashFiles('poetry.lock') }}
key: v2-${{ runner.os }}-${{ runner.arch }}-python-deps-${{ hashFiles('poetry.lock') }}

- name: Install Python deps
shell: bash -euxo pipefail {0}
Expand All @@ -114,6 +114,8 @@ runs:
export PLATFORM=${PLATFORM:-github-actions-selfhosted}
export POSTGRES_DISTRIB_DIR=${POSTGRES_DISTRIB_DIR:-/tmp/neon/pg_install}
export DEFAULT_PG_VERSION=${PG_VERSION#v}
export LD_LIBRARY_PATH=${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/lib
export BENCHMARK_CONNSTR=${BENCHMARK_CONNSTR:-}

if [ "${BUILD_TYPE}" = "remote" ]; then
export REMOTE_ENV=1
Expand Down Expand Up @@ -178,7 +180,15 @@ runs:

# Wake up the cluster if we use remote neon instance
if [ "${{ inputs.build_type }}" = "remote" ] && [ -n "${BENCHMARK_CONNSTR}" ]; then
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/psql ${BENCHMARK_CONNSTR} -c "SELECT version();"
QUERIES=("SELECT version()")
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
fi

for q in "${QUERIES[@]}"; do
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/psql ${BENCHMARK_CONNSTR} -c "${q}"
done
fi

# Run the tests.
Expand Down
163 changes: 80 additions & 83 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

Expand All @@ -99,7 +99,14 @@ jobs:
# Set --sparse-ordering option of pytest-order plugin
# to ensure tests are running in order of appears in the file.
# It's important for test_perf_pgbench.py::test_pgbench_remote_* tests
extra_params: -m remote_cluster --sparse-ordering --timeout 5400 --ignore test_runner/performance/test_perf_olap.py --ignore test_runner/performance/test_perf_pgvector_queries.py
extra_params:
-m remote_cluster
--sparse-ordering
--timeout 5400
--ignore test_runner/performance/test_perf_olap.py
--ignore test_runner/performance/test_perf_pgvector_queries.py
--ignore test_runner/performance/test_logical_replication.py
--ignore test_runner/performance/test_physical_replication.py
env:
BENCHMARK_CONNSTR: ${{ steps.create-neon-project.outputs.dsn }}
VIP_VAP_ACCESS_TOKEN: "${{ secrets.VIP_VAP_ACCESS_TOKEN }}"
Expand All @@ -125,6 +132,69 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

replication-tests:
env:
POSTGRES_DISTRIB_DIR: /tmp/neon/pg_install
DEFAULT_PG_VERSION: 14
TEST_OUTPUT: /tmp/test_output
BUILD_TYPE: remote
SAVE_PERF_REPORT: ${{ github.event.inputs.save_perf_report || ( github.ref_name == 'main' ) }}
PLATFORM: "neon-staging"

runs-on: [ self-hosted, us-east-2, x64 ]
container:
image: 369495373322.dkr.ecr.eu-central-1.amazonaws.com/build-tools:pinned
options: --init

steps:
- uses: actions/checkout@v4

- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Run benchmark
uses: ./.github/actions/run-python-test-set
with:
build_type: ${{ env.BUILD_TYPE }}
test_selection: performance/test_logical_replication.py
run_in_parallel: false
save_perf_report: ${{ env.SAVE_PERF_REPORT }}
extra_params: -m remote_cluster --timeout 5400
env:
VIP_VAP_ACCESS_TOKEN: "${{ secrets.VIP_VAP_ACCESS_TOKEN }}"
PERF_TEST_RESULT_CONNSTR: "${{ secrets.PERF_TEST_RESULT_CONNSTR }}"
NEON_API_KEY: ${{ secrets.NEON_STAGING_API_KEY }}

- name: Run benchmark
uses: ./.github/actions/run-python-test-set
with:
build_type: ${{ env.BUILD_TYPE }}
test_selection: performance/test_physical_replication.py
run_in_parallel: false
save_perf_report: ${{ env.SAVE_PERF_REPORT }}
extra_params: -m remote_cluster --timeout 5400
env:
VIP_VAP_ACCESS_TOKEN: "${{ secrets.VIP_VAP_ACCESS_TOKEN }}"
PERF_TEST_RESULT_CONNSTR: "${{ secrets.PERF_TEST_RESULT_CONNSTR }}"
NEON_API_KEY: ${{ secrets.NEON_STAGING_API_KEY }}

- name: Create Allure report
if: ${{ !cancelled() }}
uses: ./.github/actions/allure-report-generate

- name: Post to a Slack channel
if: ${{ github.event.schedule && failure() }}
uses: slackapi/slack-github-action@v1
with:
channel-id: "C033QLM5P7D" # dev-staging-stream
slack-message: "Periodic replication testing: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

generate-matrices:
if: ${{ github.event.inputs.run_only_pgvector_tests == 'false' || github.event.inputs.run_only_pgvector_tests == null }}
# Create matrices for the benchmarking jobs, so we run benchmarks on rds only once a week (on Saturday)
Expand Down Expand Up @@ -235,15 +305,10 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Add Postgres binaries to PATH
run: |
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version
echo "${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin" >> $GITHUB_PATH

- name: Create Neon Project
if: contains(fromJson('["neon-captest-new", "neon-captest-freetier", "neonvm-captest-new", "neonvm-captest-freetier"]'), matrix.platform)
id: create-neon-project
Expand Down Expand Up @@ -282,16 +347,6 @@ jobs:

echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

QUERIES=("SELECT version()")
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
fi

for q in "${QUERIES[@]}"; do
psql ${CONNSTR} -c "${q}"
done

- name: Benchmark init
uses: ./.github/actions/run-python-test-set
with:
Expand Down Expand Up @@ -373,29 +428,16 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Add Postgres binaries to PATH
run: |
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version
echo "${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin" >> $GITHUB_PATH

- name: Set up Connection String
id: set-up-connstr
run: |
CONNSTR=${{ secrets.BENCHMARK_PGVECTOR_CONNSTR }}

echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

QUERIES=("SELECT version()")
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")

for q in "${QUERIES[@]}"; do
psql ${CONNSTR} -c "${q}"
done
echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

- name: Benchmark pgvector hnsw indexing
uses: ./.github/actions/run-python-test-set
Expand All @@ -417,12 +459,12 @@ jobs:
test_selection: performance/test_perf_pgvector_queries.py
run_in_parallel: false
save_perf_report: ${{ env.SAVE_PERF_REPORT }}
extra_params: -m remote_cluster --timeout 21600
extra_params: -m remote_cluster --timeout 21600
env:
BENCHMARK_CONNSTR: ${{ steps.set-up-connstr.outputs.connstr }}
VIP_VAP_ACCESS_TOKEN: "${{ secrets.VIP_VAP_ACCESS_TOKEN }}"
PERF_TEST_RESULT_CONNSTR: "${{ secrets.PERF_TEST_RESULT_CONNSTR }}"

- name: Create Allure report
if: ${{ !cancelled() }}
uses: ./.github/actions/allure-report-generate
Expand Down Expand Up @@ -473,15 +515,10 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Add Postgres binaries to PATH
run: |
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version
echo "${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin" >> $GITHUB_PATH

- name: Set up Connection String
id: set-up-connstr
run: |
Expand All @@ -503,16 +540,6 @@ jobs:

echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

QUERIES=("SELECT version()")
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
fi

for q in "${QUERIES[@]}"; do
psql ${CONNSTR} -c "${q}"
done

- name: ClickBench benchmark
uses: ./.github/actions/run-python-test-set
with:
Expand Down Expand Up @@ -576,15 +603,10 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Add Postgres binaries to PATH
run: |
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version
echo "${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin" >> $GITHUB_PATH

- name: Get Connstring Secret Name
run: |
case "${PLATFORM}" in
Expand Down Expand Up @@ -613,16 +635,6 @@ jobs:

echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

QUERIES=("SELECT version()")
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
fi

for q in "${QUERIES[@]}"; do
psql ${CONNSTR} -c "${q}"
done

- name: Run TPC-H benchmark
uses: ./.github/actions/run-python-test-set
with:
Expand Down Expand Up @@ -677,15 +689,10 @@ jobs:
- name: Download Neon artifact
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-release-artifact
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest

- name: Add Postgres binaries to PATH
run: |
${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin/pgbench --version
echo "${POSTGRES_DISTRIB_DIR}/v${DEFAULT_PG_VERSION}/bin" >> $GITHUB_PATH

- name: Set up Connection String
id: set-up-connstr
run: |
Expand All @@ -707,16 +714,6 @@ jobs:

echo "connstr=${CONNSTR}" >> $GITHUB_OUTPUT

QUERIES=("SELECT version()")
if [[ "${PLATFORM}" = "neon"* ]]; then
QUERIES+=("SHOW neon.tenant_id")
QUERIES+=("SHOW neon.timeline_id")
fi

for q in "${QUERIES[@]}"; do
psql ${CONNSTR} -c "${q}"
done

- name: Run user examples
uses: ./.github/actions/run-python-test-set
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build-build-tools-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ jobs:
mkdir -p /tmp/.docker-custom
echo DOCKER_CONFIG=/tmp/.docker-custom >> $GITHUB_ENV

- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
with:
cache-binary: false

- uses: docker/login-action@v2
- uses: docker/login-action@v3
with:
username: ${{ secrets.NEON_DOCKERHUB_USERNAME }}
password: ${{ secrets.NEON_DOCKERHUB_PASSWORD }}

- uses: docker/build-push-action@v4
- uses: docker/build-push-action@v6
with:
context: .
provenance: false
Expand All @@ -82,6 +84,7 @@ jobs:
tags: neondatabase/build-tools:${{ inputs.image-tag }}-${{ matrix.arch }}

- name: Remove custom docker config directory
if: always()
run: |
rm -rf /tmp/.docker-custom

Expand Down
Loading
Loading