[PR #3193] [MERGED] Parity: select affected harnesses from Windows dependency records #4840

Closed
opened 2026-11-03 05:08:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3193
Author: @SlaVKsVolks
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: contribute/horizon-windows-parity-20261028


📝 Commits (1)

  • 54360a7 fix(parity): normalize Windows dependency records for selection

📊 Changes

2 files changed (+81 additions, -3 deletions)

View changed files

📝 tests/test_parity_runner.py (+69 -0)
📝 tools/parity.py (+12 -3)

📄 Description

🤖 Opened by SlaVKsVolks's AI agent (OpenAI Codex), not by SlaVKsVolks personally.

What and why

Horizon records traced dependencies with native path separators, but Git changes and the selectors use repository-relative POSIX paths. On Windows this can silently miss the harness that depends on a changed source, probe or Java oracle.

This small change:

  • writes new traced dependency paths with POSIX separators;
  • normalizes existing local/shared records in memory for affected and changed-harness selection;
  • preserves #keep: annotations, stored records and content keys;
  • passes normalized dependencies to legacy probe-target inference as well as reachability, so unrelated modules still stay out.

The portability repair originated in our divergent fork, Beyond. This branch is based directly on original Horizon main, not Beyond main, and imports no Beyond product, platform or CI policy.

Not a duplicate of #3077: that PR repairs the separate reach-test fixture; this PR changes the production dependency producer/selectors and adds its own regressions. No edits to tests/test_parity_reach.py.

Vanilla reference

None: developer tooling only; no gameplay or vanilla behavior changes.

Self-check

Ready for maintainer review after the ordinary upstream CI passed. The local full-suite failure is disclosed rather than bypassed:

  • Unmodified upstream Windows baseline: 398 tests, 2 failures, 8 errors, 11 existing skips.
  • Candidate: 402 tests, exactly the same 2 failures, 8 errors and 11 skips. No new skip, suppression or unrelated fix.
  • The inherited failures are seven reach-fixture separator errors (#3077), a reports-symlink privilege error (#3082), a named Windows log-path failure (#3078), and a publication path failure (#3076).
  • python -m unittest tests.test_parity_runner -v: 39 tests, OK, one existing Windows-only oracle-shim skip.
  • All four new regression tests failed against unchanged production code before the fix (seven assertion failures including subtests); all pass after it.
  • python tools/check_public_tree.py --history: passed.
  • git diff --check: passed.

pr_ready (tools/pr_ready.py --base upstream/main on DESKTOP-5RS29HP, against upstream/main at 564162a0b, 46 s)

Check Result
Scope ✅ 2 files, +81 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 402 run, FAILED (failures=2, errors=8, skipped=11) (45 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label skip-release

Upstream CI result

The maintainer-approved checks run 40692400937, attempt 2, passed:

  • verify: success; 405 Python tests, OK, plus the configured format/lint and Rust checks.
  • launcher: success.
  • parity, parity-scope, vanilla-parity and jfr-analysis: skipped by the existing workflow, not claimed as executed.

CI tested GitHub's PR merge revision f087232343341236e132432e9a13072b33aa9989: contribution head 54360a74e356da269902eb1bd667e7445cd6a3a6 merged with upstream base 291aae00e8ab318bdc287d7480f6235c501dd4a0. The larger Linux test count reflects that merge environment, not a claim that the earlier local Windows checkout ran 405 tests. The unchanged local Windows limitations above remain unresolved by this narrow PR.

Independent read-only review found no actionable source defects. Workflow Node.js deprecation notices are inherited and unrelated to this patch.

Allow edits by maintainers is enabled. No screenshots: nothing player-visible changes.

🤖 Generated with OpenAI Codex (GPT-6.1 Sol).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3193 **Author:** [@SlaVKsVolks](https://github.com/SlaVKsVolks) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `contribute/horizon-windows-parity-20261028` --- ### 📝 Commits (1) - [`54360a7`](https://github.com/horizon-rust/horizon/commit/54360a74e356da269902eb1bd667e7445cd6a3a6) fix(parity): normalize Windows dependency records for selection ### 📊 Changes **2 files changed** (+81 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_runner.py` (+69 -0) 📝 `tools/parity.py` (+12 -3) </details> ### 📄 Description > 🤖 Opened by SlaVKsVolks's AI agent (OpenAI Codex), not by SlaVKsVolks personally. ## What and why Horizon records traced dependencies with native path separators, but Git changes and the selectors use repository-relative POSIX paths. On Windows this can silently miss the harness that depends on a changed source, probe or Java oracle. This small change: - writes new traced dependency paths with POSIX separators; - normalizes existing local/shared records in memory for affected and changed-harness selection; - preserves `#keep:` annotations, stored records and content keys; - passes normalized dependencies to legacy probe-target inference as well as reachability, so unrelated modules still stay out. The portability repair originated in our divergent fork, Beyond. This branch is based directly on original Horizon main, not Beyond main, and imports no Beyond product, platform or CI policy. Not a duplicate of #3077: that PR repairs the separate reach-test fixture; this PR changes the production dependency producer/selectors and adds its own regressions. No edits to `tests/test_parity_reach.py`. ## Vanilla reference None: developer tooling only; no gameplay or vanilla behavior changes. ## Self-check Ready for maintainer review after the ordinary upstream CI passed. The local full-suite failure is disclosed rather than bypassed: - Unmodified upstream Windows baseline: 398 tests, 2 failures, 8 errors, 11 existing skips. - Candidate: 402 tests, exactly the same 2 failures, 8 errors and 11 skips. No new skip, suppression or unrelated fix. - The inherited failures are seven reach-fixture separator errors (#3077), a reports-symlink privilege error (#3082), a named Windows log-path failure (#3078), and a publication path failure (#3076). - `python -m unittest tests.test_parity_runner -v`: 39 tests, OK, one existing Windows-only oracle-shim skip. - All four new regression tests failed against unchanged production code before the fix (seven assertion failures including subtests); all pass after it. - `python tools/check_public_tree.py --history`: passed. - `git diff --check`: passed. **pr_ready** (`tools/pr_ready.py --base upstream/main` on DESKTOP-5RS29HP, against upstream/main at 564162a0b, 46 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +81 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 402 run, FAILED (failures=2, errors=8, skipped=11) (45 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | `skip-release` | ## Upstream CI result The maintainer-approved `checks` run 40692400937, attempt 2, passed: - `verify`: success; **405 Python tests, OK**, plus the configured format/lint and Rust checks. - `launcher`: success. - `parity`, `parity-scope`, `vanilla-parity` and `jfr-analysis`: skipped by the existing workflow, not claimed as executed. CI tested GitHub's PR merge revision `f087232343341236e132432e9a13072b33aa9989`: contribution head `54360a74e356da269902eb1bd667e7445cd6a3a6` merged with upstream base `291aae00e8ab318bdc287d7480f6235c501dd4a0`. The larger Linux test count reflects that merge environment, not a claim that the earlier local Windows checkout ran 405 tests. The unchanged local Windows limitations above remain unresolved by this narrow PR. Independent read-only review found no actionable source defects. Workflow Node.js deprecation notices are inherited and unrelated to this patch. Allow edits by maintainers is enabled. No screenshots: nothing player-visible changes. 🤖 Generated with OpenAI Codex (GPT-6.1 Sol). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:20 +07:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4840
No description provided.