You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* CHORE: Make ADO pipelines public
* added resources
* changed endpoint
* disabled self checkout
* disabled none checkout
* commented out explicit service connection mapping
* commented out explicit service connection mapping
* restored ADO SSO connection
* checking reasons and where builds are coming from
* recreated pipeline, cleanup done
* readded resources
* cleanup of resources
* triggering
* triggering
* triggers changed
* removed echo statements
* waiting for sql server to start
* waiting for sql server to start
* test pass issues
* test pass issues
* test pass issues
* test pass issues
* test pass issues
* increase timeout for sql server
* add a test step
* add a retry auth step
* pull latest sql server and add extended retry for auth
* switch to sql server 2019
* forcefully redirect localhost
* cleanup and ready for review
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
264
+
265
+
# Wait for SQL Server to be ready with increased timeout
266
+
echo "Waiting for SQL Server to start..."
267
+
268
+
# Extended wait for the container to be running and SQL Server service to be listening
269
+
for i in {1..60}; do
270
+
if docker logs $(docker ps -q --filter ancestor=mcr.microsoft.com/mssql/server:2022-latest) 2>&1 | grep -q "SQL Server is now ready for client connections"; then
271
+
echo "SQL Server service is ready after $i attempts ($(($i * 3)) seconds)"
272
+
break
273
+
fi
274
+
echo "Attempt $i: Waiting for SQL Server service to be ready, checking again in 3 seconds..."
275
+
sleep 3
276
+
done
277
+
278
+
# Increased wait to ensure full initialization for database operations
279
+
echo "Waiting additional 60 seconds for full SQL Server initialization..."
280
+
sleep 60
281
+
282
+
# Verify we can connect using a simple network test first
283
+
echo "Testing SQL Server connectivity..."
284
+
if ! timeout 30 bash -c 'until echo > /dev/tcp/localhost/1433; do sleep 1; done'; then
0 commit comments