Skip to content

Commit 4e6bd71

Browse files
Upgrade SQL version for Pipelines (#3697)
## Why make this change? - Solves issue #3696 ## What is this change? Changed the `SqlLocalDB.msi` to use the new SQL 2025 version, and updated all the places where we set the SQL version to use SQL 2025. ## How was this tested? Using vector data type in follow up PR. If the SQL version is anything less than 2025, the pipeline would fail. #3677 ## Sample Request(s) N/A --------- Co-authored-by: Souvik Ghosh <souvikofficial04@gmail.com>
1 parent 571b6a3 commit 4e6bd71

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.pipelines/dwsql-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT License.
33

44
# DwSql Integration Testing Pipeline config is split into two jobs:
5-
# 1) LinuxTests -> Run SQL Server 2019 in Linux Docker Image
5+
# 1) LinuxTests -> Run SQL Server 2025 in Linux Docker Image
66
# 2) WindowsTests -> Run LocalDB preinstalled on machine
77

88
trigger:
@@ -159,8 +159,8 @@ jobs:
159159
# The variable setting on the pipeline UI sets the connection string
160160
# for the linux job above.
161161
data-source.connection-string: Server=(localdb)\MSSQLLocalDB;Persist Security Info=False;Integrated Security=True;MultipleActiveResultSets=False;Connection Timeout=30;TrustServerCertificate=True;
162-
InstallerUrl: https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi
163-
SqlVersionCode: '15.0'
162+
InstallerUrl: https://download.microsoft.com/download/dea8c210-c44a-4a9d-9d80-0c81578860c5/ENU/SqlLocalDB.msi
163+
SqlVersionCode: '17.0'
164164

165165
steps:
166166
- task: CmdLine@2

.pipelines/mssql-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT License.
33

44
# MsSql Integration Testing Pipeline config is split into parallel jobs:
5-
# 1) linux (disabled) -> Run SQL Server 2019 in Linux Docker Image
5+
# 1) linux (disabled) -> Run SQL Server 2025 in Linux Docker Image
66
# 2) windows_combined -> GraphQL, REST, Unit, HotReload, OpenApi, Auth, Telemetry, Caching on LocalDB
77
# 3) windows_configuration -> Configuration tests on LocalDB (with schema init)
88

@@ -176,8 +176,8 @@ jobs:
176176
# The variable setting on the pipeline UI sets the connection string
177177
# for the linux job above.
178178
data-source.connection-string: Server=(localdb)\MSSQLLocalDB;Persist Security Info=False;Integrated Security=True;MultipleActiveResultSets=False;Connection Timeout=30;TrustServerCertificate=True;
179-
InstallerUrl: https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi
180-
SqlVersionCode: '15.0'
179+
InstallerUrl: https://download.microsoft.com/download/dea8c210-c44a-4a9d-9d80-0c81578860c5/ENU/SqlLocalDB.msi
180+
SqlVersionCode: '17.0'
181181

182182
steps:
183183
- template: templates/mssql-test-steps.yml
@@ -199,8 +199,8 @@ jobs:
199199
# The variable setting on the pipeline UI sets the connection string
200200
# for the linux job above.
201201
data-source.connection-string: Server=(localdb)\MSSQLLocalDB;Persist Security Info=False;Integrated Security=True;MultipleActiveResultSets=False;Connection Timeout=30;TrustServerCertificate=True;
202-
InstallerUrl: https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi
203-
SqlVersionCode: '15.0'
202+
InstallerUrl: https://download.microsoft.com/download/dea8c210-c44a-4a9d-9d80-0c81578860c5/ENU/SqlLocalDB.msi
203+
SqlVersionCode: '17.0'
204204

205205
steps:
206206
- template: templates/mssql-test-steps.yml

scripts/start-mssql-server.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo "forceencryption = 1" >> $CERT_DIR/mssql.conf
2727
cat $CERT_DIR/mssql.conf
2828

2929
# Start mssql-server by volume mounting the cert, key and conf files.
30-
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=$DOCKER_SQL_PASS" -p 1433:1433 --name customerdb -h customerdb -v $CERT_DIR/mssql.conf:/var/opt/mssql/mssql.conf -v $CERT_DIR/mssql.pem:/var/opt/mssql/mssql.pem -v $CERT_DIR/mssql.key:/var/opt/mssql/mssql.key -d mcr.microsoft.com/mssql/server:2019-latest
30+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=$DOCKER_SQL_PASS" -p 1433:1433 --name customerdb -h customerdb -v $CERT_DIR/mssql.conf:/var/opt/mssql/mssql.conf -v $CERT_DIR/mssql.pem:/var/opt/mssql/mssql.pem -v $CERT_DIR/mssql.key:/var/opt/mssql/mssql.key -d mcr.microsoft.com/mssql/server:2025-latest
3131
sleep 30
3232
docker logs customerdb
3333

src/Service.Tests/dab-config.MsSql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4022,4 +4022,4 @@
40224022
]
40234023
}
40244024
}
4025-
}
4025+
}

0 commit comments

Comments
 (0)