Skip to content

fix(vscuse): Auto-fix DA_With_EK_Happy_Path#16374

Merged
xiaolang124 merged 3 commits into
devfrom
auto-fix/DA_With_EK_Happy_Path/2026-07-17-2
Jul 21, 2026
Merged

fix(vscuse): Auto-fix DA_With_EK_Happy_Path#16374
xiaolang124 merged 3 commits into
devfrom
auto-fix/DA_With_EK_Happy_Path/2026-07-17-2

Conversation

@xiaolang124

Copy link
Copy Markdown
Contributor

VscUse Auto-Fix Results

Plan: DA_With_EK_Happy_Path
Status: ✅ FIXED (attempt 3/8)
Initial Report: Link
Final Report: Link

Iteration Summary

# Fix Applied Result Report
1 Cleared stale dhash preconditions on step_5211ced2 (the "Preview in Copilot (Chr ❌ Failed Report
2 In group__debug_in_copilot_remote_DA_no_action_Copilot_License.json, trimmed ste ❌ Failed Report
3 Root cause is a new M365 Copilot "New design" showing a blocking "This agent is ✅ Passed Report

How to Review

  • Each commit represents one fix attempt for plans/DA_With_EK_Happy_Path.json
  • Compare the initial report with the final report to verify the fix
  • Check that coordinate/dhash changes are reasonable for the current VS Code layout

Changes Made to Test Plan

.../vscuse/vscode-test-cases/plans/DA_With_EK_Happy_Path.json  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
View diff
diff --git a/packages/tests/vscuse/vscode-test-cases/plans/DA_With_EK_Happy_Path.json b/packages/tests/vscuse/vscode-test-cases/plans/DA_With_EK_Happy_Path.json
index 866af2a..1ec1ad6 100644
--- a/packages/tests/vscuse/vscode-test-cases/plans/DA_With_EK_Happy_Path.json
+++ b/packages/tests/vscuse/vscode-test-cases/plans/DA_With_EK_Happy_Path.json
@@ -69,7 +69,7 @@
         "x": 354,
         "y": 88
       },
-      "description": "Select the \"Declarative Agent – Agents for Microsoft 365 Copilot\" option in the \"New Project\" dropdown within Visual Studio Code.",
+      "description": "Select the \"Declarative Agent \u2013 Agents for Microsoft 365 Copilot\" option in the \"New Project\" dropdown within Visual Studio Code.",
       "content_refs": [],
       "timeout": 30,
       "retry_count": 0,
@@ -153,7 +153,7 @@
       "agent": "code",
       "tool": "",
       "parameters": {
-        "sample": "=== Generated Script ===\nLanguage: bash\n\n```bash\n#!/bin/bash\n\nTARGET_DIR=\"/home/vscode/AgentsToolkitProjects/vscuse_app_XfRJT\"\nFILE_URL=\"https://raw.githubusercontent.com/ayachensiyuan/vscuse-resources/refs/heads/main/DA-EK/Document.docx\"\nFILE_NAME=\"Document.docx\"\n\n# Create target directory if it doesn't exist\nmkdir -p \"$TARGET_DIR\"\n\n# Download file with timeout\ncurl -L --max-time 120 \"$FILE_URL\" -o \"$TARGET_DIR/$FILE_NAME\"\n```\n\n=== Execution Results ===\nExit Code: 0\n\n=== STDERR ===\n% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n 11  695k   11 81911    0     0   138k      0  0:00:05 --:--:--  0:00:05  137k\n100  695k  100  695k    0     0   612k      0  0:00:01  0:00:01 --:--:--  612k\n\n✓ Script executed successfully"
+        "sample": "=== Generated Script ===\nLanguage: bash\n\n```bash\n#!/bin/bash\n\nTARGET_DIR=\"/home/vscode/AgentsToolkitProjects/vscuse_app_XfRJT\"\nFILE_URL=\"https://raw.githubusercontent.com/ayachensiyuan/vscuse-resources/refs/heads/main/DA-EK/Document.docx\"\nFILE_NAME=\"Document.docx\"\n\n# Create target directory if it doesn't exist\nmkdir -p \"$TARGET_DIR\"\n\n# Download file with timeout\ncurl -L --max-time 120 \"$FILE_URL\" -o \"$TARGET_DIR/$FILE_NAME\"\n```\n\n=== Execution Results ===\nExit Code: 0\n\n=== STDERR ===\n% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n 11  695k   11 81911    0     0   138k      0  0:00:05 --:--:--  0:00:05  137k\n100  695k  100  695k    0     0   612k      0  0:00:01  0:00:01 --:--:--  612k\n\n\u2713 Script executed successfully"
       },
       "description": "@code download file: https://raw.githubusercontent.com/ayachensiyuan/vscuse-resources/refs/heads/main/DA-EK/Document
... (truncated, see commit diff for full changes)

Generated by vscuse-auto-fix.yml | model: claude-opus-4.8

github-actions Bot added 3 commits July 17, 2026 08:53
…11ced2 (the "Preview in Copilot (Chrome)" filtered-dropdown click, x437/y73) inside group__debug_in_copilot_remote_DA_no_action_Copilot_License.json (plan_df4aaebb), which caused a 30s precondition timeout; the click coordinates are confirmed correct against the sibling group, and the post-fix step will recompute fresh dhash from the passing screenshot.
…on_Copilot_License.json, trimmed step_a5893dc9 (email-field click, x455/y351) from 3 dhash preconditions to only the known-good shared hash `dhash:455:351:0:10:0b28d0d9e7e6dae4` — the two extra hashes (incl. an all-zeros region) were stale and caused the 60s precondition timeout; the identical working step in sibling group group__debug_in_copilot_remote_DA_no_action.json uses only that single precondition.
…" showing a blocking "This agent is not installed" modal after the Preview-in-Copilot refresh; the remote group (plan_df4aaebb) lacked the dialog-dismiss step that the working local copilot-debug group has. I added a `key_press esc` step (continue_on_error:true, precondition_wait_timeout:3, dialog dhash at 715:462) into `group__debug_in_copilot_remote_DA_no_action_Copilot_License.json` immediately before the F5 refresh (step_cae4eca8), so the modal is dismissed and the F5 reload loads the agent — unblocking step_c6ca43c3.
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

❌ VscUse Test Plan — Tests failure

Why these tests: Selected 1 impacted test plan(s) changed in this PR (no product code modified).

Branch diff: auto-fix/DA_With_EK_Happy_Path/2026-07-17-2dev

Results: ✅ 0 passed · ❌ 1 failed (of 1 plans)

Plans run:

  • DA_With_EK_Happy_Path

Step Status
1️⃣ Build VSIX (CD) ✅ Done
2️⃣ Build Docker image ✅ Done
3️⃣ Run UI tests ❌ Tests failure (0/1 passed)

🎯 Actual UI test run
🔗 Full pipeline results
📊 Detailed test report

ℹ️ How were these tests selected?

GitHub Copilot (Claude Sonnet 4.6, high reasoning) analysed the PR title, description, and the diff between
auto-fix/DA_With_EK_Happy_Path/2026-07-17-2 and dev
to pick the most relevant test plans from packages/tests/vscuse/Index.md.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

E2E Test Selection — AI Selected

Why these tests: All changed files are under packages/tests/vscuse/, which maps to rule 8 (vscuse UI tests, not e2e tests) — return empty array.

Cases selected (0):


View pipeline run

Need to run more tests?

Comment on this PR:

  • /e2e-run ./path/to/test.tests.ts — add specific cases to AI selection
  • /e2e-run-all — run all e2e cases

Then re-run the workflow.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.61%. Comparing base (5d42113) to head (fd9ebcd).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev   #16374   +/-   ##
=======================================
  Coverage   87.61%   87.61%           
=======================================
  Files         643      643           
  Lines       33725    33725           
  Branches     7919     7919           
=======================================
  Hits        29547    29547           
  Misses       2369     2369           
  Partials     1809     1809           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xiaolang124

Copy link
Copy Markdown
Contributor Author

Rerun successfully.
image

@xiaolang124
xiaolang124 merged commit c776ac4 into dev Jul 21, 2026
44 of 48 checks passed
@xiaolang124
xiaolang124 deleted the auto-fix/DA_With_EK_Happy_Path/2026-07-17-2 branch July 21, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants