Skip to content

Generate JavaScript test bundles during the build - #1966

Merged
bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:bghgary-align-test-layout
Oct 23, 2026
Merged

bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:bghgary-align-test-layout

Conversation

@bghgary

@bghgary bghgary commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

[Created by Copilot on behalf of @bghgary]

JavaScript test bundles should reflect the current TypeScript sources without requiring generated files to be committed.

bghgary and others added 3 commits October 23, 2026 15:09
Replace the tracked Webpack output with a custom build command that writes all seven bundles into the runtime Assets directory. Track the authored scripts and bundler inputs so edits and missing outputs regenerate the bundles, and force emission to keep no-change builds incremental. Keep manual dist output ignored.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bghgary
bghgary marked this pull request as ready for review October 23, 2026 22:27
@bghgary
bghgary requested review from bkaradzic-microsoft and a balanced review from Copilot October 23, 2026 22:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review found no blocking issues in the build-time bundle generation or asset integration; builds were not executed.

No open issues 🎉

What changed in this PR

Moves UnitTests JavaScript bundle generation into the CMake build so tests use current TypeScript sources without committing generated bundles.

Changes:

  • Generates test bundles directly into the configuration-specific Assets directory.
  • Tracks TypeScript sources and bundling configuration as build dependencies.
  • Removes six committed JavaScript bundles.
File Description
Apps/​UnitTests/​JavaScript/​dist/​tests.shaderCompilation.comprehensiveGLSL.js Removes the generated shader-compilation bundle.
Apps/​UnitTests/​JavaScript/​dist/​tests.shaderCache.basicScene.js Removes the generated shader-cache bundle.
Apps/​UnitTests/​JavaScript/​dist/​tests.externalTexture.render.js Removes the generated texture-rendering bundle.
Apps/​UnitTests/​JavaScript/​dist/​tests.externalTexture.msaa.js Removes the generated multisample texture bundle.
Apps/​UnitTests/​JavaScript/​dist/​tests.externalTexture.layerCount.js Removes the generated texture-layer-count bundle.
Apps/​UnitTests/​JavaScript/​dist/​tests.externalTexture.deviceLoss.js Removes the generated texture-device-loss bundle.
Apps/​UnitTests/​CMakeLists.txt Adds build-time bundling, dependency tracking, and generated asset integration.

Review effort: Balanced

@bghgary
bghgary merged commit 5e8cefa into BabylonJS:master Oct 23, 2026
27 checks passed
@bghgary
bghgary deleted the bghgary-align-test-layout branch October 23, 2026 23:30
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.

3 participants