Skip to content

Fix error messages during ErrExit in all commands to be able to send the sanitized error to callhome #941

Fix error messages during ErrExit in all commands to be able to send the sanitized error to callhome

Fix error messages during ErrExit in all commands to be able to send the sanitized error to callhome #941

Workflow file for this run

name: Go
on:
push:
branches: ['main', '*.*-dev', '*.*.*-dev']
pull_request:
branches: [main]
jobs:
test-issues-against-all-yb-versions:
strategy:
fail-fast: false
matrix:
version: [2.23.1.0-b220, 2024.1.4.0-b108, 2024.2.1.0-b185, 2.20.9.0-b47, 2.25.0.0-b489]
env:
YB_VERSION: ${{ matrix.version }}
YB_CONN_STR: "postgres://yugabyte:[email protected]:5433/yugabyte"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.23.1"
- name: Setup YugabyteDB
run: |
# using s3 release instead of docker image to allow testing against un-released versions
wget https://s3.us-west-2.amazonaws.com/releases.yugabyte.com/${YB_VERSION}/yugabyte-${YB_VERSION}-centos-x86_64.tar.gz
mkdir -p yugabyte-${YB_VERSION}
tar -xvzf yugabyte-${YB_VERSION}-centos-x86_64.tar.gz -C yugabyte-${YB_VERSION} --strip-components=1
yugabyte-${YB_VERSION}/bin/yugabyted start --advertise_address 127.0.0.1
sleep 20
- name: Test YugabyteDB connection
run: |
psql "${YB_CONN_STR}" -c "SELECT version();"
- name: Build
run: |
cd yb-voyager
go build -v ./...
- name: Test Issues Against YB Version
run: |
cd yb-voyager
go test -v ./... -tags 'issues_integration'
- name: Test Latest Stable YB Version
if: ${{ matrix.version == '2024.2.0.0-b145' }}
run: |
cd yb-voyager
go test -v ./... -tags 'yb_version_latest_stable'