Skip to content

ci: stabilize Metro E2E across GitHub Actions and ci-local#4447

Merged
ScriptedAlchemy merged 23 commits intomodule-federation:mainfrom
jbroma:fix/metro-e2e-tests
Feb 15, 2026
Merged

ci: stabilize Metro E2E across GitHub Actions and ci-local#4447
ScriptedAlchemy merged 23 commits intomodule-federation:mainfrom
jbroma:fix/metro-e2e-tests

Conversation

@jbroma
Copy link
Copy Markdown
Member

@jbroma jbroma commented Feb 15, 2026

Description

This PR stabilizes Metro E2E execution in CI and aligns local CI with the same Metro E2E flow.

  • Consolidates Metro E2E orchestration into .github/workflows/e2e-metro.yml.
  • Adds a dedicated metro-affected-check gate so Android/iOS Metro E2E jobs only run when Metro apps are affected.
  • Removes legacy Metro wrappers:
    • .github/workflows/build-metro.yml
    • .github/actions/android-e2e/action.yaml
    • .github/actions/ios-e2e/action.yaml
  • Adds tools/scripts/run-metro-e2e.mjs and reuses it in both GitHub Actions and tools/scripts/ci-local.mjs.
    • Includes prerequisite checks, RNEF cache auth handling, guarded serve lifecycle, and platform-specific run steps.
  • Extends tools/scripts/ci-local.mjs with Metro jobs:
    • metro-affected-check
    • metro-android-e2e
    • metro-ios-e2e
    • plus emulator/simulator cleanup helpers.
  • Reclassifies Metro packages to tag:type:pkg and adds missing Jest test targets where needed (metro-core, metro-plugin-rnc-cli) so package build/test flows include Metro.
  • Removes redundant tag:type:metro build in release and adds a patch changeset for @module-federation/metro.
  • Includes tree-shaking CI flake hardening updates under packages/enhanced/* (fixture generation safety + retry/serialization hardening).

Related Issue

N/A (workflow reliability + test infrastructure hardening)

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 15, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit c4defe7
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69923af81fb29f00089ecd9c
😎 Deploy Preview https://deploy-preview-4447--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 15, 2026

🦋 Changeset detected

Latest commit: c4defe7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
@module-federation/metro Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/runtime Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/devtools Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/modern-js-v3 Patch
@module-federation/retry-plugin Patch
@module-federation/data-prefetch Patch
@module-federation/rsbuild-plugin Patch
@module-federation/error-codes Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/runtime-core Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/rspress-plugin Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
website-new Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jbroma jbroma marked this pull request as draft February 15, 2026 14:02
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c1a41d030

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 15, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@4447

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@4447

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@4447

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@4447

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@4447

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@4447

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@4447

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@4447

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@4447

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@4447

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnc-cli@4447

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnef@4447

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js-v3@4447

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@4447

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@4447

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@4447

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@4447

@module-federation/runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime@4447

@module-federation/runtime-core

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-core@4447

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@4447

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@4447

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/third-party-dts-extractor@4447

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@4447

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@4447

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/webpack-bundler-runtime@4447

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@4447

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react-webpack-plugin@4447

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@4447

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@4447

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/inject-external-runtime-core-plugin@4447

commit: c4defe7

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 15, 2026

Bundle Size Report

3 package(s) changed, 38 unchanged.

Package Total dist Delta ESM gzip Delta
metro-core 204.3 kB +204.3 kB (+∞%) 147 B +147 B (+∞%)
metro-plugin-rnef 8.4 kB +8.4 kB (+∞%) 111 B +111 B (+∞%)
metro-plugin-rnc-cli 0 B no change 314 B +314 B (+∞%)

Total dist: 6.87 MB (+212.8 kB (+3.1%))
Total ESM gzip: 138.6 kB (+572 B (+0.4%))

@jbroma jbroma force-pushed the fix/metro-e2e-tests branch from eaf2ca9 to 3235bf4 Compare February 15, 2026 14:23
@jbroma jbroma marked this pull request as ready for review February 15, 2026 14:39
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3235bf4311

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jbroma jbroma marked this pull request as draft February 15, 2026 16:22
@jbroma jbroma marked this pull request as ready for review February 15, 2026 18:33
@jbroma jbroma changed the title chore: fix metro e2e workflow permissions ci: stabilize Metro E2E across GitHub Actions and ci-local Feb 15, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1542b1a57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

jbroma and others added 4 commits February 15, 2026 20:28
@ScriptedAlchemy ScriptedAlchemy merged commit 11d4af3 into module-federation:main Feb 15, 2026
22 checks passed
@2heal1 2heal1 mentioned this pull request Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants