Skip to content

fix(scripts): measure-run.ps1 reads frame lines under Windows PowerShell 5.1 - #65

Merged
ShinniUwU merged 1 commit into
ProjectLeonidaL:mainfrom
sanchaton:fix/measure-run-ps51-escape
Nov 27, 2026
Merged

ShinniUwU merged 1 commit into
ProjectLeonidaL:mainfrom
sanchaton:fix/measure-run-ps51-escape

Conversation

@sanchaton

Copy link
Copy Markdown
Contributor

What changed

scripts\measure-run.ps1 stripped the colour codes of stderr.log with the `e escape, which only PowerShell 7 knows. Under Windows PowerShell 5.1 (the one Windows ships) the pattern became a literal e, no frame line matched, and summary.txt gave lines: 0 and NaN for every figure. The escape is now $([char]27), the same under both. No TODO ID: tooling fix found while measuring #56.

How it was tested

  • Not run in game: tests only. Why: tooling; the fix was checked on the stderr.log of four runs already made for R-7: sample with each immediate sampler a join picks #56. On one of them, under PowerShell 5.1.26100, the old pattern matches 0 frame lines and the new one 52. The script still parses and stays ASCII.

Checks run on this branch:

  • cargo xtask policy

No Rust file changes, so the cargo tests and clippy were not run.

AI

  • AI-assisted: finding the cause, the fix and the check on recorded runs.

@ShinniUwU

Copy link
Copy Markdown
Contributor

This now conflicts in docs/fork-notes.md after #56 and #60 merged. Please rebase on main; the script fix itself is ready to merge.

@sanchaton

Copy link
Copy Markdown
Contributor Author

Rebased on main (now d714fc1 on top of 8fbb66b). The only conflict was the top of "Newest" in docs/fork-notes.md: the measure-run note is first and every note from main is kept, no line removed. The script change is the same one-line fix. cargo xtask policy passes and the script still parses under Windows PowerShell 5.1.

@sanchaton
sanchaton force-pushed the fix/measure-run-ps51-escape branch from dfc4798 to d714fc1 Compare November 27, 2026 05:20
@ShinniUwU
ShinniUwU merged commit f259ee5 into ProjectLeonidaL:main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants