Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ declare var performance: Performance;
*/
const MEMORY_LIMITS_KB = {
environmentSetup: {
dev: 1000,
opt: 500,
dev: 1200,
opt: 600,
},
basicSurfaceRender: {
dev: 1200,
opt: 700,
dev: 1700,
opt: 900,
},
};

Expand Down
2 changes: 0 additions & 2 deletions private/react-native-fantom/runner/formatFantomConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ function formatModesShort(overrides: PartialFantomTestConfig) {

function formatFantomHermesVariant(hermesVariant: HermesVariant): string {
switch (hermesVariant) {
case FantomTestConfigHermesVariant.Hermes:
return 'hermes';
case FantomTestConfigHermesVariant.StaticHermesStable:
return 'shermes 🆕';
case FantomTestConfigHermesVariant.StaticHermesExperimental:
Expand Down
10 changes: 3 additions & 7 deletions private/react-native-fantom/runner/getFantomTestConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export const FantomTestConfigHermesVariant = HermesVariant;
export const DEFAULT_IS_NATIVE_OPTIMIZED: boolean = false;
export const DEFAULT_IS_JS_OPTIMIZED: boolean = false;
export const DEFAULT_IS_JS_BYTECODE: boolean = false;
export const DEFAULT_HERMES_VARIANT: HermesVariant = HermesVariant.Hermes;
export const DEFAULT_HERMES_VARIANT: HermesVariant =
HermesVariant.StaticHermesStable;

export const DEFAULT_FEATURE_FLAGS: FantomTestConfigFeatureFlags = {
common: {},
Expand Down Expand Up @@ -147,8 +148,7 @@ export function getOverrides(
* - `fantom_mode`: specifies the level of optimization to compile the test
* with. Valid values are `dev` and `opt`.
* - `fantom_hermes_variant`: specifies the Hermes variant to use to run the
* test. Valid values are `hermes`, `static_hermes_stable` and
* `static_hermes_experimental`.
* test. Valid values are `static_hermes_stable` and `static_hermes_experimental`.
* - `fantom_flags`: specifies the configuration for common and JS-only feature
* flags. They can be specified in the same pragma or in different ones, and
* the format is `<flag_name>:<value>`.
Expand Down Expand Up @@ -294,9 +294,6 @@ export default function getFantomTestConfigs(
const hermesVariant = maybeHermesVariant;

switch (hermesVariant) {
case 'hermes':
config.hermesVariant = HermesVariant.Hermes;
break;
case 'static_hermes_stable':
config.hermesVariant = HermesVariant.StaticHermesStable;
break;
Expand All @@ -305,7 +302,6 @@ export default function getFantomTestConfigs(
break;
case '*':
configVariations.push([
{hermesVariant: HermesVariant.Hermes},
{hermesVariant: HermesVariant.StaticHermesStable},
{hermesVariant: HermesVariant.StaticHermesExperimental},
]);
Expand Down
6 changes: 1 addition & 5 deletions private/react-native-fantom/runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import {
updateSnapshotsAndGetJestSnapshotResult,
} from './snapshotUtils';
import {
HermesVariant as HermesVariantEnum,
getDebugInfoFromCommandResult,
printConsoleLog,
runCommand,
Expand Down Expand Up @@ -264,10 +263,7 @@ module.exports = async function runTest(
continue;
}

if (
EnvironmentOptions.isOSS &&
testConfig.hermesVariant !== HermesVariantEnum.Hermes
) {
if (EnvironmentOptions.isOSS) {
testResultsByConfig.push(
skippedTestResults({
ancestorTitles: [
Expand Down
5 changes: 0 additions & 5 deletions private/react-native-fantom/runner/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {SourceMapConsumer} from 'source-map';
const BUCK_ISOLATION_DIR = 'react-native-fantom-buck-out';

export enum HermesVariant {
Hermes,
StaticHermesStable, // Static Hermes Stable
// This creates too many combinations and it's not worth the cost for now.
StaticHermesExperimental, // Static Hermes Trunk
Expand All @@ -31,8 +30,6 @@ export function getBuckOptionsForHermes(
? ['-c hermes.memory_instrumentation=true']
: [];
switch (variant) {
case HermesVariant.Hermes:
return baseOptions;
case HermesVariant.StaticHermesStable:
return [...baseOptions, '-c hermes.static_hermes=stable'];
case HermesVariant.StaticHermesExperimental:
Expand All @@ -42,8 +39,6 @@ export function getBuckOptionsForHermes(

export function getHermesCompilerTarget(variant: HermesVariant): string {
switch (variant) {
case HermesVariant.Hermes:
return '//xplat/hermes/tools/hermesc:hermesc';
case HermesVariant.StaticHermesStable:
return '//xplat/shermes/stable:hermesc';
case HermesVariant.StaticHermesExperimental:
Expand Down

This file was deleted.

Loading