Skip to content

Commit

Permalink
CI: disable MSSQL Docker based testing
Browse files Browse the repository at this point in the history
This has become unreliable lately with failures like in
https://github.com/OSGeo/gdal/actions/runs/10930480309/job/30377732865?pr=10840

```
+ docker exec -t gdal-sql1 /opt/mssql-tools/bin/sqlcmd -l 30 -S localhost -U SA -P DummyPassw0rd -Q CREATE DATABASE TestDB
Error response from daemon: container fba0406fd45fd855feea4090a0b46c321d70c1b4e000ba318ff1045c400d1b43 is not running
```

Although I can't reproduce the error locally
  • Loading branch information
rouault committed Oct 1, 2024
1 parent 0da1b64 commit c809b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ubuntu_22.04/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ set -ex
##################

# MSSQL: server side
docker rm -f gdal-sql1
docker pull mcr.microsoft.com/mssql/server:2017-latest
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=DummyPassw0rd' -p 1433:1433 --name gdal-sql1 -d mcr.microsoft.com/mssql/server:2017-latest
#docker rm -f gdal-sql1
#docker pull mcr.microsoft.com/mssql/server:2017-latest
#docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=DummyPassw0rd' -p 1433:1433 --name gdal-sql1 -d mcr.microsoft.com/mssql/server:2017-latest

# MySQL 8
docker rm -f gdal-mysql1
Expand Down Expand Up @@ -38,7 +38,7 @@ docker run --name gdal-mongo -p 27018:27017 -d mongo:4.4
sleep 10

# MSSQL
docker exec -t gdal-sql1 /opt/mssql-tools/bin/sqlcmd -l 30 -S localhost -U SA -P DummyPassw0rd -Q "CREATE DATABASE TestDB"
#docker exec -t gdal-sql1 /opt/mssql-tools/bin/sqlcmd -l 30 -S localhost -U SA -P DummyPassw0rd -Q "CREATE DATABASE TestDB"

# MySQL
docker exec gdal-mysql1 sh -c "echo 'CREATE DATABASE test; SELECT Version()' | mysql -uroot -ppasswd"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_22.04/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ AZURE_STORAGE_CONNECTION_STRING=${AZURITE_STORAGE_CONNECTION_STRING} python3 -c
# MongoDB v3
(cd autotest && MONGODBV3_TEST_PORT=27018 MONGODBV3_TEST_HOST=$IP $PYTEST ogr/ogr_mongodbv3.py)

(cd autotest && OGR_MSSQL_CONNECTION_STRING="MSSQL:server=$IP;database=TestDB;driver=ODBC Driver 17 for SQL Server;UID=SA;PWD=DummyPassw0rd" $PYTEST ogr/ogr_mssqlspatial.py)
#(cd autotest && OGR_MSSQL_CONNECTION_STRING="MSSQL:server=$IP;database=TestDB;driver=ODBC Driver 17 for SQL Server;UID=SA;PWD=DummyPassw0rd" $PYTEST ogr/ogr_mssqlspatial.py)

(cd autotest && $PYTEST)

0 comments on commit c809b45

Please sign in to comment.