Skip to content

fix(tools): fail scene builds on unknown catalog IDs - #303

Open
Junaid2-7777 wants to merge 3 commits into
meshy-dev:mainfrom
Junaid2-7777:fix/build-scenes-unknown-ids
Open

Junaid2-7777 wants to merge 3 commits into
meshy-dev:mainfrom
Junaid2-7777:fix/build-scenes-unknown-ids

Conversation

@Junaid2-7777

Copy link
Copy Markdown

What changed

npm run scenes -- cornell-bxo exits 0 on main without writing a bundle. If a selection mixes valid and invalid IDs, it rebuilds only the valid ones and still reports success. A later render or benchmark can therefore pick up stale output without a build error.

Check the entire selection against the catalog before bundling. Report unknown IDs and list the available IDs on stderr, then exit 1 without writing any bundles. Calls with no IDs and valid selections still build in catalog order.

Merge gate

Tier T (build tooling only; no renderer or scene changes).

  • npm run typecheck: passed.
  • npm test: 325 passed, 1 skipped. The CLI regression fails on main; it verifies invalid IDs do not overwrite an existing bundle and a valid selection still resolves to the right source.
  • Built cornell-box with the real CLI. A mixed valid-and-misspelled selection then exited 1 and left that bundle byte-for-byte unchanged.
  • git diff --check: passed. No GPU run required for this tooling-only change.

Codex assisted in creating this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant