You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reject stale frozen player inventory hashes - #1307
No actionable comments were generated in the recent review.
Walkthrough
The Python worker now handles frozen player inventory requests, including checkout checks, file hashing, and stability checks. PowerShell sends inventory requests to the worker and emits the returned rows. Tests cover inventory results, file changes, and checkout validation.
Changes: Frozen player inventory
Layer / File(s)
Summary
Worker inventory request and validation scripts/unity/frozen_files.py, scripts/tests/test_frozen_files.py
The worker validates inventory requests, inventories files and directories, checks declared hashes and filesystem stability, and returns rows or errors. Tests cover inventory metadata, hash mismatches, file changes, and checkout validation.
The census wrapper sends inventory request fields to the worker. The frozen-player script emits returned rows and reports census errors. The documentation describes the inventory request checks and output.
sequenceDiagram
participant FrozenPlayerFiles as frozen-player-files.ps1
participant Census as Invoke-WProtoSourceCensus
participant Request as execute_request
participant Inventory as frozen_player_inventory
FrozenPlayerFiles->>Census: Submit inventory request
Census->>Request: Send repository, declarations, and file limit
Request->>Inventory: Run frozen player inventory
Inventory-->>Request: Return rows or error
Request-->>Census: Return inventory result
Census-->>FrozenPlayerFiles: Emit inventory result
Loading
Possibly related PRs
Ambiguous-Interactive/unity-helpers#1301: Moves player manifest creation and verification into locked Python and binds verification to the checkout and observed player files.
Merge Risk: Minimal · up to 76660
Frozen player inventory now runs in the locked Python worker and rejects hashes that go stale when a file changes without changing length. The reviewed paths show no actionable merge-blocking issue.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main behavior change: the frozen player inventory now rejects stale SHA-256 hashes for files that changed without changing length. The changeset adds persistent-change detection, c…
Description check
The description follows the repository template. It has a one-sentence Why, a What section with three one-line bullets in plain language, and a Refs #859 line. The Why sentence states the problem clea…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main behavior change: the frozen player inventory now rejects stale SHA-256 hashes for files that changed without changing length. The changeset adds persistent-change detection, checkout and root rechecks, and a declared-hash mismatch error, so the title matches the primary change. It is concise and specific, and it does not use file lists or vague terms.
Full details: Description check
Explanation
The description follows the repository template. It has a one-sentence Why, a What section with three one-line bullets in plain language, and a Refs #859 line. The Why sentence states the problem clearly. The Fixes keyword is correctly not used. The DISCLOSURE line is an extra header that does not conflict with the template. Minor gap: the description does not mention the new inventory operation or the replay project inputs in detail, but the template asks for brevity and detail belongs in the linked issue.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The reason will be displayed to describe this comment to others. Learn more.
DISCLOSURE: LLM-GENERATED TEXT
OpenAI review: 1 finding.
The payload inventory no longer enforces its previous 100,000-entry limit. Large payloads can consume unbounded memory and produce an oversized response.
10983 in, 3945 out tokens. Comments only; this review never blocks a merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DISCLOSURE: LLM-GENERATED TEXT
Why:
The frozen player inventory could report an old SHA-256 if an already-hashed file changed without changing length.
What:
Refs #859