Skip to content

Commit 62ea0fe

Browse files
author
DavidQ
committed
Stabilize storage, preview, workspace, and object vector targeted fixes while preserving Workspace manifest contract - PR_26133_099-storage-preview-workspace-followup
1 parent 56571f0 commit 62ea0fe

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# PR_26133_099-storage-preview-workspace-followup Report
2+
3+
## Scope
4+
5+
- Targeted tool: Preview Generator V2.
6+
- Implementation scope used: `tools/preview-generator-v2/*` and `docs/dev/reports/*`.
7+
- `common/*` was allowed by the PR, but no `common` directory exists in this repo checkout and no common changes were needed.
8+
- Workspace manifest/schema structures were not modified.
9+
10+
## Issue Fixed
11+
12+
Before this follow-up, the repo-root-unavailable failure kept the selected repo display label in `repoRootDisplayPath`. The error text was actionable, but downstream path logs could still treat the label as if it were a resolved repo-root path.
13+
14+
The fix keeps `repoRootDisplayPath` empty when no absolute repo root is available. The selected repo label and required action remain in the failure message.
15+
16+
## Playwright Impact
17+
18+
Playwright impacted: Yes.
19+
20+
Validated behavior:
21+
- Preview Generator V2 still logs actionable output-path resolution failures.
22+
- Preview Generator V2 still logs actionable repo-root selection failures without fallback.
23+
- Workspace V2 regression coverage remains green.
24+
25+
Expected pass behavior:
26+
- Missing repo-root absolute path logs selected repo label and required action.
27+
- Full absolute output path remains unavailable.
28+
- No `OK WRITE` is logged for unresolved output paths.
29+
30+
Expected fail behavior:
31+
- If the repo-root label is treated as a resolved path, path-resolution logs would show a fake repo root instead of unavailable.
32+
33+
## Validation
34+
35+
- PASS: `node --check tools/preview-generator-v2/PreviewGeneratorV2App.js`
36+
- PASS: `npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "Preview Generator V2 (output path resolution failures|repo-root selection failures without fallback)"` (2/2)
37+
- PASS: `npm run test:workspace-v2` (56/56)
38+
- SKIPPED: full samples smoke test, per PR instruction and project testing rules; this change is limited to Preview Generator V2 path-state failure handling.
39+
40+
## Manual Validation
41+
42+
1. Open Preview Generator V2 without an absolute repo-root path but with a selected repo label.
43+
2. Run generation for a game preview target.
44+
3. Confirm the log shows the selected repo label and required action to reselect the repo root.
45+
4. Confirm the full absolute output path is `(unavailable)` and no `OK WRITE` appears.

tools/preview-generator-v2/PreviewGeneratorV2App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ function selectedRepoRootPathState() {
481481
return {
482482
ok: false,
483483
message: `Repo root path is unavailable; cannot resolve a full absolute output path. Selected repo label: ${displayLabel}; handle root name: ${handleName || "(unavailable)"}; session key checked: ${WORKSPACE_REPO_REFERENCE_SESSION_KEY}. Required action: select the repo root folder again in Workspace Manager V2 or Pick Repo before generating previews.`,
484-
repoRootDisplayPath: displayLabel === "(unavailable)" ? "" : displayLabel,
484+
repoRootDisplayPath: "",
485485
repoRootPath: ""
486486
};
487487
}

0 commit comments

Comments
 (0)