ci: expand SQL Server test matrix to include 2017 and 2025#314
Open
dlevy-msft-sql wants to merge 1 commit intomicrosoft:mainfrom
Open
ci: expand SQL Server test matrix to include 2017 and 2025#314dlevy-msft-sql wants to merge 1 commit intomicrosoft:mainfrom
dlevy-msft-sql wants to merge 1 commit intomicrosoft:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR expands the GitHub Actions CI test matrix to include additional SQL Server versions for broader compatibility testing, specifically adding SQL Server 2017 and SQL Server 2025.
Changes:
- Expand test matrix from 2 SQL Server versions (2019, 2022) to 4 versions (2017, 2019, 2022, 2025)
- Add conditional logic to handle SQL Server 2017's self-signed certificate issues with Go 1.23+
- Update HOST variable from "." to "localhost" for Docker networking compatibility
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #314 +/- ##
==========================================
+ Coverage 75.36% 78.55% +3.18%
==========================================
Files 34 34
Lines 6597 6598 +1
==========================================
+ Hits 4972 5183 +211
+ Misses 1337 1136 -201
+ Partials 288 279 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e8829db to
a50dc00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ci: expand SQL Server test matrix to include 2017 and 2025
Overview
Expands the CI test matrix to include additional SQL Server versions for broader compatibility testing.
Changes
CI Matrix Expansion
mcr.microsoft.com/mssql/server:2017-latest)mcr.microsoft.com/mssql/server:2025-latest)mssql-tools18sqlcmd for consistent SQL Server connectivity checksTest Cleanup Improvements
DROP PROCEDUREstatements inqueries_go19_test.goto useIF EXISTSsyntaxtvp_go19_db_test.gopatternsConnection String Parsing Enhancements
!= ""→!= "")net.JoinHostPortfor proper IPv6 address formatting inURL()method[::1]:1433)Testing
New Tests
TestURLWithIPv6Address- Validates IPv6, IPv4, and hostname formatting in URL generationExisting Tests
Files Changed
.github/workflows/pr-validation.ymlmsdsn/conn_str.gonet.JoinHostPortmsdsn/conn_str_test.goTestURLWithIPv6Addressfor IPv6 URL validationqueries_go19_test.gotvp_go19_db_test.goCompatibility Notes
DROP PROCEDURE IF EXISTSrequires SQL Server 2016+GODEBUG=x509negativeserial=1due to self-signed certificate issues with Go 1.23+trustServerCertificate=truefor Docker imageSplit from #306 for easier review