[DB-15395] Fix the IOPs calculation logic from considering seq_tup_read as reads to using number of scans(sequential and index) #765
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
name: Go | |
on: | |
push: | |
branches: ['main', '*.*-dev', '*.*.*-dev'] | |
pull_request: | |
branches: [main] | |
env: | |
ORACLE_INSTANT_CLIENT_VERSION: "21.5.0.0.0-1" | |
jobs: | |
integration-tests: | |
strategy: | |
fail-fast: false | |
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: Build | |
# run: | | |
# cd yb-voyager | |
# go build -v ./... | |
# # required by godror driver used in the tests | |
# - name: Install Oracle Instant Clients | |
# run: | | |
# # Download and install the YB APT repository package | |
# wget https://s3.us-west-2.amazonaws.com/downloads.yugabyte.com/repos/reporpms/yb-apt-repo_1.0.0_all.deb | |
# sudo apt-get install -y ./yb-apt-repo_1.0.0_all.deb | |
# sudo apt-get update -y | |
# # Install Oracle Instant Client packages using the defined version | |
# sudo apt-get install -y oracle-instantclient-tools=${{ env.ORACLE_INSTANT_CLIENT_VERSION }} | |
# sudo apt-get install -y oracle-instantclient-basic=${{ env.ORACLE_INSTANT_CLIENT_VERSION }} | |
# sudo apt-get install -y oracle-instantclient-devel=${{ env.ORACLE_INSTANT_CLIENT_VERSION }} | |
# sudo apt-get install -y oracle-instantclient-jdbc=${{ env.ORACLE_INSTANT_CLIENT_VERSION }} | |
# sudo apt-get install -y oracle-instantclient-sqlplus=${{ env.ORACLE_INSTANT_CLIENT_VERSION }} | |
# # Clean up the YB APT repository package | |
# sudo apt-get remove -y yb-apt-repo | |
# rm -f yb-apt-repo_1.0.0_all.deb | |
- name: Run installer script to setup voyager and dependencies for running integration tests | |
run: | | |
cd installer_scripts | |
yes | ./install-yb-voyager --install-from-local-source | |
sudo rm /usr/bin/pg_dump | |
sudo ln -s /usr/lib/postgresql/17/bin/pg_dump /usr/bin/pg_dump | |
sudo rm /usr/bin/pg_restore | |
sudo ln -s /usr/lib/postgresql/17/bin/pg_restore /usr/bin/pg_restore | |
pg_dump --version | |
pg_restore --version | |
psql --version | |
env: | |
ON_INSTALLER_ERROR_OUTPUT_LOG: Y | |
- name: Run Integration Tests | |
run: | | |
cd yb-voyager | |
go test -v ./... -tags 'integration' | |
# Note: Below go tests use a voyager binary to call voyager commands | |
# Hence its important to ensure the voyager binary built is using the changes in the PR branch - `./install-yb-voyager --install-from-local-source` | |
- name: Run Integration Tests (executing voyager commands) | |
run: | | |
cd yb-voyager | |
go test -v ./... -tags 'integration_voyager_command' |