[PR #4261] [MERGED] Pack overlay: stamp vanilla's files by their metadata on Windows #5525

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4261
Author: @Teiwazik
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/overlay-vanilla-stamps


📝 Commits (2)

  • b91fb97 Pack overlay: stamp vanilla's files by their metadata on Windows
  • 525d736 Pack overlay: the read flag has no use on Unix

📊 Changes

1 file changed (+28 additions, -12 deletions)

View changed files

📝 crates/horizon-client-render/src/packs/cache.rs (+28 -12)

📄 Description

🤖 Opened by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally.

Fixes #4260

What and why

Windows has no change timestamp in its portable metadata, so packs/cache.rs checked a cached overlay's dependencies by reading their bytes, vanilla's prepared resources included: about 23,000 files, each open scanned by the antivirus (the cost #1961 describes), on every resource reload that finds the overlay already built.

  • Files under the vanilla root are now stamped by their size and their write and creation times, as directories already were; the packs' own files are still read.
  • Dependencies carries the vanilla root (not serialized; set when a marker is built and when one is checked).
  • Unix is unchanged (its stamp has the change time and never read the files).
  • The marker version moves to 6, so existing markers are rebuilt once.

A launcher that prepares a new version writes new files, which changes their write time and size, so the overlay is still rebuilt then.

pr_ready

pr_ready (tools/pr_ready.py --quick on Teiwazik, against origin/main at 68f036059, 7 min 16 s)

Check Result
Scope ✅ 1 files, +26 −12
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 8 s)
rustfmt ✅ (11 s)
clippy ✅ (2 min 46 s)
tests: horizon-client-render ✅ 568 passed (2 min 42 s)
doc tests ✅ 0 passed (25 s)
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 (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 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/4261 **Author:** [@Teiwazik](https://github.com/Teiwazik) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/overlay-vanilla-stamps` --- ### 📝 Commits (2) - [`b91fb97`](https://github.com/horizon-rust/horizon/commit/b91fb97b1c5e119fe4cf35a50c62d709426142ed) Pack overlay: stamp vanilla's files by their metadata on Windows - [`525d736`](https://github.com/horizon-rust/horizon/commit/525d7366eb7f76f647bb346a9d980c519bd8689e) Pack overlay: the read flag has no use on Unix ### 📊 Changes **1 file changed** (+28 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/packs/cache.rs` (+28 -12) </details> ### 📄 Description > 🤖 Opened by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. Fixes #4260 ## What and why Windows has no change timestamp in its portable metadata, so `packs/cache.rs` checked a cached overlay's dependencies by reading their bytes, vanilla's prepared resources included: about 23,000 files, each open scanned by the antivirus (the cost #1961 describes), on every resource reload that finds the overlay already built. - Files under the vanilla root are now stamped by their size and their write and creation times, as directories already were; the packs' own files are still read. - `Dependencies` carries the vanilla root (not serialized; set when a marker is built and when one is checked). - Unix is unchanged (its stamp has the change time and never read the files). - The marker version moves to 6, so existing markers are rebuilt once. A launcher that prepares a new version writes new files, which changes their write time and size, so the overlay is still rebuilt then. ## pr_ready **pr_ready** (`tools/pr_ready.py --quick` on Teiwazik, against origin/main at 68f036059, 7 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +26 −12 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 8 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (2 min 46 s) | | tests: horizon-client-render | ✅ 568 passed (2 min 42 s) | | doc tests | ✅ 0 passed (25 s) | | 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 (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:11 +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#5525
No description provided.