Skip to content

Add Back in Stamping for JavaScript Builds#761

Merged
KetanReddy merged 6 commits intomainfrom
stamp-version-and-commit
Nov 21, 2025
Merged

Add Back in Stamping for JavaScript Builds#761
KetanReddy merged 6 commits intomainfrom
stamp-version-and-commit

Conversation

@KetanReddy
Copy link
Copy Markdown
Member

@KetanReddy KetanReddy commented Nov 19, 2025

#636 added support for properly stamping the Core and React JS bundles but had to be rolled back in #648 because the artifacts it produced were broken. After digging into the original issue it seems like it might have been because of a race condition in the source maps that were generated for the .mjs and index.legacy-esm.js builds as only one was getting the additional substitutions (because of a non-cascading object spread) causing their map files to be slightly different. This applies the substitutions to all js builds including the IIFE for native. This PR also cleans up and marks some legacy artifacts for deprecation from when there were different versions associated with the Core and React player code bases.

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major
  • N/A

Does your PR have any documentation updates?

  • Updated docs
  • No Update needed
  • Unable to update docs

Release Notes

Fix stamping in core/react builds for Player version and commit used to build the bundle

📦 Published PR as canary version: 0.14.2--canary.761.29359

Try this version out locally by upgrading relevant packages to 0.14.2--canary.761.29359

@KetanReddy KetanReddy added the patch Increment the patch version when merged label Nov 19, 2025
@KetanReddy KetanReddy changed the title Add back in stamping Add Back in Stamping for JavaScript Builds Nov 19, 2025
@KetanReddy
Copy link
Copy Markdown
Member Author

/canary

@KetanReddy KetanReddy linked an issue Nov 19, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 19, 2025

Codecov Report

❌ Patch coverage is 64.70588% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.77%. Comparing base (2756bd1) to head (0714da7).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
react/player/src/player.tsx 69.23% 4 Missing ⚠️
core/player/src/player.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #761      +/-   ##
==========================================
- Coverage   85.78%   85.77%   -0.01%     
==========================================
  Files         504      504              
  Lines       22681    22679       -2     
  Branches     2650     2651       +1     
==========================================
- Hits        19456    19454       -2     
  Misses       2896     2896              
  Partials      329      329              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 19, 2025

Bundle Report

Changes will increase total bundle size by 1.1kB (0.02%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
plugins/async-node/core 455.62kB 97 bytes (0.02%) ⬆️
plugins/beacon/core 402.85kB 97 bytes (0.02%) ⬆️
core/player 953.41kB 388 bytes (0.04%) ⬆️
plugins/check-path/core 421.25kB 97 bytes (0.02%) ⬆️
plugins/common-expressions/core 407.11kB 97 bytes (0.02%) ⬆️
plugins/common-types/core 481.43kB 97 bytes (0.02%) ⬆️
plugins/markdown/core 661.92kB 97 bytes (0.01%) ⬆️
plugins/metrics/core 439.41kB 97 bytes (0.02%) ⬆️
react/player 67.78kB -159 bytes (-0.23%) ⬇️
plugins/stage-revert-data/core 384.87kB 97 bytes (0.03%) ⬆️
plugins/reference-assets/core 462.57kB 97 bytes (0.02%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: plugins/common-types/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
CommonTypesPlugin.native.js 97 bytes 410.26kB 0.02%
view changes for bundle: plugins/beacon/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
BeaconPlugin.native.js 97 bytes 388.38kB 0.02%
view changes for bundle: plugins/metrics/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
MetricsPlugin.native.js 97 bytes 407.07kB 0.02%
view changes for bundle: react/player

Assets Changed:

Asset Name Size Change Total Size Change (%)
cjs/index.cjs -53 bytes 24.8kB -0.21%
index.legacy-esm.js -53 bytes 21.49kB -0.25%
index.mjs -53 bytes 21.49kB -0.25%
view changes for bundle: plugins/stage-revert-data/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
StageRevertDataPlugin.native.js 97 bytes 378.05kB 0.03%
view changes for bundle: plugins/reference-assets/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
ReferenceAssetsPlugin.native.js 97 bytes 432.67kB 0.02%
view changes for bundle: plugins/common-expressions/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
CommonExpressionsPlugin.native.js 97 bytes 385.86kB 0.03%
view changes for bundle: plugins/check-path/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
CheckPathPlugin.native.js 97 bytes 391.77kB 0.02%
view changes for bundle: core/player

Assets Changed:

Asset Name Size Change Total Size Change (%)
Player.native.js 97 bytes 402.67kB 0.02%
cjs/index.cjs 97 bytes 187.85kB 0.05%
index.legacy-esm.js 97 bytes 181.44kB 0.05%
index.mjs 97 bytes 181.44kB 0.05%
view changes for bundle: plugins/async-node/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
AsyncNodePlugin.native.js 97 bytes 409.54kB 0.02%
view changes for bundle: plugins/markdown/core

Assets Changed:

Asset Name Size Change Total Size Change (%)
MarkdownPlugin.native.js 97 bytes 636.77kB 0.02%

@KetanReddy
Copy link
Copy Markdown
Member Author

/canary

intuit-svc added a commit to player-ui/player-ui.github.io that referenced this pull request Nov 19, 2025
@intuit-svc
Copy link
Copy Markdown
Contributor

intuit-svc commented Nov 19, 2025

Build Preview

Your PR was deployed by CircleCI #29359 on Fri, 21 Nov 2025 19:15:24 GMT with this version:

0.14.2--canary.761.29359

📖 Docs (View site)

@KetanReddy KetanReddy marked this pull request as ready for review November 19, 2025 23:46
@KetanReddy KetanReddy requested review from a team as code owners November 19, 2025 23:46
@sugarmanz
Copy link
Copy Markdown
Member

/canary

intuit-svc added a commit to player-ui/player-ui.github.io that referenced this pull request Nov 21, 2025
@sugarmanz
Copy link
Copy Markdown
Member

/canary

intuit-svc added a commit to player-ui/player-ui.github.io that referenced this pull request Nov 21, 2025
@sugarmanz
Copy link
Copy Markdown
Member

/canary

intuit-svc added a commit to player-ui/player-ui.github.io that referenced this pull request Nov 21, 2025
@KetanReddy KetanReddy force-pushed the stamp-version-and-commit branch from 210a554 to 0714da7 Compare November 21, 2025 19:47
Comment thread .bazelrc
build --remote_cache_async
build --remote_download_toplevel
build --remote_timeout=3600
build --remote_timeout=60
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's this do??

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Drops the time spent waiting for cache. I noticed that occasionally builds would hang when cache was taking a while to respond so this should prevent builds from stalling out of that happens.

@KetanReddy KetanReddy merged commit 4161f9e into main Nov 21, 2025
13 of 15 checks passed
@KetanReddy KetanReddy deleted the stamp-version-and-commit branch November 21, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stamp native bundles

4 participants