Repository navigation
Reconfigure deployment E2E tests: centralus AKS region, quota self-healing, and subscription-provisioning job - #18854
Conversation
Adds a trailing blank line to the deployment E2E tests README so that a PR can be opened to exercise the reconfigured /deployment-test workflow. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18854Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18854" |
|
/deployment-test |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR makes a minor formatting adjustment to the end-to-end deployment test README.
Changes:
- Adds a trailing blank line at the end of the README.
Show a summary per file
| File | Description |
|---|---|
| tests/Aspire.Deployment.EndToEnd.Tests/README.md | Adds a final newline/blank line to improve file formatting. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
|
🚀 Deployment tests starting on PR #18854... This will deploy to real Azure infrastructure. Results will be posted here when complete. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
This comment has been minimized.
This comment has been minimized.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
…tests The CI workflow injects Azure__Location=westus3 at the job level. On Linux env vars are case-sensitive, so it coexists with the AZURE__LOCATION the tests export, and .NET configuration binds keys case-insensitively, so the inherited westus3 could win over the test's intended region. Unset it first at every site that exports a non-westus3 region (the centralus AKS tests, AksBlazorRedis in australiaeast, and AcaManagedRedis in eastus), matching the existing pattern in AcaDeploymentErrorOutputTests. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
The AKS deployment tests now deploy to centralus with Standard_D2s_v5. Update the E2E README (split-region quota guidance plus centralus StandardDSv5Family and managed-cluster requirements), the aks-support.md Gateway test reference, and the workflow's az quota show example so the docs match the current configuration. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
This comment has been minimized.
This comment has been minimized.
Register Microsoft.Compute alongside the other providers so the AKS compute vCPU quota (StandardDSv5Family) can be read and requested on a fresh subscription; without it the quota step silently skipped that target. Submit az quota create/update with --no-wait (and a shorter timeout) so the setup no longer blocks for minutes on a manual-review or throttled request. That pre-test delay could outlive the CI OIDC token window and make every matrix job's IsAzureAuthAvailable gate fail before deployment. This also drops the post-submit limit re-read whose "|| echo unknown" fallback was unreachable behind read_limit's "|| true". Narrow the step comment to state it self-heals only the configured centralus AKS quotas; westus3 Container Apps / App Service and australiaeast DASv4 remain documented manual quota requests. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Review details
Comments suppressed due to low confidence (3)
tests/Aspire.Deployment.EndToEnd.Tests/FrontDoorDeploymentTests.cs:185
- The method-level cancellation token still expires 40 minutes after the test starts, but the deployment phase can wait 30 minutes and this endpoint loop can now consume about 12 more, before counting project creation and package setup. The outer token can therefore cancel this new 15-minute wait before the slow-but-successful path completes. Increase the overall test timeout (or budget all phases from one shared deadline) along with this phase timeout.
// running for ~12 minutes (18 * (30s + 10s)) before it either succeeds or fails fast via
// `exit 1`. The outer success-prompt wait must exceed that budget; a 5-minute wait would
// abandon a still-running (and often eventually-successful) loop and fail the test even
// though the deployment is healthy. This was the cause of consistent FrontDoor timeouts.
await auto.WaitForSuccessPromptAsync(counter, TimeSpan.FromMinutes(15));
tests/Aspire.Deployment.EndToEnd.Tests/AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs:117
- This comment is stale: the AGC pieces already exist on the base branch, while this PR only changes the SKU/region in this block. Describe the current injection behavior without saying that “this PR adds” it.
// this PR adds. Inject before builder.Build().Run();. Use Standard_D2s_v5 to match
.github/workflows/deployment-tests.yml:296
- This subscription-level setup is inside
deploy-test, whose matrix runs every test class in parallel. On a fresh subscription—the case this step targets—every matrix job will concurrently register the same missing providers and later submit the same quota requests, causing the Azure throttling this workflow is trying to avoid. Run provider/quota preparation once in a prerequisite job and make the matrix depend on it.
- name: Register Azure resource providers
- Files reviewed: 20/20 changed files
- Comments generated: 3
- Review effort level: Medium
Move the one-time Azure subscription preparation (resource-provider registration and quota self-healing) out of the deploy-test matrix and into a dedicated provision-subscription job that runs once before the matrix fans out. Previously every matrix entry issued the same subscription-level registration writes and Microsoft.Quota requests concurrently, which throttled each other on a cold subscription and aged each job's OIDC token before it deployed. The new job depends only on enumerate (so it runs in parallel with build), is gated by the same matrix-non-empty check, and is marked continue-on-error so best-effort prep never fails the overall run. deploy-test now depends on it and uses an !cancelled() gate so a prep hiccup never blocks the tests; each matrix job still performs its own OIDC login immediately before deploying. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Review details
Comments suppressed due to low confidence (5)
.github/workflows/deployment-tests.yml:195
- The PR description says this is a whitespace-only validation PR with no functional changes, but this diff adds subscription provisioning/quota logic, moves AKS tests to another region/SKU, changes a timeout, and disables a deployment test. Update the title, description, and checklist to describe the actual scope so reviewers and workflow operators do not treat these changes as disposable validation-only edits.
provision-subscription:
tests/Aspire.Deployment.EndToEnd.Tests/AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs:118
- This committed comment describes branch evolution (
this PR adds) rather than the current test behavior, so it becomes stale immediately after merge. Describe the injection directly.
// The AGC ingress profile + ApplicationLoadBalancer + Gateway/HTTPRoute pieces that
// this PR adds. Inject before builder.Build().Run();. Use Standard_D2s_v5 to match
// the other AKS deployment tests' SKU/region quota story.
tests/Aspire.Deployment.EndToEnd.Tests/AksWithAzureResourcesDeploymentTests.cs:138
- Use the established family capitalization
DSv5.
// AKS environment with Dsv5 SKUs
tests/Aspire.Deployment.EndToEnd.Tests/README.md:71
- The common-request checklist also omits Total Regional vCPUs. Following this list can still leave AKS deployments blocked even when the DSv5 family quota is 200, because Azure checks both tiers.
- **AKS `StandardDSv5Family` vCPUs**: Request 200 (dedicated) in centralus
.github/workflows/deployment-tests.yml:423
- This still describes quota requests running in every matrix job and aging the tests' OIDC token, but quota setup now runs once in
provision-subscription, before matrix jobs mint their own credentials. Rewrite the rationale for the current prerequisite-job design so future changes are not constrained by an obsolete failure mode.
# synchronous call blocks for minutes when the request routes to manual review, and with
# every matrix job hitting Microsoft.Quota at once they throttle each other into long
# backoffs; that pre-test delay can outlive the CI OIDC token window and make the tests'
# own auth gate (AzureAuthenticationHelpers.IsAzureAuthAvailable) fail matrix-wide before
- Files reviewed: 20/20 changed files
- Comments generated: 4
- Review effort level: Medium
Fix the centralus AKS quota self-healing and the comments/docs around it: - Replace the Microsoft.ContainerService/ManagedClusters QUOTA_TARGETS row with a Microsoft.Compute cores (Total Regional vCPUs) row. az quota (the Microsoft.Quota API) does not expose Microsoft.ContainerService, so that row could never self-heal, while Azure enforces the regional vCPU total independently of the StandardDSv5Family quota — a node pool needs headroom in both. Document the managed-cluster count as a manual portal/support request. - Refresh the resource-provider bounded-wait and quota --no-wait rationale now that both run once in the provision-subscription prerequisite job rather than inside every matrix entry: drop the credential-aging and per-matrix-throttling justifications, which no longer apply, and keep the eventual-consistency and async-submission reasons that still do. - Fix a stale StandardDsv6Family example, describe the injected AGC/Gateway pieces as current behavior instead of "this PR adds", document the Total Regional vCPUs requirement in the E2E README and rotation checklist, and use the established DSv5 capitalization. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
There was a problem hiding this comment.
Review details
Comments suppressed due to low confidence (2)
tests/Aspire.Deployment.EndToEnd.Tests/FrontDoorDeploymentTests.cs:185
- The new 15-minute verification budget no longer fits inside this test's 40-minute lifetime. This method can already spend up to 30 minutes waiting for deployment (line 151), plus project/package setup, before entering a loop that may need about 12 minutes; the cancellation token passed to
terminal.RunAsyncexpires at 40 minutes and can terminate the terminal before this wait succeeds. Increases_testTimeoutto cover setup + deployment + endpoint verification (similar to the explicit aggregate budgeting inAppServiceReactDeploymentTests.cs:15-18).
await auto.WaitForSuccessPromptAsync(counter, TimeSpan.FromMinutes(15));
.github/workflows/deployment-tests.yml:195
- The PR metadata says this is a whitespace-only, validation-only change with no functional changes and is not intended to merge, but this new prerequisite job materially changes workflow execution, provider registration, and quota handling; the PR also changes deployment regions/SKUs and disables a test. Update the title, description, and checklist to describe the actual functional scope and intended merge disposition, or remove these functional changes if the validation-only description is authoritative.
provision-subscription:
- Files reviewed: 20/20 changed files
- Comments generated: 0 new
- Review effort level: Medium
This comment has been minimized.
This comment has been minimized.
The endpoint verification loop checked every external ACA endpoint sequentially with a per-endpoint retry budget, so total runtime grew with the number of endpoints and could exceed the 15-minute outer wait. Share a single ~11-minute deadline across all endpoints (each still gets at least one attempt) so the worst case stays bounded regardless of endpoint count. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
|
/deployment-test |
|
🚀 Deployment tests starting on PR #18854... This will deploy to real Azure infrastructure. Results will be posted here when complete. |
There was a problem hiding this comment.
Review details
Comments suppressed due to low confidence (2)
tests/Aspire.Deployment.EndToEnd.Tests/README.md:34
- “Self-healed by the workflow” overstates what the workflow does. The new quota commands use
--no-wait, and the workflow explicitly notes that requests can require manual review and may not be granted before the matrix starts (deployment-tests.yml:349-352,418-424). During subscription rotation, an operator could follow this table and still launch every AKS job against the old limit. Document these as best-effort asynchronous requests and require verification of the effective limit before running the suite.
| `StandardDSv5Family` vCPUs (`Microsoft.Compute`) | `centralus` | 200 (dedicated) | System and workload node pools use `Standard_D2s_v5`. Self-healed by the workflow. |
| Total Regional vCPUs (`Microsoft.Compute`, `cores`) | `centralus` | 200 (dedicated) | Azure enforces this regional total independently of the family quota, so node pools need headroom in both. Self-healed by the workflow. |
tests/Aspire.Deployment.EndToEnd.Tests/README.md:331
- This checklist also says the workflow self-heals the compute quotas, but it only submits asynchronous best-effort requests that can await manual approval. A newly rotated subscription can therefore start the matrix before either 200-vCPU limit is effective. Require operators to verify both effective limits after the workflow request.
6. Ensure regional quotas per [Azure Subscription Quota Requirements](#azure-subscription-quota-requirements): Container Apps and App Service in `westus3`, and AKS in `centralus` (`StandardDSv5Family` vCPUs, Total Regional vCPUs, and managed clusters). The CI workflow self-heals the compute vCPU quotas (family and regional total); the managed-cluster count is not covered by the Microsoft.Quota API, so a new subscription may still need a manual portal/support request.
- Files reviewed: 20/20 changed files
- Comments generated: 1
- Review effort level: Medium
This comment has been minimized.
This comment has been minimized.
The README ended with a trailing blank line, which markdownlint flags as MD012/no-multiple-blanks at end of file. End the file with a single newline. Co-authored-by: Copilot App <[email protected]> Copilot-Session: f9f3c795-6619-43cd-b447-6e0824cb38c1
Tests selector (audit mode)The full test matrix and all jobs still run in audit mode. The tests and jobs below are what selective CI would run under enforcement. 2 / 100 test projects · 1 job, from 18 changed files. Selected test projects (2 / 100)
Selected jobs (1)
How these were chosen — grouped by what changed📄 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 Job reasons
Selection computed for commit |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
✅ No documentation update needed. docs_optional → build_or_ci_only / test_only No triggered signals ( All 20 changed files fall into non-user-facing categories:
The changes harden deployment E2E CI (AKS region, quota self-healing, subscription-provisioning job) with no new public API, CLI flags, integrations, or user-facing behavior. No documentation update is needed on |
Description
Hardens the deployment E2E test workflow (
.github/workflows/deployment-tests.yml) and the tests undertests/Aspire.Deployment.EndToEnd.Tests/so the suite runs reliably in CI. Key changes:provision-subscriptionjob registers the required Azure resource providers and ensures the compute quotas the tests need, once per run, before thedeploy-testmatrix. It iscontinue-on-errorso best-effort prep never blocks the tests, and each job mints its own OIDC token.centralus. AKS-based tests pincentralus(whereStandard_D2s_v5capacity is available); other tests continue to use the defaultwestus3. Quota targets cover bothStandardDSv5Familyand Total Regional vCPUs (cores).unsetany inheritedAzure__Locationbefore exportingAZURE__LOCATION, because Linux preserves both env-var casings.[ActiveIssue]for a known bug.VnetSqlServerConnectivityDeploymentTestsis disabled pending #18892 (SQL private-endpoint deployment).tests/Aspire.Deployment.EndToEnd.Tests/README.mddocuments the quota targets (including that AKS ManagedClusters quota is not exposed by the Microsoft.Quota API) and a credential-rotation checklist.Validated end to end by dispatching the workflow via the
/deployment-testcommand.Checklist