|
| 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. |
0 commit comments