tooling: normalize layout destination directories #210

Merged
Vonsek merged 1 commit from upstream-pr/213 into main 2026-11-21 18:42:09 +00:00
Vonsek commented 2026-11-21 18:27:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:27:53Z.


Change

Collapse redundant separators and . components in package DestinationPath values before comparing layout targets with inventory paths. Parent directory components remain literal in the comparison. Windows path normalization

Verification

Windows 11 build 26200.9974, Visual Studio Build Tools 2022 17.14.45 (MSVC 19.44.35230), Python 3.12.10, CMake 3.31.6.

  • out/pe-env/Scripts/python.exe -B tests/layout_chunks_check.py: the new fixture failed on 9eb4dbe because two matching destinations appeared missing. Passed at 7cd18a0.
  • cmake --preset dev and cmake --build --preset dev --target intake_candidate intake_provider: configured and built the intake fixtures from a clean output directory.
  • ctest --preset dev --no-tests=error -R '^layout_chunk_summary$' -V: 0/1 on base with the new fixture, 1/1 at 7cd18a0, zero skips.
  • ctest --preset dev --no-tests=error -R '^(layout_chunk_summary|static_exe_intake|conditional_import_paths)$' -V: 3/3 at 7cd18a0, zero skips.
  • git diff --check: passed.

Evidence and follow-up

The original MIT-licensed regression writes a synthetic XML layout and passes in-memory inventory names to compare_layout. It covers a nested destination with an extra separator and a . component, a current-directory destination at the package root, and a .. destination that remains unresolved.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted with Codex.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532742094 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/213). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T18:27:53Z. --- ## Change Collapse redundant separators and `.` components in package `DestinationPath` values before comparing layout targets with inventory paths. Parent directory components remain literal in the comparison. [Windows path normalization](https://learn.microsoft.com/dotnet/standard/io/file-path-formats#path-normalization) ## Verification Windows 11 build 26200.9974, Visual Studio Build Tools 2022 17.14.45 (MSVC 19.44.35230), Python 3.12.10, CMake 3.31.6. - `out/pe-env/Scripts/python.exe -B tests/layout_chunks_check.py`: the new fixture failed on `9eb4dbe` because two matching destinations appeared missing. Passed at `7cd18a0`. - `cmake --preset dev` and `cmake --build --preset dev --target intake_candidate intake_provider`: configured and built the intake fixtures from a clean output directory. - `ctest --preset dev --no-tests=error -R '^layout_chunk_summary$' -V`: 0/1 on base with the new fixture, 1/1 at `7cd18a0`, zero skips. - `ctest --preset dev --no-tests=error -R '^(layout_chunk_summary|static_exe_intake|conditional_import_paths)$' -V`: 3/3 at `7cd18a0`, zero skips. - `git diff --check`: passed. ## Evidence and follow-up The original MIT-licensed regression writes a synthetic XML layout and passes in-memory inventory names to `compare_layout`. It covers a nested destination with an extra separator and a `.` component, a current-directory destination at the package root, and a `..` destination that remains unresolved. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted with Codex.
upstream-sync closed this pull request 2026-11-24 06:41:50 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:47:49 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:28:01Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T18:29:43.087416Z 7cd18a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067275527 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/213#issuecomment-7067275527). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-21T18:28:01Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"7cd18a0d4e992a710c814ac19f0e0867fccf6b7a","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-21T18:29:43.087416Z">2026-11-21T18:29:43.087416Z</relative-time> | `7cd18a0` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!210
No description provided.