From 0d56018848997b0fd33156c85f3b970a344489fe Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:29:08 +0000 Subject: [PATCH 01/15] Change --- .../integration-tests-against-emulator.yaml | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 63999ea5e..919d91f40 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -116,13 +116,23 @@ jobs: # init sql server with test_data - 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 + # Download and register the Microsoft signing key + curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft-prod.gpg + + # Add the Microsoft package repository (replace with your Ubuntu version if needed) + echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/microsoft-prod.gpg] https://packages.microsoft.com/ubuntu/$(lsb_release -rs)/prod noble main" | sudo tee /etc/apt/sources.list.d/msprod.list + + # Update the package list + sudo apt-get update -y + + # Install the necessary packages with the EULA acceptance + sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc-dev + + # Add the sqlcmd directory to the PATH + echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc + - run: sqlcmd -? - - run: sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out + - run: sqlcmd -U sa -P "${{ secrets.MSSQL_SA_PASSWORD }}" -i test_data/sqlserver.test.out # sqlplus set up init oracle db. - name: Install sqlplus required for loading .sql files From f08ec6a69db405fc2abbf7fa598b0aac3fa7b117 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:34:18 +0000 Subject: [PATCH 02/15] change --- .../integration-tests-against-emulator.yaml | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 919d91f40..a03c97fca 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -116,23 +116,14 @@ jobs: # init sql server with test_data - name: Install sqlcmd required for loading .sql files run: | - # Download and register the Microsoft signing key - curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft-prod.gpg - - # Add the Microsoft package repository (replace with your Ubuntu version if needed) - echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/microsoft-prod.gpg] https://packages.microsoft.com/ubuntu/$(lsb_release -rs)/prod noble main" | sudo tee /etc/apt/sources.list.d/msprod.list - - # Update the package list - sudo apt-get update -y - - # Install the necessary packages with the EULA acceptance - sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc-dev - - # Add the sqlcmd directory to the PATH - echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc - + curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null + curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list + sudo apt-get update + sudo apt-get install -y mssql-tools unixodbc-dev + echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile + source ~/.bash_profile - run: sqlcmd -? - - run: sqlcmd -U sa -P "${{ secrets.MSSQL_SA_PASSWORD }}" -i test_data/sqlserver.test.out + - run: sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out # sqlplus set up init oracle db. - name: Install sqlplus required for loading .sql files From c9b5b30400637be79c345ae76a028b8e80e09408 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:39:07 +0000 Subject: [PATCH 03/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index a03c97fca..5ef1ea084 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -120,8 +120,8 @@ jobs: curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list sudo apt-get update sudo apt-get install -y mssql-tools unixodbc-dev - echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile - source ~/.bash_profile + echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc + export PATH="$PATH:/opt/mssql-tools/bin" - run: sqlcmd -? - run: sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out From 789227ef524289daf4992d98a63b8606457a2e1b Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:43:57 +0000 Subject: [PATCH 04/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 5ef1ea084..e91a26495 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -116,12 +116,11 @@ jobs: # init sql server with test_data - name: Install sqlcmd required for loading .sql files run: | - curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null + curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list sudo apt-get update - sudo apt-get install -y mssql-tools unixodbc-dev - echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc - export PATH="$PATH:/opt/mssql-tools/bin" + 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 From bd33942cc08f70e3d7b90554b9e93aef82f75f78 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:45:57 +0000 Subject: [PATCH 05/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index e91a26495..414af0b54 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -117,7 +117,7 @@ jobs: - 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/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list + curl https://packages.microsoft.com/config/ubuntu/22.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 From c5cd2b18ca3ff2d5305082025c0cb36cc432e8ec Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:51:00 +0000 Subject: [PATCH 06/15] change --- .../integration-tests-against-emulator.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 414af0b54..05f81f66f 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -113,16 +113,20 @@ jobs: - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_interleave_dump.test.out - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_foreignkeyaction_dump.test.out - # init sql server with test_data - 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/22.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 + sudo apt-get update + sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev + echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc + export PATH="$PATH:/opt/mssql-tools/bin" + - run: | + source ~/.bashrc + sqlcmd -? + - run: | + source ~/.bashrc + sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out # sqlplus set up init oracle db. - name: Install sqlplus required for loading .sql files From 354920e881274527eb1594a9d319876c49e98cee Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:55:01 +0000 Subject: [PATCH 07/15] change --- .../workflows/integration-tests-against-emulator.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 05f81f66f..d221487ec 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -113,6 +113,7 @@ jobs: - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_interleave_dump.test.out - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_foreignkeyaction_dump.test.out + - name: Install sqlcmd required for loading .sql files - name: Install sqlcmd required for loading .sql files run: | curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - @@ -121,11 +122,13 @@ jobs: sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc export PATH="$PATH:/opt/mssql-tools/bin" - - run: | - source ~/.bashrc + - name: Verify sqlcmd installation + run: | + export PATH="$PATH:/opt/mssql-tools/bin" sqlcmd -? - - run: | - source ~/.bashrc + - name: Run SQL commands + run: | + export PATH="$PATH:/opt/mssql-tools/bin" sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out # sqlplus set up init oracle db. From b3846353e83e14585137881ba99c246db5261e26 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 14:58:33 +0000 Subject: [PATCH 08/15] Change --- .github/workflows/integration-tests-against-emulator.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index d221487ec..4284a54c6 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -113,7 +113,6 @@ jobs: - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_interleave_dump.test.out - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_foreignkeyaction_dump.test.out - - name: Install sqlcmd required for loading .sql files - name: Install sqlcmd required for loading .sql files run: | curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - From c2b716e74af43bfae5e34ea15730002f0a4c4176 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 15:04:24 +0000 Subject: [PATCH 09/15] changes --- .github/workflows/integration-tests-against-emulator.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 4284a54c6..4fd73e6aa 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -130,11 +130,12 @@ jobs: export PATH="$PATH:/opt/mssql-tools/bin" sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out - # 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 rpm2cpio cpio + curl -O http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.112-13_amd64.deb + sudo dpkg -i libaio1_0.3.112-13_amd64.deb 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 From 5e42da9b288be57bfd52a3f580e7dfb16dd4c8ef Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 15:07:19 +0000 Subject: [PATCH 10/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 4fd73e6aa..1eaf9d570 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -133,8 +133,8 @@ jobs: - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio - curl -O http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.112-13_amd64.deb + sudo apt-get install -y rpm2cpio cpio wget + wget http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.112-13_amd64.deb sudo dpkg -i libaio1_0.3.112-13_amd64.deb 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 From 457daa62319490d31d117529e3be46c3ae025534 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 15:13:44 +0000 Subject: [PATCH 11/15] Change --- .github/workflows/integration-tests-against-emulator.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 1eaf9d570..68b194997 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -133,9 +133,7 @@ jobs: - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio wget - wget http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.112-13_amd64.deb - sudo dpkg -i libaio1_0.3.112-13_amd64.deb + sudo apt-get install -y rpm2cpio cpio wget libaio1 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 From 90885dc1074bf3adb3155d4091ebefa1bb3c9dc1 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 18:34:31 +0000 Subject: [PATCH 12/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 68b194997..66ba41738 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -133,7 +133,7 @@ jobs: - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio wget libaio1 + sudo apt-get install -y rpm2cpio cpio wget libaio 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 From be5475f030486dc128c8267bd55261f6dc4cf659 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 18:37:25 +0000 Subject: [PATCH 13/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 66ba41738..d0c591a4e 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -133,7 +133,7 @@ jobs: - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio wget libaio + sudo apt-get install -y rpm2cpio cpio wget libaio-dev 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 @@ -142,6 +142,7 @@ jobs: sudo cp -r usr/* /usr/ sudo sh -c 'echo /usr/lib/oracle/23/client64/lib/ > /etc/ld.so.conf.d/oracle.conf' sudo ldconfig + - run: sqlplus SYS/oracle@127.0.0.1:1521/xe as sysdba @test_data/oracle.test.out # create a spanner instance - uses: actions/setup-python@v4 From b0ea5cbfeb0506bd5b573d94b80768130b7818f9 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 18:47:22 +0000 Subject: [PATCH 14/15] change --- .github/workflows/integration-tests-against-emulator.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index d0c591a4e..490a6c644 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -133,7 +133,7 @@ jobs: - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio wget libaio-dev + sudo apt-get install -y rpm2cpio cpio wget libaio libaio-dev 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 @@ -142,6 +142,7 @@ jobs: sudo cp -r usr/* /usr/ sudo sh -c 'echo /usr/lib/oracle/23/client64/lib/ > /etc/ld.so.conf.d/oracle.conf' sudo ldconfig + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/23/client64/lib:/usr/lib:/lib:/usr/local/lib - run: sqlplus SYS/oracle@127.0.0.1:1521/xe as sysdba @test_data/oracle.test.out # create a spanner instance From f564cea69d942447b092ddaad87a5fa296a8b303 Mon Sep 17 00:00:00 2001 From: asthamohta Date: Thu, 19 Dec 2024 18:52:04 +0000 Subject: [PATCH 15/15] change --- .../integration-tests-against-emulator.yaml | 29 +++++++------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index 490a6c644..b0ae7f8e1 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -22,7 +22,7 @@ on: name: integration-tests-against-emulator jobs: integration-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: # set PostgreSQL related environment variables PGHOST: localhost @@ -113,27 +113,22 @@ jobs: - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_interleave_dump.test.out - run: mysql -v -P 3306 --protocol=tcp -u root -proot < test_data/mysql_foreignkeyaction_dump.test.out + # init sql server with test_data - 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/22.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list - sudo apt-get update - sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev - echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc - export PATH="$PATH:/opt/mssql-tools/bin" - - name: Verify sqlcmd installation - run: | - export PATH="$PATH:/opt/mssql-tools/bin" - sqlcmd -? - - name: Run SQL commands - run: | - export PATH="$PATH:/opt/mssql-tools/bin" - sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out - + 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 + + # sqlplus set up init oracle db. - name: Install sqlplus required for loading .sql files run: | sudo apt-get update - sudo apt-get install -y rpm2cpio cpio wget libaio libaio-dev + sudo apt-get install -y libaio1 rpm2cpio cpio 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 @@ -142,8 +137,6 @@ jobs: sudo cp -r usr/* /usr/ sudo sh -c 'echo /usr/lib/oracle/23/client64/lib/ > /etc/ld.so.conf.d/oracle.conf' sudo ldconfig - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/23/client64/lib:/usr/lib:/lib:/usr/local/lib - - run: sqlplus SYS/oracle@127.0.0.1:1521/xe as sysdba @test_data/oracle.test.out # create a spanner instance - uses: actions/setup-python@v4