-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
420 changed files
with
55,447 additions
and
11,109 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
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 |
---|---|---|
|
@@ -4,11 +4,16 @@ on: | |
push: | ||
branches: [main, release/*] | ||
pull_request: | ||
branches: [main] | ||
branches: | ||
- "main" | ||
- "release/*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runner: [ubicloud-standard-8] | ||
runs-on: ${{ matrix.runner }} | ||
timeout-minutes: 30 | ||
services: | ||
catalog_peer: | ||
|
@@ -28,30 +33,29 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.SUBMODULE_CHECKOUT }} | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y protobuf-compiler libssl-dev pkg-config build-essential | ||
- name: setup gcp service account | ||
id: gcp-service-account | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "bq_service_account.json" | ||
json: ${{ secrets.GCP_GH_CI_PKEY }} | ||
dir: 'nexus/server/tests/assets/' | ||
dir: "nexus/server/tests/assets/" | ||
|
||
- name: setup snowflake credentials | ||
id: sf-credentials | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "snowflake_creds.json" | ||
json: ${{ secrets.SNOWFLAKE_GH_CI_PKEY }} | ||
dir: 'nexus/server/tests/assets/' | ||
dir: "nexus/server/tests/assets/" | ||
|
||
- name: cargo check | ||
run: cargo check | ||
|
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
name: Flow build and test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- "main" | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
flow_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runner: [ubicloud-standard-8] | ||
runs-on: ${{ matrix.runner }} | ||
timeout-minutes: 30 | ||
services: | ||
pg_cdc: | ||
image: debezium/postgres:14-alpine | ||
image: postgres:15.4-alpine | ||
ports: | ||
- 7132:5432 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
options: >- | ||
--name pg_cdc | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
|
@@ -30,7 +35,7 @@ jobs: | |
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.19.0' | ||
go-version: ">=1.19.0" | ||
|
||
- name: install gotestsum | ||
run: | | ||
|
@@ -54,26 +59,45 @@ jobs: | |
with: | ||
name: "snowflake_creds.json" | ||
json: ${{ secrets.SNOWFLAKE_GH_CI_PKEY }} | ||
|
||
- name: setup S3 credentials | ||
id: s3-credentials | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "s3_creds.json" | ||
json: ${{ secrets.S3_CREDS }} | ||
|
||
- name: setup GCS credentials | ||
id: gcs-credentials | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "gcs_creds.json" | ||
json: ${{ secrets.GCS_CREDS }} | ||
|
||
- name: create hstore extension | ||
- name: create hstore extension and increase logical replication limits | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y postgresql-client | ||
psql -h localhost -p 7132 -U postgres -c "CREATE EXTENSION hstore;" | ||
docker exec pg_cdc psql -h localhost -p 5432 -U postgres -c "CREATE EXTENSION hstore;" | ||
docker exec pg_cdc psql -h localhost -p 5432 -U postgres -c "ALTER SYSTEM SET wal_level=logical;" | ||
docker exec pg_cdc psql -h localhost -p 5432 -U postgres -c "ALTER SYSTEM SET max_replication_slots=100;" | ||
docker exec pg_cdc psql -h localhost -p 5432 -U postgres -c "ALTER SYSTEM SET max_wal_senders=100;" | ||
docker restart pg_cdc | ||
working-directory: ./flow | ||
env: | ||
PG_CDC: empty | ||
PGPASSWORD: postgres | ||
|
||
- name: run tests | ||
run: | | ||
gotestsum --format testname -- -p 1 ./... -timeout 1200s | ||
gotestsum --format testname -- -p 4 ./... -timeout 2400s | ||
working-directory: ./flow | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
TEST_BQ_CREDS: ${{ github.workspace }}/bq_service_account.json | ||
TEST_SF_CREDS: ${{ github.workspace }}/snowflake_creds.json | ||
TEST_S3_CREDS: ${{ github.workspace }}/s3_creds.json | ||
TEST_GCS_CREDS: ${{ github.workspace }}/gcs_creds.json | ||
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | ||
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | ||
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
name: clippy-action | ||
on: [pull_request] | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
clippy: | ||
permissions: | ||
checks: write | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runner: [ubicloud-standard-4] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.SUBMODULE_CHECKOUT }} | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
|
||
- uses: giraffate/clippy-action@v1 | ||
with: | ||
reporter: 'github-pr-review' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workdir: ./nexus | ||
env: | ||
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }} | ||
- name: clippy | ||
run: cargo clippy -- -D warnings | ||
working-directory: ./nexus |
Oops, something went wrong.