Isolate AKS destroy tests from the real Helm runner - #20057
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20057Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20057" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved blocking issues were identified.
Pull request overview
This test-only PR isolates AKS destroy tests from machine-installed Helm by using FakeHelmRunner.
Changes:
- Registers the fake Helm runner in both tests.
- Verifies version probing and uninstall arguments, including the isolated kubeconfig.
File summaries
| File | Summary |
|---|---|
tests/Aspire.Hosting.Azure.Kubernetes.Tests/AzureKubernetesInfrastructureTests.cs |
Updates AKS destroy tests with isolated Helm execution and argument assertions. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Tests selector1 / 99 PR test projects · 0 PR jobs · 0 advisory-only targets, from 7 changed files. Selected PR test projects (1 / 99)
Selected PR jobs (0)none Advisory workflow impact (0)none How these were chosen — grouped by what changed🧪 🧪 🧪 🧪 🧪 🧪 🧪 Job reasonsnone Selection computed for commit |
|
✅ No documentation update needed. Step 5 branch taken: Triggered signals (1): Why there is nothing to document:
No documentation PR is warranted for this change. |
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
Description
Two AKS destroy-pipeline tests timed out in Windows CI. They fake Azure CLI responses and persist a Helm release, but leave the real Helm runner registered. Destroy therefore invokes a machine-installed Helm against a fake kubeconfig instead of remaining isolated from external tools.
Register the existing
FakeHelmRunnerin both tests and assert the Helm version probe and uninstall arguments, including the generated isolated kubeconfig path. Keep the existing 10-second timeout and the real destroy-pipeline target.This is a test-only fix, independent of the Dashboard AOT work in #19565. The affected tests originated in #19243. This branch contains only this fix, cherry-picked onto latest
main(9c2af96f91).Validation
Aspire.Hosting.Azure.Kubernetes.Teststests passed on the latest-main branch (net8.0), excluding quarantined and outerloop tests.git diff --checkpassed.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?