Repository navigation
fix(trace): preserve Unicode output paths on Windows - #7599
Conversation
|
Checked at
Tests:
The same narrow AI-assisted: yes (Claude Code); results above were run on this machine. |
d773822 to
4593f50
Compare
MarcZX10
left a comment
There was a problem hiding this comment.
The Windows path is read as wide text and kept in std::filesystem::path without a locale-dependent narrow conversion; the POSIX path remains unchanged. The new test covers unset, ASCII and Unicode values and verifies both summary and gzip output. The reported Windows negative control and independent cross-platform test results support the fix; the current conventions, eligibility and report checks pass. I also reran tools/pr_overlap.py against the current open PR queue (1,105 PRs), and it reports no overlap. I did not run the product tests locally. No blocking issue found; approved.
|
Static review plus an independent Linux run on both trees per the repo AGENTS AGC-adjacent protocol (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, What I checked
Focused paired run (VVL env; logs captured both trees)
Both logs checked: 0 Not covered The Unicode path fix is Windows-only at runtime; I can't exercise |
✅ NVIDIA GPU test: passedPR head
Failing on main too (5, not counted against this PR)Validation IDs already present on main (4 IDs in 405 tests)Skipped (39)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@adriadam10 Could you take a look at this PR when convenient? It remains mergeable, has an approval, and has independent Windows/Linux validation. The overlap bot now flags #14982 and shared code with #12828. Is coordination with either PR needed before merging, or is there another outstanding requirement I should address? |
|
@THEMANnt a heads-up on an overlap, with nothing asked of this PR as it stands. #14982, which replaces the stream-exception handling in the AGC and VideoOut file writers with explicit stream-state checks, edits the same two regions of
#14982 also narrows the catch in Neither change contradicts the other. Whichever lands second needs a two-hunk rebase in The overlap table on #14982 lists this PR as a line conflict, with the files and lines; |
|
Checked the diff: |
What
On Windows, setting
APS5_TRACE_DIRto a directory containing characters such as™or Japanese text can throwfilesystem error: Cannot convert character sequence: Illegal byte sequencewhen trace output is initialized. The narrow environment-variable value is passed through a locale-dependent filesystem conversion.Read this path with
_wgetenvon Windows and construct it from the native wide string. Put the shared directory selection inTraceFile::Directory, used by both interval summaries and captured traces. POSIX continues to usegetenv; an unset variable still selects..The Windows regression checks unset and ASCII settings, preserves a Unicode path, and writes both gzip trace and JSONL summary files there. No title-specific handling is added.
Tested
Current revision
4593f50e7, rebased onto upstream maindb73af350, Windows 11 Pro build 26200, supported MinGW-w64 GCC 15.2, Release:agc_performance_traceandagc_profile_output: both build and pass on this branch, including the Unicode directory regression. Conventions against targetupstream/mainand whitespace pass.origin/mainreports the pre-existingAPS5_CPU_FLIP_IN_ORDERenvironment-documentation error and upstream debt warnings; none of that code is changed here.Directory()call from its benchmark additions. The Unicode test body and production fix are unchanged by this follow-up.tools/pr_overlap.py --branch fix/trace-unicode-paths, using authenticated API transport and that exhaustive candidate set, reportsNo overlap with open pull requests.88f818410218ca4aa117d850354a50f0a1fe4b62. A separate local integration build succeeds;agc_profile_outputandparam_json_parserpass. Its expandedagc_performance_tracetest fails withSt13__ios_failure ... has no unwind data. A control containing main + feat(trace): record host, title and per-frame benchmark data #7080 without this PR reproduces the same failure. The combined suite is therefore not claimed green; that exception-handling failure is separate from this branch's resolved merge overlap.Earlier validation at
d7738226dremains applicable to the unchanged Unicode fix: the narrow-conversion negative control fails; the wide-path test passed five repeated runs; the runtimelibstarget and four focused trace/registration tests built and passed. An independent Windows/Linux validation is recorded in wachi35676's comment. Full runtime libraries, registration GPU tests and Linux/macOS were not rerun for this test-layout-only follow-up. No performance claim.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)