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

Versioned pg regression tests #964

Merged
merged 3 commits into from
Jan 23, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ jobs:

- name: regress tests
run: |
POSTGRES_VERSION=12 make regress
POSTGRES_VERSION=13 make regress
POSTGRES_VERSION=14 make regress
POSTGRES_VERSION=15 make regress
make POSTGRES_VERSION=12 regress
make POSTGRES_VERSION=13 regress
make POSTGRES_VERSION=14 regress
make POSTGRES_VERSION=15 regress
make POSTGRES_VERSION=16 regress
make POSTGRES_VERSION=17 regress

gorm-regress:
name: drivers_gorm
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ regress_pooler_local: pooler_d_run
regress_pooler: build_images
docker compose -f test/regress/docker-compose.yaml down && docker compose -f test/regress/docker-compose.yaml run --build regress

POSTGRES_VERSION ?= 13

regress: build_images
docker compose -f test/regress/docker-compose.yaml down && docker compose -f test/regress/docker-compose.yaml run --build regress
docker compose -f test/regress/docker-compose.yaml down && docker compose -f test/regress/docker-compose.yaml build --build-arg POSTGRES_VERSION=${POSTGRES_VERSION} && docker compose -f test/regress/docker-compose.yaml run --remove-orphans regress

hibernate_regress: build_images
docker compose -f test/drivers/hibernate-regress/docker-compose.yaml up --remove-orphans --force-recreate --exit-code-from regress --build coordinator router shard1 shard2 regress qdb01
Expand Down
6 changes: 4 additions & 2 deletions test/regress/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:focal

ARG POSTGRES_VERSION=13

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Israel
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand All @@ -11,9 +13,9 @@ RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

RUN apt-get update && apt-get install -y --no-install-recommends \
sudo postgresql-13
sudo postgresql-${POSTGRES_VERSION}

ENV PATH=$PATH:"/usr/lib/postgresql/13/lib/pgxs/src/test/regress"
ENV PATH=$PATH:"/usr/lib/postgresql/${POSTGRES_VERSION}/lib/pgxs/src/test/regress"

COPY ./ /regress
RUN chmod a+x /regress/run_tests.sh
Expand Down
Loading