[PR #466] [MERGED] world_drawable_verify: deduplicate input manifests by file identity #517

Closed
opened 2026-11-26 20:18:08 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/466
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: ubiq/world-drawable-verify-dedup


📝 Commits (1)

  • 72e81f7 world_drawable_verify: deduplicate manifests by file identity

📊 Changes

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

View changed files

📝 tests/test_world_drawable_verify.py (+95 -0)
📝 tools/world_drawable_verify.py (+21 -3)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123318168

What changed

  • tools/world_drawable_verify.py: Deduplicate input manifests in first-seen order using os.fstat() on the opened file handle (closing stat-vs-open races), requiring both st_dev and st_ino to be non-zero and falling back to os.path.normcase(os.path.realpath(path)) when either is unavailable. Preserves upstream source-archive alias checks and keeps independently written identical-content manifests counted separately.
  • tests/test_world_drawable_verify.py: Synthetic tests covering repeated/relative paths, hard links, symlinks, independent identical-content files, zero st_dev/st_ino and normcase fallbacks, and input-order errors.

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic manifests, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_world_drawable_verify*.py (16/16), compileall, check_no_game_data.py, LF check — all passed.

🔄 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/ubiquitarianism/leonida/pull/466 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `ubiq/world-drawable-verify-dedup` --- ### 📝 Commits (1) - [`72e81f7`](https://github.com/ubiquitarianism/leonida/commit/72e81f73ffc5dc43a7cb3be986aac926a0389550) world_drawable_verify: deduplicate manifests by file identity ### 📊 Changes **2 files changed** (+116 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_world_drawable_verify.py` (+95 -0) 📝 `tools/world_drawable_verify.py` (+21 -3) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123318168 ### What changed - **`tools/world_drawable_verify.py`**: Deduplicate input manifests in first-seen order using `os.fstat()` on the opened file handle (closing stat-vs-open races), requiring both `st_dev` and `st_ino` to be non-zero and falling back to `os.path.normcase(os.path.realpath(path))` when either is unavailable. Preserves upstream source-archive alias checks and keeps independently written identical-content manifests counted separately. - **`tests/test_world_drawable_verify.py`**: Synthetic tests covering repeated/relative paths, hard links, symlinks, independent identical-content files, zero `st_dev`/`st_ino` and `normcase` fallbacks, and input-order errors. ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic manifests, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_world_drawable_verify*.py` (16/16), `compileall`, `check_no_game_data.py`, LF check — all passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:08 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#517
No description provided.