Conversation
- Updated makepfxcert.ps1 to use improved FQCN lookup, and only install OpenSSL module it if isn't installed already. - Improved diatnostigs when running powershell scripts as part of certificate tests.
paulmedynski
left a comment
There was a problem hiding this comment.
Commentary for reviewers.
There was a problem hiding this comment.
Pull request overview
This PR updates the manual certificate-generation flow used by CertificateTestWithTdsServer on Ubuntu/Linux, aiming to reduce hangs and improve diagnostics when running the PowerShell-based certificate scripts in CI.
Changes:
- Update
makepfxcert.ps1FQDN lookup logic and avoid reinstalling the OpenSSL PowerShell module when already present. - Improve PowerShell script execution diagnostics by capturing and labeling stdout/stderr output in the manual test harness.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/Microsoft.Data.SqlClient/tests/ManualTests/makepfxcert.ps1 |
Adjusts host/FQDN resolution and makes OpenSSL module installation conditional; adds PowerShell tracing. |
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectionTestWithSSLCert/CertificateTestWithTdsServer.cs |
Refactors PowerShell invocation to use pwsh on non-Windows and improves captured output formatting. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3980 +/- ##
==========================================
- Coverage 75.22% 0 -75.23%
==========================================
Files 266 0 -266
Lines 42932 0 -42932
==========================================
- Hits 32294 0 -32294
+ Misses 10638 0 -10638
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Code changes:
These changes will help us diagnose what is hanging the script.
In the meantime, I have also updated our 1ES Ubuntu images to install the powershell OpenSSL module, so the script won't have to.
Testing