Skip to content

feat: sync MF observability to OpenRuntime#4813

Open
2heal1 wants to merge 5 commits into
mainfrom
feat/operate-openruntime
Open

feat: sync MF observability to OpenRuntime#4813
2heal1 wants to merge 5 commits into
mainfrom
feat/operate-openruntime

Conversation

@2heal1

@2heal1 2heal1 commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Sync Module Federation observability reports into OpenRuntime targets for remotes, exposed modules, shared dependencies, and runtime errors.
  • Add OpenRuntime actions for reading observability reports and federation global state.
  • Update the runtime demo, README, and tests for OpenRuntime wait-for and action usage.

Verification

  • pnpm exec prettier --check packages/observability-plugin apps/runtime-demo/3005-runtime-host/cypress/e2e/app.cy.ts apps/runtime-demo/README.md
  • pnpm --filter @module-federation/observability-plugin run build
  • pnpm --filter @module-federation/observability-plugin run test
  • pnpm run ci:local --only=e2e-runtime

@changeset-bot

changeset-bot Bot commented Jun 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fe11138

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

This PR includes changesets to release 47 packages
Name Type
@module-federation/observability-plugin Minor
@module-federation/devtools 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/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/modern-js Patch
@module-federation/modern-js-v3 Patch
@module-federation/retry-plugin 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/metro Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rock Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/esbuild Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/playground Patch
website-new Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote 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

@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit cfd28c9
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6a3b8493b0724c00072f7bd0
😎 Deploy Preview https://deploy-preview-4813--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

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

Copy link
Copy Markdown

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: 0236c49ce6

ℹ️ 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".

"dependencies": {
"@module-federation/sdk": "workspace:*"
"@module-federation/sdk": "workspace:*",
"@openruntime/core": "link:/Users/bytedance/ai/openruntime/packages/core"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Replace the absolute local OpenRuntime dependency

This new dependency points at /Users/bytedance/..., so a clean checkout or CI runner that does not have that developer-local path cannot satisfy pnpm install --frozen-lockfile, and a published @module-federation/observability-plugin would also carry an unusable local link. Since the new source imports @openruntime/core, this needs to be a real registry/workspace version rather than an absolute link: path.

Useful? React with 👍 / 👎.

@2heal1
2heal1 force-pushed the feat/operate-openruntime branch from cfd28c9 to fe11138 Compare July 21, 2026 12:30
@pkg-pr-new

pkg-pr-new Bot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@fe11138

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@fe11138

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@fe11138

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@fe11138

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@fe11138

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@fe11138

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@fe11138

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@fe11138

@module-federation/playground

pnpm add https://pkg.pr.new/@module-federation/playground@fe11138

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@fe11138

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@fe11138

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@fe11138

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: fe11138

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview Environment Ready!

Name Status URL
website-new ✅ Active https://nestor-lopez-30254-website-new-core-module-federa-a8995b1... ↗

Details:

  • Latest Commit: fe11138
  • Created at: 7/21/2026, 12:34:04 PM

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

11 package(s) changed, 31 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/bridge-vue3 179.9 kB +261 B (+0.1%) 26.0 kB +26 B (+0.1%)
@module-federation/observability-plugin 364.8 kB +82.8 kB (+29.4%) 150 B no change
@module-federation/playground 28.83 MB +432 B (+0.0%) 43.6 kB no change
@module-federation/runtime-core 294.3 kB +224 B (+0.1%) 570 B no change
@module-federation/runtime-tools 7.7 kB -65 B (-0.8%) 142 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/bridge-vue3 19.2 kB +25 B (+0.1%) 19.5 kB +23 B (+0.1%)
@module-federation/cli 2.3 kB +2 B (+0.1%) 2.4 kB -31 B (-1.3%)
@module-federation/core 1.0 kB +1 B (+0.1%) 1.0 kB -33 B (-3.0%)
@module-federation/devtools 30.3 kB -1 B (-0.0%) 30.3 kB -24 B (-0.1%)
@module-federation/enhanced 2.7 kB +14 B (+0.5%) 2.8 kB -42 B (-1.5%)
@module-federation/metro-plugin-rnc-cli 416 B +2 B (+0.5%) 435 B -26 B (-5.6%)
@module-federation/node 9.2 kB +5 B (+0.1%) 9.2 kB -29 B (-0.3%)
@module-federation/observability-plugin 17.5 kB +5.3 kB (+43.4%) 17.5 kB +5.3 kB (+43.4%)
@module-federation/runtime-core 15.3 kB no change 15.1 kB +8 B (+0.1%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 21.5 kB -9 B (-0.0%) 23.1 kB -6 B (-0.0%) +1.7 kB +3 B

Total dist (raw): 35.88 MB (+83.7 kB (+0.2%))
Total ESM gzip: 104.9 kB (+26 B (+0.0%))
Total web bundle (gzip): 238.8 kB (+5.4 kB (+2.3%))
Total node bundle (gzip): 241.5 kB (+5.2 kB (+2.2%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.8 kB (no change)
Tracked ./bundler node bundle (gzip): 4.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant