[PR #1024] check_no_game_data: reject invalid explicit paths (CHECK-NO-GAME-DATA-EXPLICIT-PATHS) #1061

Open
opened 2026-11-26 20:19:57 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1024
Author: @djrolfes
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: djrolfes/check-game-data-explicit-paths


📝 Commits (1)

  • 4895588 check_no_game_data: refuse invalid explicitly named inputs

📊 Changes

2 files changed (+99 additions, -9 deletions)

View changed files

📝 scripts/check_no_game_data.py (+15 -5)
📝 tests/test_check_no_game_data.py (+84 -4)

📄 Description

Claimed: CHECK-NO-GAME-DATA-EXPLICIT-PATHS (coordination).

Depends on: #922 (Git-enumeration error handling, now retained from main).

What and why

An explicitly named missing file or directory must not report a successful safety scan that checked nothing:

  • lstat explicit inputs; reject missing, inaccessible and non-regular entries.
  • Reject symlinks without following them and FIFOs without opening/blocking on them.
  • Keep scanning siblings; a game-data match (exit 1) takes precedence over incomplete scan (exit 2).
  • Preserve default Git enumeration's intentional skips, and main's git_error diagnostics.
  • No workflow changes or directory recursion.

Only the scanner and its synthetic tests change.

Tested rebase

Head 4895588a9, based on main 490f5b9ec. Original reviewed head c26b99bae is preserved.

  • Scanner tests: 17 passed, including main's Git-enumeration failure controls and this PR's explicit-path cases.
  • Extension-workflow tests: 3 passed.
  • Python compileall, changed-file scanner and git diff --check: passed.

Linux / Python standard library; no GPU or game files. Native Windows not tested. FIFO/newline cases are platform-guarded; symlink tests skip if creation is unavailable.

The existing approval applies to the original head; reviewers may reassess this rebase. Hosted label checks are not full CI evidence.

AI-assisted: yes. No game content, keys or decryption.


🔄 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/1024 **Author:** [@djrolfes](https://github.com/djrolfes) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `djrolfes/check-game-data-explicit-paths` --- ### 📝 Commits (1) - [`4895588`](https://github.com/ubiquitarianism/leonida/commit/4895588a9339dd906d73b2f27326e60ce6237482) check_no_game_data: refuse invalid explicitly named inputs ### 📊 Changes **2 files changed** (+99 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `scripts/check_no_game_data.py` (+15 -5) 📝 `tests/test_check_no_game_data.py` (+84 -4) </details> ### 📄 Description Claimed: **CHECK-NO-GAME-DATA-EXPLICIT-PATHS** ([coordination](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138467827)). Depends on: #922 (Git-enumeration error handling, now retained from main). ### What and why An explicitly named missing file or directory must not report a successful safety scan that checked nothing: - `lstat` explicit inputs; reject missing, inaccessible and non-regular entries. - Reject symlinks without following them and FIFOs without opening/blocking on them. - Keep scanning siblings; a game-data match (exit 1) takes precedence over incomplete scan (exit 2). - Preserve default Git enumeration's intentional skips, and main's `git_error` diagnostics. - No workflow changes or directory recursion. Only the scanner and its synthetic tests change. ### Tested rebase Head `4895588a9`, based on main `490f5b9ec`. Original reviewed head `c26b99bae` is preserved. - Scanner tests: **17 passed**, including main's Git-enumeration failure controls and this PR's explicit-path cases. - Extension-workflow tests: **3 passed**. - Python compileall, changed-file scanner and `git diff --check`: passed. Linux / Python standard library; no GPU or game files. Native Windows not tested. FIFO/newline cases are platform-guarded; symlink tests skip if creation is unavailable. The existing approval applies to the original head; reviewers may reassess this rebase. Hosted label checks are not full CI evidence. AI-assisted: **yes**. No game content, keys or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1061
No description provided.