Skip to content

[6.1.5 Cherry-pick] Add SQL Server readiness checks to Windows pipeline setup (#4172)#4186

Merged
paulmedynski merged 4 commits intorelease/6.1from
dev/automation/pr-4172-to-6.1.5
Apr 14, 2026
Merged

[6.1.5 Cherry-pick] Add SQL Server readiness checks to Windows pipeline setup (#4172)#4186
paulmedynski merged 4 commits intorelease/6.1from
dev/automation/pr-4172-to-6.1.5

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Apr 13, 2026

Cherry-pick of #4172 to release/6.1

This PR ports the SQL Server readiness checks from #4172 to the release/6.1 branch for the 6.1.5 release.

Why this was not a straightforward cherry-pick

Commit 8ddc464d8 (#4172) could not be cherry-picked directly because configure-sql-server-win-step.yml had diverged significantly between main and release/6.1. Three intermediate commits on main changed this file before #4172:

Each of those commits touched many other pipeline files that also diverged, making full cherry-picks impractical (8-12 file conflicts each).

Resolution approach

  1. Port saPassword plumbing from Fix forked repo local SQL Server passwords #3950 — Manually applied the secret generation and password threading changes across 9 files:

    • Added eng/pipelines/stages/generate-secrets-ci-stage.yml (new)
    • Updated dotnet-sqlclient-ci-core.yml — secrets stage, additionalDependsOn, IsFork casing fixes
    • Updated ci-run-tests-stage.ymlsecrets_stage dependency, saPassword variable
    • Updated ci-run-tests-job.ymlsaPassword parameter, removed per-job password generation
    • Updated configure-sql-server-step.ymlpasswordsaPassword
    • Updated update-config-file-step.ymlsaPassword parameter, $(Password) setter step
    • Updated stress-tests-ci-stage.ymlsecrets_stage dependency, step-type sqlSetupStep
    • Updated stress-tests-ci-job.ymlsqlSetupStep changed from string to step type
    • Updated run-tests-package-reference-job.yml — passes saPassword to config step
  2. Align configure-sql-server-win-step.yml — Replaced the file contents with the state from main just prior to Add SQL Server readiness checks to Windows pipeline setup #4172 (commit e94bb69a1), incorporating the formatting, indentation, and parameter changes from Stabilize macOS agent setup #3928, Fix SupportsIntegratedSecurity Test Configuration #3887, and Fix forked repo local SQL Server passwords #3950.

  3. Clean cherry-pick of Add SQL Server readiness checks to Windows pipeline setup #4172 — Applied without conflicts, adding the FileStream retry loop and post-restart SQL Server readiness polling.

Commits

Commit Description
09645f083 Original placeholder noting manual resolution needed
0b8a1474d Port secret generation and saPassword plumbing from #3950
73ecafad8 Align configure-sql-server-win-step.yml with main (pre-#4172)
b3c3d5a04 Cherry-pick of #4172 (Add SQL Server readiness checks)

Checklist

To resolve, run:  git cherry-pick 8ddc464
@github-actions github-actions Bot added this to the 6.1.5 milestone Apr 13, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Apr 13, 2026
Manually apply the password-related changes from commit e94bb69
(Fix forked repo local SQL Server passwords (#3950)) to the release/6.1
branch. The full cherry-pick conflicted across 12+ files due to
divergence, so only the saPassword pipeline plumbing was ported:

- Add generate-secrets-ci-stage.yml to produce a random SA password
- Replace per-job password generation with stage-level saPassword variable
- Thread saPassword through ci-run-tests-stage, ci-run-tests-job,
  configure-sql-server-step, and update-config-file-step
- Update stress-tests-ci-stage/job to pass saPassword via step objects
- Fix System.PullRequest.IsFork casing in dotnet-sqlclient-ci-core.yml
- Remove isFork guard from enclave AADServicePrincipalSecret
Port formatting, parameter, and indentation changes from PRs #3928, #3887,
and #3950 to this single file so that cherry-picking #4172 applies cleanly.
@paulmedynski paulmedynski requested a review from a team as a code owner April 13, 2026 16:41
@paulmedynski paulmedynski changed the title [6.1.5 Cherry-pick - CONFLICTS] Add SQL Server readiness checks to Windows pipeline setup [6.1.5 Cherry-pick] Add SQL Server readiness checks to Windows pipeline setup (#4172) Apr 13, 2026
@paulmedynski paulmedynski moved this from To triage to In progress in SqlClient Board Apr 13, 2026
@paulmedynski
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@paulmedynski paulmedynski enabled auto-merge (squash) April 13, 2026 21:12
@paulmedynski paulmedynski merged commit 62a84c2 into release/6.1 Apr 14, 2026
276 checks passed
@paulmedynski paulmedynski deleted the dev/automation/pr-4172-to-6.1.5 branch April 14, 2026 09:53
@github-project-automation github-project-automation Bot moved this from In progress to Done in SqlClient Board Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants