Skip to content

Commit 057d823

Browse files
authored
Merge branch 'main' into looker-run-tests
2 parents 3e4eb25 + d6af290 commit 057d823

405 files changed

Lines changed: 18723 additions & 7031 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/integration.cloudbuild.yaml

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,23 @@ steps:
171171
alloydbainl \
172172
alloydbainl
173173
174+
- id: "alloydb-omni"
175+
name: golang:1
176+
waitFor: ["compile-test-binary"]
177+
entrypoint: /bin/bash
178+
env:
179+
- "GOPATH=/gopath"
180+
volumes:
181+
- name: "go"
182+
path: "/gopath"
183+
args:
184+
- -c
185+
- |
186+
.ci/test_with_coverage.sh \
187+
"AlloyDB Omni" \
188+
alloydbomni \
189+
postgres
190+
174191
- id: "bigtable"
175192
name: golang:1
176193
waitFor: ["compile-test-binary"]
@@ -337,6 +354,30 @@ steps:
337354
postgressql \
338355
postgresexecutesql
339356
357+
- id: "cockroachdb"
358+
name: golang:1
359+
waitFor: ["compile-test-binary"]
360+
entrypoint: /bin/bash
361+
env:
362+
- "GOPATH=/gopath"
363+
- "COCKROACHDB_DATABASE=$_DATABASE_NAME"
364+
- "COCKROACHDB_PORT=$_COCKROACHDB_PORT"
365+
- "SERVICE_ACCOUNT_EMAIL=$SERVICE_ACCOUNT_EMAIL"
366+
secretEnv: ["COCKROACHDB_USER", "COCKROACHDB_HOST","CLIENT_ID"]
367+
volumes:
368+
- name: "go"
369+
path: "/gopath"
370+
args:
371+
- -c
372+
- |
373+
.ci/test_with_coverage.sh \
374+
"CockroachDB" \
375+
cockroachdb \
376+
cockroachdbsql \
377+
cockroachdbexecutesql \
378+
cockroachdblisttables \
379+
cockroachdblistschemas
380+
340381
- id: "spanner"
341382
name: golang:1
342383
waitFor: ["compile-test-binary"]
@@ -676,7 +717,7 @@ steps:
676717
"Looker" \
677718
looker \
678719
looker
679-
720+
680721
- id: "mindsdb"
681722
name: golang:1
682723
waitFor: ["compile-test-binary"]
@@ -864,7 +905,7 @@ steps:
864905
"Snowflake" \
865906
snowflake \
866907
snowflake
867-
908+
868909
- id: "cassandra"
869910
name: golang:1
870911
waitFor: ["compile-test-binary"]
@@ -906,16 +947,16 @@ steps:
906947
tar -C /usr/local -xzf go.tar.gz
907948
export PATH="/usr/local/go/bin:$$PATH"
908949
909-
go test -v ./internal/sources/oracle/... \
950+
go test -v ./tests/oracle/... \
910951
-coverprofile=oracle_coverage.out \
911952
-coverpkg=./internal/sources/oracle/...,./internal/tools/oracle/...
912-
953+
913954
# Coverage check
914955
total_coverage=$(go tool cover -func=oracle_coverage.out | grep "total:" | awk '{print $3}')
915956
echo "Oracle total coverage: $total_coverage"
916957
coverage_numeric=$(echo "$total_coverage" | sed 's/%//')
917-
if awk -v cov="$coverage_numeric" 'BEGIN {exit !(cov < 20)}'; then
918-
echo "Coverage failure: $total_coverage is below 20%."
958+
if awk -v cov="$coverage_numeric" 'BEGIN {exit !(cov < 60)}'; then
959+
echo "Coverage failure: $total_coverage is below 60%."
919960
exit 1
920961
fi
921962
@@ -1112,6 +1153,11 @@ availableSecrets:
11121153
env: MARIADB_HOST
11131154
- versionName: projects/$PROJECT_ID/secrets/mongodb_uri/versions/latest
11141155
env: MONGODB_URI
1156+
- versionName: projects/$PROJECT_ID/secrets/cockroachdb_user/versions/latest
1157+
env: COCKROACHDB_USER
1158+
- versionName: projects/$PROJECT_ID/secrets/cockroachdb_host/versions/latest
1159+
env: COCKROACHDB_HOST
1160+
11151161

11161162
options:
11171163
logging: CLOUD_LOGGING_ONLY
@@ -1172,6 +1218,9 @@ substitutions:
11721218
_SINGLESTORE_PORT: "3308"
11731219
_SINGLESTORE_DATABASE: "singlestore"
11741220
_SINGLESTORE_USER: "root"
1221+
_COCKROACHDB_HOST: 127.0.0.1
1222+
_COCKROACHDB_PORT: "26257"
1223+
_COCKROACHDB_USER: "root"
11751224
_MARIADB_PORT: "3307"
11761225
_MARIADB_DATABASE: test_database
11771226
_SNOWFLAKE_DATABASE: "test"

.ci/quickstart_test/run_go_tests.sh

Lines changed: 0 additions & 125 deletions
This file was deleted.

.ci/quickstart_test/run_js_tests.sh

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)