Skip to content

Commit 42c67f4

Browse files
committed
[ci] Add size-balanced test sequencer for better shard distribution (facebook#35458)
Jest's default test sequencer sorts alphabetically, causing large test files (eg ReactDOMFloat-test.js at 9k lines, ReactHooksWithNoopRenderer-test.js at 4k lines) to cluster in shard 3/5. This made shard 3/5 average 117s vs 77s for other shards, a 52% slowdown. I'm using filesize as a rough proxy for number of tests. This custom sequencer sorts tests by file size and distributes large files evenly across all shards instead of clustering them together. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/35458). * __->__ facebook#35458 * facebook#35459 DiffTrain build for [d6cae44](facebook@d6cae44)
1 parent 53d76f9 commit 42c67f4

37 files changed

+291
-337
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b731fe28cc492cb36c51c89866f5b63a3ffae2aa
1+
d6cae440e34c6250928e18bed4a16480f83ae18a
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b731fe28cc492cb36c51c89866f5b63a3ffae2aa
1+
d6cae440e34c6250928e18bed4a16480f83ae18a

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-classic-b731fe28-20251217";
1502+
exports.version = "19.3.0-www-classic-d6cae440-20260106";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-modern-b731fe28-20251217";
1502+
exports.version = "19.3.0-www-modern-d6cae440-20260106";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-classic-b731fe28-20251217";
609+
exports.version = "19.3.0-www-classic-d6cae440-20260106";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-modern-b731fe28-20251217";
609+
exports.version = "19.3.0-www-modern-d6cae440-20260106";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-b731fe28-20251217";
613+
exports.version = "19.3.0-www-classic-d6cae440-20260106";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-modern-b731fe28-20251217";
613+
exports.version = "19.3.0-www-modern-d6cae440-20260106";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20468,10 +20468,10 @@ __DEV__ &&
2046820468
(function () {
2046920469
var internals = {
2047020470
bundleType: 1,
20471-
version: "19.3.0-www-classic-b731fe28-20251217",
20471+
version: "19.3.0-www-classic-d6cae440-20260106",
2047220472
rendererPackageName: "react-art",
2047320473
currentDispatcherRef: ReactSharedInternals,
20474-
reconcilerVersion: "19.3.0-www-classic-b731fe28-20251217"
20474+
reconcilerVersion: "19.3.0-www-classic-d6cae440-20260106"
2047520475
};
2047620476
internals.overrideHookState = overrideHookState;
2047720477
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20506,7 +20506,7 @@ __DEV__ &&
2050620506
exports.Shape = Shape;
2050720507
exports.Surface = Surface;
2050820508
exports.Text = Text;
20509-
exports.version = "19.3.0-www-classic-b731fe28-20251217";
20509+
exports.version = "19.3.0-www-classic-d6cae440-20260106";
2051020510
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2051120511
"function" ===
2051220512
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20239,10 +20239,10 @@ __DEV__ &&
2023920239
(function () {
2024020240
var internals = {
2024120241
bundleType: 1,
20242-
version: "19.3.0-www-modern-b731fe28-20251217",
20242+
version: "19.3.0-www-modern-d6cae440-20260106",
2024320243
rendererPackageName: "react-art",
2024420244
currentDispatcherRef: ReactSharedInternals,
20245-
reconcilerVersion: "19.3.0-www-modern-b731fe28-20251217"
20245+
reconcilerVersion: "19.3.0-www-modern-d6cae440-20260106"
2024620246
};
2024720247
internals.overrideHookState = overrideHookState;
2024820248
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20277,7 +20277,7 @@ __DEV__ &&
2027720277
exports.Shape = Shape;
2027820278
exports.Surface = Surface;
2027920279
exports.Text = Text;
20280-
exports.version = "19.3.0-www-modern-b731fe28-20251217";
20280+
exports.version = "19.3.0-www-modern-d6cae440-20260106";
2028120281
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2028220282
"function" ===
2028320283
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)