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

test(bigtable): Run conformance tests for bigtable #8658

Merged
merged 10 commits into from
Oct 16, 2023
12 changes: 8 additions & 4 deletions .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ name: conformance
jobs:
conformance:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20', '1.21' ]
bhshkh marked this conversation as resolved.
Show resolved Hide resolved
folders: ['bigtable']
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -37,8 +41,8 @@ jobs:
path: cloud-bigtable-clients-test
- uses: actions/setup-go@v4
with:
go-version: '>=1.20.2'
- run: go install github.com/jstemmer/go-junit-report/v2@latest
- run: chmod +x ./google-cloud-go/bigtable/conformance_test.sh
go-version: ${{ matrix.go }}
- run: go version
- run: ./google-cloud-go/bigtable/conformance_test.sh
- run: go install github.com/jstemmer/go-junit-report/v2@latest
- run: chmod +x ./google-cloud-go/${{ matrix.folders }}/conformance_test.sh
bhshkh marked this conversation as resolved.
Show resolved Hide resolved
- run: ./google-cloud-go/${{ matrix.folders }}/conformance_test.sh
16 changes: 8 additions & 8 deletions bigtable/conformance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ conformanceTestsHome=$rootDir/cloud-bigtable-clients-test/tests

sponge_log=$clientLibHome/sponge_log.log

pushd $testProxyHome > /dev/null;
go build
popd > /dev/null;
cd $testProxyHome
go build

nohup $testProxyHome/testproxy --port $testProxyPort &
proxyPID=$!
Expand All @@ -49,11 +48,12 @@ function cleanup() {
}
trap cleanup EXIT

pushd $conformanceTestsHome > /dev/null;
# Run the conformance tests
go test -v -proxy_addr=:$testProxyPort | tee -a $sponge_log
RETURN_CODE=$?
popd > /dev/null;
# Run the conformance tests
cd $conformanceTestsHome
go install golang.org/dl/go1.20.2@latest
go1.20.2 download
bhshkh marked this conversation as resolved.
Show resolved Hide resolved
go1.20.2 test -v -proxy_addr=:$testProxyPort | tee -a $sponge_log
bhshkh marked this conversation as resolved.
Show resolved Hide resolved
RETURN_CODE=$?

echo "exiting with ${RETURN_CODE}"
exit ${RETURN_CODE}
bhshkh marked this conversation as resolved.
Show resolved Hide resolved
Loading