openclaw/scripts/e2e/parallels
wangmiao0668000666 998f0ed27d
fix(e2e): keep phase log tails UTF-8 safe (#109923)
* fix(e2e): keep phase log tails UTF-8 safe

The phase runner keeps a bounded in-memory log tail per phase and writes it
to stderr when a phase fails. The byte-based cut can land inside a multi-byte
UTF-8 character, and decoding from that offset emits U+FFFD replacement
characters at the start of the diagnostics tail. Reuse the decodeUtf8Tail
helper from scripts/e2e/lib/text-file-utils.mjs (#109669) so the retained
window starts on a character boundary.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(e2e): declare decodeUtf8Tail in text-file-utils types

phase-runner.ts imports decodeUtf8Tail from text-file-utils.mjs; the
adjacent declaration file must export it or check-test-types fails with
TS2305.

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor(e2e): reuse tailText wrapper for phase log tails

Co-Authored-By: Claude <noreply@anthropic.com>

* test(e2e): focus phase tail regression

Co-authored-by: wangmiao0668000666 <wang.miao86@xydigit.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-20 19:45:35 -07:00
..
agent-workspace.ts fix(release): stop writing retired smoke state 2026-07-17 04:14:39 +01:00
common.ts refactor(deadcode): enforce repository hard zero (#108641) 2026-07-15 22:40:00 -07:00
env-limits.ts
filesystem.ts refactor(deadcode): enforce repository hard zero (#108641) 2026-07-15 22:40:00 -07:00
guest-transports.ts fix(release): run candidate smoke from trusted tooling 2026-07-15 06:56:04 +01:00
host-command.ts
host-server.ts
lane-runner.ts
linux-smoke.ts
macos-discord.ts fix(e2e): bound macOS Discord host requests (#108880) 2026-07-16 03:36:20 -07:00
macos-smoke.ts
macos-users.ts
npm-update-scripts.ts fix(release): stop writing retired smoke state 2026-07-17 04:14:39 +01:00
npm-update-smoke.ts
package-artifact.ts
parallels-vm.ts
phase-runner.ts fix(e2e): keep phase log tails UTF-8 safe (#109923) 2026-07-20 19:45:35 -07:00
plugin-isolation.ts
powershell.ts
provider-auth.ts
smoke-common.ts
snapshots.ts
types.ts
update-job-timeout.ts
windows-git.ts fix(e2e): bound MinGit asset downloads (#108741) 2026-07-16 02:02:09 -07:00
windows-smoke.ts