Repository navigation
BUILD-548: validate levels requested with world_build --lod-sets - #1965
Merged
Merged
Conversation
lucastayaralvarenga-ui
approved these changes
Nov 22, 2026
Contributor
There was a problem hiding this comment.
Code review · #1965
Branch fix/world-lod-set-levels · Author FreddyxS · Open and mergeable · Commit dbd53921
What changes
--lod-sets now checks the requested levels against the chunk tier table before creating output. A separate placement test confirms that levels 7 and 255 still export with placement filtering alone. Validation · CLI and placement regressions
Verification
- On
main(4eb6155d), level 7 raisedKeyErrorand level 255 raisedOverflowErrorin the CLI regression. - The instancing, placement and world-build suites passed with 104 tests and 148 subtests.
- Windows 11 Pro, Python 3.12.16, CPU only with synthetic inputs.
git diff --checkpassed. GitHub checks were queued at review time.
Recommendation
Approve. The 0–6 constraint is applied where named chunk tiers are required.
AI-assisted review with Codex.
Contributor
|
Tested dbd5392 merged into
AI-assisted (Claude Code), tested on a Mac. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
BUILD-548 claim in #1902.
Depends on: #1316 (LOD chunk sets).
What changed
--lod-levelsaccepts byte values. With--lod-sets, only levels 0 through 6 have chunk tiers, so selecting level 7 raisesKeyErrorduring chunk naming and level 255 overflows the signed tier array. Reject unrecognized tiers before generating output and document the supported range in--help. Placement filtering without--lod-setsstill accepts the full byte range.Verified
main(6a6704df) and pass with the fix. Each case returns 1 with a specific diagnostic and creates no output directory. With LOD sets disabled, both synthetic placements still export.compileall,world_build.py --help,git diff --checkand the merge check againstmainpassed. The published branch tree matches the locally tested tree.Synthetic inputs and CPU tests. AI-assisted (Codex).