From b143237b231a443948807ceb19fee2df2f71ac0e Mon Sep 17 00:00:00 2001 From: Jamie Chapman <104535858+bilbospocketses@users.noreply.github.com> Date: Mon, 8 Jun 2026 22:08:13 -0400 Subject: [PATCH] docs(smoke): add capture-logs scripts + sync runbook to beta.52 - New capture-logs.sh / capture-logs.ps1: one-shot diagnostic snapshots (AVC, service journal/status, fcontext, SELinux labels, processes, dataRoot / Program Files / temp listings, config, app logs) to a timestamped labeled folder + archive - run at any checkpoint, esp. on failure. The Windows one captures the wipe leftover + the temp cleaner copy (the in-app uninstall cleaner is --no-log by design). - Wired references into all three docs (pre-flight + stop-rules + the 15.2 wipe row). - smoke-runbook.md: bump smoke-target tag beta.50 -> beta.52 (missed in the earlier sync), add the missing Module 15 (Windows uninstall + stop-exit), fix the stale "69 tests" count -> 74. - smoke-full.md: mark the wipe-self-deletion VM concern fixed in beta.52. --- docs/smoke-tests/capture-logs.ps1 | 92 ++++++++++++++++++++++++ docs/smoke-tests/capture-logs.sh | 106 ++++++++++++++++++++++++++++ docs/smoke-tests/smoke-checklist.md | 13 +++- docs/smoke-tests/smoke-full.md | 8 ++- docs/smoke-tests/smoke-runbook.md | 55 +++++++++++++-- 5 files changed, 263 insertions(+), 11 deletions(-) create mode 100644 docs/smoke-tests/capture-logs.ps1 create mode 100644 docs/smoke-tests/capture-logs.sh diff --git a/docs/smoke-tests/capture-logs.ps1 b/docs/smoke-tests/capture-logs.ps1 new file mode 100644 index 0000000..d320b53 --- /dev/null +++ b/docs/smoke-tests/capture-logs.ps1 @@ -0,0 +1,92 @@ +# capture-logs.ps1 - snapshot every ws-scrcpy-web diagnostic into one folder, for a smoke capture point. +# +# Run at any capture point during the Windows smoke - ESPECIALLY when a test FAILS, and right after +# an install / uninstall / update. Read-only: it never changes the install. The in-app uninstall +# cleaner runs with logging OFF by design, so for the uninstall tests (15.x) the EVIDENCE is +# filesystem + registry + temp state - which this captures. +# +# Usage: powershell -ExecutionPolicy Bypass -File capture-logs.ps1 [label] +# e.g. powershell -ExecutionPolicy Bypass -File capture-logs.ps1 15.2-wipe +# powershell -ExecutionPolicy Bypass -File capture-logs.ps1 5.7-after-uninstall +# Output: %USERPROFILE%\wssw-smoke-logs\-