From 39b4bed4c566eb2d1e1ce347f1362eefa4cffa88 Mon Sep 17 00:00:00 2001 From: Vardhan Thigle Date: Thu, 19 Dec 2024 18:51:43 +0000 Subject: [PATCH] Updating version of msprod --- .../integration-tests-against-emulator.yaml | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 63999ea5e..f39322639 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -114,21 +114,28 @@ jobs: - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_foreignkeyaction_dump.test.out # init sql server with test_data + # since we use ubuntu-latest container, we should ensure that the path matches the latest from https://packages.microsoft.com/config/ubuntu/ + # while its possible to infer the latest from the path in the run script, it will make the run section more complex and hard to maintian. - name: Install sqlcmd required for loading .sql files run: | curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - - curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list - sudo apt-get update - sudo apt-get install mssql-tools unixodbc-dev - echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile - - run: sqlcmd -? - - run: sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out + curl https://packages.microsoft.com/config/ubuntu/24.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list + sudo apt-get update + sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 + sudo apt-get install mssql-tools18 unixodbc-dev + set -x + ls /opt/mssql-tools18/bin/ + set +x + echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc + - run: /opt/mssql-tools18/bin/sqlcmd -C -? + - run: /opt/mssql-tools18/bin/sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out -C # sqlplus set up init oracle db. - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y libaio1 rpm2cpio cpio + sudo apt-get install -y libaio1t64 rpm2cpio cpio + sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/libaio.so.1 curl -O https://download.oracle.com/otn_software/linux/instantclient/2340000/oracle-instantclient-basic-23.4.0.24.05-1.el9.x86_64.rpm curl -O https://download.oracle.com/otn_software/linux/instantclient/2340000/oracle-instantclient-sqlplus-23.4.0.24.05-1.el9.x86_64.rpm rpm2cpio oracle-instantclient-basic-23.4.0.24.05-1.el9.x86_64.rpm | sudo cpio -idmv