Skip to content

fixtures(babylon): normalize package.json line endings so zpm can install it - #202

Merged
lukekarrys merged 1 commit into
mainfrom
lk/babylon-lf-package-json
Nov 17, 2026
Merged

lukekarrys merged 1 commit into
mainfrom
lk/babylon-lf-package-json

Conversation

@lukekarrys

@lukekarrys lukekarrys commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

zpm has failed every babylon variation in every nightly run (checked back to 2026-11-11). Each zpm babylon result is exit_codes: [1,1,1], failing within milliseconds:

Error: File parsing error (Invalid syntax: Expected '"' at offset 1, got '' instead)

Cause: 24 of babylon's 87 package.json files are stored with CRLF line endings, the same way upstream Babylon.js ships them (.gitattributes has * -crlf). Tracing zpm shows the last file it reads is packages/dev/addons/package.json, which starts with {\r\n. zpm's JSON parser expects " at offset 1 and gets \r.

Fix: convert those 24 files to LF. Only line endings change (git diff --ignore-cr-at-eol is empty), and every file still parses as JSON. Tested locally with zpm 6.0.0-rc.20: yarn install on babylon now exits 0 in about 33s.

Before merging, decide: CRLF is how the real project ships, so this failure is a genuine zpm bug, and normalizing the fixture hides it. The other option is to keep the fixture as it is, leave zpm failing on babylon, and report the bug to zpm. This PR assumes we'd rather have zpm babylon numbers. The change doesn't affect other package managers, which already parse these files.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Normalized formatting and line endings across package manifests. Package metadata, scripts, dependencies, and configuration remain unchanged.

24 of babylon's 87 package.json files were stored with CRLF line
endings (as upstream Babylon.js ships them). zpm's JSON parser fails on
them ('Expected " at offset 1'), so zpm has failed every babylon
variation in every nightly run. Only line endings change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
benchmarks Ready Ready Preview Nov 17, 2026 5:58am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request normalizes formatting and line endings in 24 Babylon fixture package manifests. Package metadata, scripts, dependencies, and other manifest values remain unchanged.

Changes: Babylon fixture manifest formatting

Layer / File(s) Summary
Normalize package manifest formatting
suite/fixtures/babylon/packages/dev/*/package.json, suite/fixtures/babylon/packages/tools/*/package.json
The manifests use normalized formatting and line endings. Their package fields and values are unchanged.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Suggested reviewers: darcyclarke, ejkorol

Merge Risk: Minimal · up to 0049a

This is a formatting-only normalization of fixture manifests so zpm can parse them. It is not expected to change behavior for other package managers. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change (line endings in package.json files) and its purpose (so zpm can install them). The raw summary and objectives both describe CRLF-to-LF normalization across 24 Babylon packa…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change (line endings in package.json files) and its purpose (so zpm can install them). The raw summary and objectives both describe CRLF-to-LF normalization across 24 Babylon package.json files, so the title matches the main change. It does not name the 24-file scope, and it is specific enough for a teammate scanning history.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: efffcde1-3ada-48ba-912f-cef79f4b3647
Commits

Reviewing files that changed from the base of the PR and between 7183060 and 0049a02.

Files selected for processing: 24

  • suite/fixtures/babylon/packages/dev/addons/package.json
  • suite/fixtures/babylon/packages/dev/buildTools/package.json
  • suite/fixtures/babylon/packages/dev/core/package.json
  • suite/fixtures/babylon/packages/dev/gui/package.json
  • suite/fixtures/babylon/packages/dev/inspector-v2/package.json
  • suite/fixtures/babylon/packages/dev/inspector/package.json
  • suite/fixtures/babylon/packages/dev/loaders/package.json
  • suite/fixtures/babylon/packages/dev/lottiePlayer/package.json
  • suite/fixtures/babylon/packages/dev/materials/package.json
  • suite/fixtures/babylon/packages/dev/postProcesses/package.json
  • suite/fixtures/babylon/packages/dev/proceduralTextures/package.json
  • suite/fixtures/babylon/packages/dev/serializers/package.json
  • suite/fixtures/babylon/packages/dev/smartFilterBlocks/package.json
  • suite/fixtures/babylon/packages/dev/smartFilters/package.json
  • suite/fixtures/babylon/packages/tools/accessibility/package.json
  • suite/fixtures/babylon/packages/tools/eslintBabylonPlugin/package.json
  • suite/fixtures/babylon/packages/tools/reflector/package.json
  • suite/fixtures/babylon/packages/tools/smartFiltersDebugger/package.json
  • suite/fixtures/babylon/packages/tools/smartFiltersEditor/package.json
  • suite/fixtures/babylon/packages/tools/smartFiltersEditorControl/package.json
  • suite/fixtures/babylon/packages/tools/tests/package.json
  • suite/fixtures/babylon/packages/tools/testsMemoryLeaks/package.json
  • suite/fixtures/babylon/packages/tools/viewer/package.json
  • suite/fixtures/babylon/packages/tools/vsm/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@lukekarrys
lukekarrys merged commit 492da3a into main Nov 17, 2026
78 checks passed
@lukekarrys
lukekarrys deleted the lk/babylon-lf-package-json branch November 17, 2026 18:17

This branch was previously deployed

1 inactive deployment
Benchmark — 0049a02c Deployed Nov 17, 2026 by lukekarrys via Run Benchmarks (build, next) #1424
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