Skip to content

feat(mf): initialize ordered share scopes at runtime - #14911

Open
ScriptedAlchemy wants to merge 75 commits into
feat/mf-layersfrom
codex/mf-share-scope-runtime
Open

ScriptedAlchemy wants to merge 75 commits into
feat/mf-layersfrom
codex/mf-share-scope-runtime

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Initialize ordered share scopes before their shared consumers run.

  • Preserve configured scope order and container scope bindings.
  • Wait for initialization when the runtime has initial ordered consumes; keep scalar eager startup synchronous.
  • Support shared runtime chunks and respect loaded-first.

Coverage

Runtime and config cases cover scope binding, ordered initial and async consumes, eager startup, shared runtimes, and legacy container initialization.

Related links

Stack 2/4: #12977 → #14911 → #14912 → #14913.

Checklist

  • Tests updated.
  • Documentation updated (or not required).

@ScriptedAlchemy ScriptedAlchemy changed the title codex/mf share scope runtime feat(mf): initialize ordered share scopes at runtime Jul 22, 2026
@codspeed

codspeed Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 57 untouched benchmarks
⏩ 47 skipped benchmarks1


Comparing codex/mf-share-scope-runtime (5b1e45a) with feat/mf-layers (5afe38d)

Open in CodSpeed

Footnotes

  1. 47 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@ScriptedAlchemy
ScriptedAlchemy force-pushed the codex/mf-share-scope-runtime branch from 4cd8f5c to cbc7d41 Compare July 22, 2026 23:05
@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 5b1e45a to fix: allocative crate package names (#16212) by AsyncIter

Note

This PR is stacked on feat/mf-layers. Sizes are compared against main, so the diff below covers the whole stack, not this PR alone.

❌ Size increased by 52.13KB from 67.74MB to 67.79MB (⬆️0.08%)

@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Gzip Size Change Gzip Change
popular-libs 1.7 MB 536.3 KB 0 0
react-10k 5.4 MB 1.3 MB 0 0
react-1k 827.7 KB 225.2 KB 0 0
react-5k 2.6 MB 670.6 KB 0 0
ui-components 4.7 MB 1.4 MB 0 0

Generated by Rsdoctor GitHub Action

@ScriptedAlchemy
ScriptedAlchemy force-pushed the codex/mf-share-scope-runtime branch from cbc7d41 to d219e27 Compare July 23, 2026 00:49
@ScriptedAlchemy
ScriptedAlchemy force-pushed the codex/mf-share-scope-runtime branch from d219e27 to 804192f Compare July 23, 2026 01:16
@ScriptedAlchemy
ScriptedAlchemy marked this pull request as ready for review July 23, 2026 01:52

@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: 804192f168

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

Comment thread packages/rspack/src/runtime/moduleFederationDefaultRuntime.js
…pr14911

# Conflicts:
#	crates/rspack_plugin_mf/src/container/embed_federation_runtime_module.rs
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: 27789f6
Status: ✅  Deploy successful!
Preview URL: https://869527d3.rspack-v2.pages.dev
Branch Preview URL: https://codex-mf-share-scope-runtime.rspack-v2.pages.dev

View logs

@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: 2a348f967f

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

Comment thread packages/rspack/src/runtime/moduleFederationDefaultRuntime.js Outdated

@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: 72c9492ee4

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

Comment thread packages/rspack/src/runtime/moduleFederationDefaultRuntime.js Outdated

@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: 258fcbb9e0

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

Comment thread crates/rspack_plugin_mf/src/container/remote_runtime_module.rs

@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: a7c7947218

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

Comment thread packages/rspack/src/runtime/moduleFederationDefaultRuntime.js Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@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: 2150ebc17f

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

Comment thread packages/rspack/src/runtime/moduleFederationDefaultRuntime.js Outdated

This branch has not been deployed

No deployments
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.

1 participant