Skip to content

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

Open
sanchaton wants to merge 1 commit into
ProjectLeonidaL:mainfrom
sanchaton:fix/measure-run-ps51-escape
Open

sanchaton wants to merge 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.

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.

1 participant