Repository navigation
Fix AppHost tree E2E row recycling race - #20400
Conversation
Temporary investigation for #20335. Preserve every existing WebDriver read, wait and assertion; keep normal CI enabled. Co-authored-by: Copilot App <[email protected]>
Retargeting the investigation draft to main does not emit the synchronize event required by ci.yml. Preserve the diagnostics-only tree and start normal PR CI. Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20400Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20400" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The PR is intentionally incomplete and must replace temporary diagnostics with a verified fix before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: None
What changed in this PR
Adds temporary E2E logging to investigate the Windows AppHost tree flake reported in #20335 without changing extension behavior.
Changes:
- Logs the expected workspace AppHost label before lookup.
- Logs successful completion of the existing label assertion.
| File | Description |
|---|---|
extension/src/test-e2e/appHostTree.e2e.test.ts |
Adds temporary baseline diagnostics around the flaky assertion. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Capture exact tree labels and parent-child paths in one browser snapshot, and revalidate handle-based lookups. Cover recycled rows, stale reads, hierarchy boundaries, and lifecycle errors. Co-authored-by: Copilot App <[email protected]>
Retain the verified parent candidate exactly for official fix CI on the existing pull request. Co-authored-by: Copilot App <[email protected]>
Tests selector0 / 99 PR test projects · 2 PR jobs, from 4 changed files. Selected PR test projects (0 / 99)none — no PR-gated .NET test projects run for this change. Selected PR jobs (2)
How these were chosen — grouped by what changedJob reasons
Selection computed for commit |
James Newton-King (JamesNK)
left a comment
There was a problem hiding this comment.
Reviewed the tree-row recycling fix and focused regression coverage. No blocking issues found.
|
✅ No documentation update needed. Step 5 branch taken: Triggered signals: none ( Allowlist justification (
No |
Description
Fixes #20335
ExTester can recycle a tree row between lookup and
getLabel(), causing the AppHost discovery test to readDeploy AppHostinstead ofAspireE2E.AppHost.csproj.Capture labels and parent/child relationships in one snapshot for read-only assertions, revalidate handle-based lookups, and add deterministic regression coverage. Production extension behavior is unchanged.
Validation
apphost-treeandtree-actionstests without retries.The natural race was not reproduced in two pre-fix Windows CI runs; post-fix Windows
apphost-treepassed once.Used the fix-flaky-test skill, adapted for ExTester.
Checklist
<remarks />and<code />elements on your triple slash comments?