Skip to content

Conversation

@mellyeliu
Copy link
Member

Attempt to fix failing CLI tests on main

@vercel
Copy link

vercel bot commented Jan 14, 2026

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

Project Deployment Review Updated (UTC)
stylex Ready Ready Preview, Comment Jan 14, 2026 5:11am

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 14, 2026
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

workflow: benchmarks/perf

Comparison of performance test results, measured in operations per second. Larger is better.
yarn workspace v1.22.22
yarn run v1.22.22
$ node ./compare.js /tmp/tmp.3GXkAQaJvg /tmp/tmp.DxBRc1xhLk

Results Base Patch Ratio
babel-plugin: stylex.create
· basic create 547 532 0.97 -
· complex create 64 65 1.02 +
babel-plugin: stylex.createTheme
· basic themes 395 416 1.05 !!
· complex themes 34 34 1.00
Done in 0.07s.
Done in 0.35s.

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
yarn workspace v1.22.22
yarn run v1.22.22
$ node ./compare.js /tmp/tmp.JwVeWgFVaq /tmp/tmp.UnvViP3zDP

Results Base Patch Ratio
@stylexjs/stylex/lib/cjs/stylex.js
· compressed 1,311 1,311 1.00
· minified 4,150 4,150 1.00
@stylexjs/stylex/lib/cjs/inject.js
· compressed 1,793 1,793 1.00
· minified 4,915 4,915 1.00
benchmarks/size/.build/bundle.js
· compressed 496,650 496,650 1.00
· minified 4,847,840 4,847,840 1.00
benchmarks/size/.build/stylex.css
· compressed 99,853 99,853 1.00
· minified 747,541 747,541 1.00
Done in 0.08s.
Done in 0.32s.

Fixes CLI tests that were failing due to stderr output:

1. Yargs v18 is ESM-only but the CLI compiles to CommonJS, causing
   ERR_REQUIRE_ESM errors when running the CLI via child process.
   - Downgrade yargs from ^18.0.0 to ^17.7.2 in cli and scripts packages

2. baseline-browser-mapping was emitting a "data is over two months old"
   warning to stderr, which the tests treated as an error.
   - Add resolution to force baseline-browser-mapping to ^2.9.14
@mellyeliu mellyeliu force-pushed the fix-cli-tests-yargs-clean branch from 28d50f6 to a2c386a Compare January 14, 2026 05:07
@mellyeliu mellyeliu changed the title [chore] downgrade yargs to v17 to fix CLI tests [chore] downgrade yargs to v17 and bump baseline-browser-mapping to fix CLI tests Jan 14, 2026
@mellyeliu mellyeliu merged commit d41b8e8 into main Jan 14, 2026
10 checks passed
@mellyeliu mellyeliu deleted the fix-cli-tests-yargs-clean branch January 14, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants