Skip to content

Commit 1e0ed44

Browse files
committed
chore: replace sqlsrv docker image
Signed-off-by: Alexandre Rulleau <[email protected]>
1 parent 667f692 commit 1e0ed44

4 files changed

Lines changed: 2 additions & 85 deletions

File tree

.gitlab/check_sqlsrv.sh

Lines changed: 0 additions & 68 deletions
This file was deleted.

.gitlab/generate-common.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@ function dockerhub_login() {
206206
ACCEPT_EULA: Y
207207
MSSQL_SA_PASSWORD: Password12!
208208
MSSQL_PID: Developer
209-
MSSQL_TCP_PORT: 1433
210-
MSSQL_AGENT_ENABLED: "false"
211-
MSSQL_MEMORY_LIMIT_MB: 2048
212-
MSSQL_ENABLE_HADR: 0
213-
MSSQL_LCID: 1033
214-
MSSQL_COLLATION: SQL_Latin1_General_CP1_CI_AS
215-
MSSQL_DATA_DIR: /var/opt/mssql/data
216-
MSSQL_LOG_DIR: /var/opt/mssql/log
217-
MSSQL_BACKUP_DIR: /var/opt/mssql/data
218209

219210
googlespanner:
220211
name: registry.ddbuild.io/images/mirror/cloud-spanner-emulator/emulator:1.5.25

.gitlab/generate-tracer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ function after_script($execute_dir = ".", $has_test_agent = false) {
2222
<?php if ($has_test_agent): ?>
2323
- .gitlab/check_test_agent.sh
2424
<?php endif; ?>
25-
- |
26-
if [[ "${MAKE_TARGET:-}" == *"sqlsrv"* ]]; then
27-
.gitlab/check_sqlsrv.sh
28-
fi
2925
- .gitlab/collect_artifacts.sh "<?= $execute_dir ?>"
3026
- .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:src"
3127
<?php

tests/Integrations/SQLSRV/SQLSRVTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ public static function ddSetUpBeforeClass()
3939

4040
private static function waitForSqlServerReady()
4141
{
42-
// SQL Server 2022 containers can take up to 2 minutes to fully initialize
43-
$maxAttempts = 120;
42+
$maxAttempts = 30;
4443
$attempt = 0;
4544
$conn = false;
4645

@@ -53,13 +52,12 @@ private static function waitForSqlServerReady()
5352
'Database' => self::$db,
5453
'UID' => self::$user,
5554
'TrustServerCertificate' => true,
56-
'LoginTimeout' => 1,
5755
]
5856
);
5957

6058
if ($conn === false) {
6159
if ($attempt < $maxAttempts) {
62-
usleep(1000000); // 1 second between attempts
60+
usleep(500000);
6361
}
6462
}
6563
}

0 commit comments

Comments
 (0)