-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename main crate as ndc-bigquery * wip: update query engine crate * update configuration, connector and cli crates * add SQL for cli update command * create tables info for cli config updation * create tables info for cli config updation * cli update command * update service key value * format * format * update sql to take database name from the user * send empty row instead of null value when no element is present in the query result * wip: fix ndc-tests * update ndc-spec version * take project_id and dataset_id as input * format * remove unused imports/variables * lint fix * wip: lint fix * wip: lint fix * lint fix * cli binary generation * wip: cleanup * collect all env var as part of connection_settings * wip: fix tests: query tests, ndc-tests * empty dataset config generation fix * wip: fix tests * update config gen query to take dataset name * translation tests * remove debug statements * remove unused variable * wip: github actions * wip: github actions * wip: github actions - nix * wip: github actions - nix * wip: github actions - nix * wip: github actions - nix * wip: github actions - nix try 1 * Update flake.lock * Fix Nix build path in benchmarks * Remove duplicate nix build job, use hasura-v3-dev cachix cache every time --------- Co-authored-by: Daniel Harvey <[email protected]>
- Loading branch information
1 parent
40ee3e6
commit 31ae50f
Showing
244 changed files
with
14,622 additions
and
6,856 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
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,6 +1,6 @@ | ||
on: [push] | ||
|
||
name: Postgres NDC tests | ||
name: BigQuery NDC tests | ||
|
||
jobs: | ||
test-query-engine: | ||
|
@@ -36,106 +36,13 @@ jobs: | |
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | ||
|
||
test-postgres-ndc: | ||
name: Test ndc-postgres | ||
test-bigquery-ndc: | ||
name: Test ndc-bigquery | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
version: "23.3" | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: start dependencies | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yaml" | ||
down-flags: "--volumes" | ||
services: | | ||
postgres | ||
- name: run tests | ||
run: | | ||
cargo test --release -p ndc-postgres | ||
env: | ||
POSTGRESQL_CONNECTION_STRING: postgresql://postgres:password@localhost:64002 | ||
RUST_LOG: INFO | ||
|
||
# scream into Slack if something goes wrong | ||
- name: report status | ||
if: github.ref == 'refs/heads/main' | ||
uses: ravsamhq/notify-slack-action@v2 | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: failure | ||
notification_title: "😧 Error on <{repo_url}|{repo}>" | ||
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | ||
|
||
test-cockroach-ndc: | ||
name: Test ndc-cockroach | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
version: "23.3" | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: start dependencies | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yaml" | ||
down-flags: "--volumes" | ||
services: | | ||
cockroach | ||
- name: run tests | ||
run: | | ||
cargo test --release -p ndc-cockroach | ||
env: | ||
POSTGRESQL_CONNECTION_STRING: postgresql://postgres:password@localhost:64003 | ||
RUST_LOG: INFO | ||
|
||
# scream into Slack if something goes wrong | ||
- name: report status | ||
if: github.ref == 'refs/heads/main' | ||
uses: ravsamhq/notify-slack-action@v2 | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: failure | ||
notification_title: "😧 Error on <{repo_url}|{repo}>" | ||
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | ||
|
||
test-citus-ndc: | ||
name: Test ndc-citus | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -149,72 +56,28 @@ jobs: | |
rustup show | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: start dependencies | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yaml" | ||
down-flags: "--volumes" | ||
services: | | ||
citus | ||
- name: run tests | ||
run: | | ||
cargo test --release -p ndc-citus | ||
env: | ||
POSTGRESQL_CONNECTION_STRING: postgresql://postgres:password@localhost:64004 | ||
RUST_LOG: INFO | ||
|
||
# scream into Slack if something goes wrong | ||
- name: report status | ||
if: github.ref == 'refs/heads/main' | ||
uses: ravsamhq/notify-slack-action@v2 | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: failure | ||
notification_title: "😧 Error on <{repo_url}|{repo}>" | ||
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | ||
|
||
test-postgres-ndc-with-aurora: | ||
name: Test ndc-postgres on AWS aurora | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
version: "23.3" | ||
|
||
- name: setup deployment | ||
env: | ||
AURORA_CONNECTION_STRING: ${{ secrets.AURORA_CONNECTION_STRING }} | ||
run: | | ||
# take connection string from env, create deployment file with it | ||
cat static/aurora/chinook-deployment-template.json \ | ||
| jq '.connection_uris[0]=(env | .AURORA_CONNECTION_STRING)' \ | ||
> static/aurora/chinook-deployment.json | ||
shared-key: "build" # share the cache across jobs | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
- uses: Swatinem/rust-cache@v2 | ||
# - uses: hoverkraft-tech/[email protected] | ||
# with: | ||
# compose-file: "./docker-compose.yaml" | ||
# up-flags: "--pull=always --wait" | ||
# down-flags: "--volumes" | ||
# services: | | ||
# bigquery | ||
|
||
- name: run tests | ||
run: | | ||
cargo test --release -p other-db-tests --all-features | ||
cargo test --release --workspace | ||
env: | ||
HASURA_BIGQUERY_SERVICE_KEY: "{\"type\": \"service_account\",\"project_id\": \"hasura-development\",\"private_key_id\": \"222dd3f9e98b6743bb8d74d7a126fe89e6ac221d\",\"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDZuxyxWk6bOxHr\\nht+MPZ7Q+F4D7AzTqCTZOmcldod+KHMlUCKwIOLQabAO8TEPhvcYyzBQ4gCwoN2i\\n7VoQbHmlTpQu1s43K25oIoEIicFTbHcL4MALiFnT44XYl+PxL+e//GibJYGjwqI+\\n3o2Go//o8BOfQEO/PPiQdub8/4VQjXGE0+xLeUjYURiJPu8ojrL2FdIqvzMaDWKq\\n2r6KuukIeWkqmt6fHnrGiseavg3g7pBPjqmRtX6ekY74XbkTQk1kmCKf9MLjZ1UI\\n+8QNp1C4pO4eDbp1Zkqz3uHhzccUv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5w1A03CFP//0OicLWOgxr1AfU\\nMkpQ5uwRy4XqbsL/jGp5Fq/mlxPO8HrbfDSfcr0CgYEAxN/RMCYODz+p9xZ6tbiS\\nfHFrCgvPpYR9hEWhb/DyT4Q/OSzk0TItuSXGc3uicYeIycHIndyWej/a1HGg0IRK\\nqjGbqGvRJIrzhLvLog1oOGADFSE2IJrxV2m9lQG8IUow4QUFcoZaCXZAQEvWeo+D\\nq+4Pe2w4aMZeyqpt/mOSGzQ=\\n-----END PRIVATE KEY-----\\n\",\"client_email\": \"[email protected]\",\"client_id\": \"116460406056940511807\",\"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\"token_uri\": \"https://oauth2.googleapis.com/token\",\"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/skm-bq-test%40hasura-development.iam.gserviceaccount.com\",\"universe_domain\": \"googleapis.com\"}" | ||
HASURA_BIGQUERY_PROJECT_ID: "hasura-development" | ||
HASURA_BIGQUERY_DATASET_ID: "chinook_sample" | ||
RUST_LOG: INFO | ||
AURORA_CONNECTION_STRING: ${{ secrets.AURORA_CONNECTION_STRING }} | ||
|
||
# scream into Slack if something goes wrong | ||
- name: report status | ||
- name: Report Status | ||
if: github.ref == 'refs/heads/main' | ||
uses: ravsamhq/notify-slack-action@v2 | ||
with: | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.