-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement postgres kvbackend (#4421)
- Loading branch information
Showing
16 changed files
with
801 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Setup PostgreSQL | ||
description: Deploy PostgreSQL on Kubernetes | ||
inputs: | ||
postgres-replicas: | ||
default: 1 | ||
description: "Number of PostgreSQL replicas" | ||
namespace: | ||
default: "postgres-namespace" | ||
postgres-version: | ||
default: "14.2" | ||
description: "PostgreSQL version" | ||
storage-size: | ||
default: "1Gi" | ||
description: "Storage size for PostgreSQL" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install PostgreSQL | ||
shell: bash | ||
run: | | ||
helm upgrade \ | ||
--install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ | ||
--set replicaCount=${{ inputs.postgres-replicas }} \ | ||
--set image.tag=${{ inputs.postgres-version }} \ | ||
--set persistence.size=${{ inputs.storage-size }} \ | ||
--set postgresql.username=greptimedb \ | ||
--set postgresql.password=admin \ | ||
--create-namespace \ | ||
-n ${{ inputs.namespace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,6 +338,8 @@ jobs: | |
uses: ./.github/actions/setup-kafka-cluster | ||
- name: Setup Etcd cluser | ||
uses: ./.github/actions/setup-etcd-cluster | ||
- name: Setup Postgres cluser | ||
uses: ./.github/actions/setup-postgres-cluster | ||
# Prepares for fuzz tests | ||
- uses: arduino/setup-protoc@v3 | ||
with: | ||
|
@@ -476,6 +478,8 @@ jobs: | |
uses: ./.github/actions/setup-kafka-cluster | ||
- name: Setup Etcd cluser | ||
uses: ./.github/actions/setup-etcd-cluster | ||
- name: Setup Postgres cluser | ||
uses: ./.github/actions/setup-postgres-cluster | ||
# Prepares for fuzz tests | ||
- uses: arduino/setup-protoc@v3 | ||
with: | ||
|
@@ -702,6 +706,9 @@ jobs: | |
- name: Setup minio | ||
working-directory: tests-integration/fixtures/minio | ||
run: docker compose -f docker-compose-standalone.yml up -d --wait | ||
- name: Setup postgres server | ||
working-directory: tests-integration/fixtures/postgres | ||
run: docker compose -f docker-compose-standalone.yml up -d --wait | ||
- name: Run nextest cases | ||
run: cargo llvm-cov nextest --workspace --lcov --output-path lcov.info -F pyo3_backend -F dashboard | ||
env: | ||
|
@@ -718,6 +725,7 @@ jobs: | |
GT_MINIO_REGION: us-west-2 | ||
GT_MINIO_ENDPOINT_URL: http://127.0.0.1:9000 | ||
GT_ETCD_ENDPOINTS: http://127.0.0.1:2379 | ||
GT_POSTGRES_ENDPOINTS: postgres://greptimedb:[email protected]:5432/postgres | ||
GT_KAFKA_ENDPOINTS: 127.0.0.1:9092 | ||
GT_KAFKA_SASL_ENDPOINTS: 127.0.0.1:9093 | ||
UNITTEST_LOG_DIR: "__unittest_logs" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.