From 886690b016e9f67be298332b571a2740b529d8af Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 17 Jul 2026 22:27:33 +0300 Subject: [PATCH] pre-warm metro bundle before maestro flows --- .github/scripts/run-nightly-e2e.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/scripts/run-nightly-e2e.sh b/.github/scripts/run-nightly-e2e.sh index e2f7afee4e..fe4fb7e355 100755 --- a/.github/scripts/run-nightly-e2e.sh +++ b/.github/scripts/run-nightly-e2e.sh @@ -143,6 +143,12 @@ EXPO_PUBLIC_ENV=e2e \ printf '%s\n' "$!" >"$artifact_dir/metro.pid" wait_for_port 8081 "Metro" +# Pre-warm Metro bundle so the first Maestro flow doesn't hit a cold-start delay +phase "Pre-warming Metro bundle" +bundle_platform="$platform" +curl -s -o /dev/null "http://localhost:8081/index.bundle?platform=${bundle_platform}&dev=true&minify=false" +echo "Metro bundle pre-warmed for $bundle_platform" + if [[ "$platform" == "android" ]]; then phase "Configuring Android localhost routing" adb -s "$device_id" reverse tcp:3000 tcp:3000