Skip to content

test(ssr): add update contracts and artifact regression baseline - #5048

Merged
2heal1 merged 1 commit into
feat/mf-ssr-clear-cachefrom
feat/ssr-cache-r0
Sep 10, 2026
Merged

2heal1 merged 1 commit into
feat/mf-ssr-clear-cachefrom
feat/ssr-cache-r0

Conversation

@2heal1

@2heal1 2heal1 commented Sep 10, 2026

Copy link
Copy Markdown
Member

Description

Adds the R0 SSR update contract and portable real-artifact regression baseline on top of feat/mf-ssr-clear-cache. The contract defines persistent MF host ownership, disposable bundler bindings, revision/publication semantics, and Modern request admission. No production runtime behavior changes.

Four isolated Rspack fixtures cover static parent invalidation, concatenation, dynamic retained references, adapter rebinding, and shared identity. An opt-in Modern HTTP fixture verifies resource publication without changing the server/PID/port. Seven known failures execute as TODOs; strict mode makes them blocking, and unexpected passes require removing the TODO.

Validation: runtime-tools dependency build passed (6 tasks); local Rspack + Modern baseline: 5 passed / 7 TODO; installed canary: 4 passed / 7 TODO / 1 explicit Modern skip; existing clearCache Jest tests: 6 passed. Changed-file format and syntax checks passed. Modern SSR CI built 44 packages but failed the existing remove-remote-cache.cy.js:51 runtime-capture assertion; the shared-cache spec passed. Full-repo formatting failed on 683 generated/existing files. Exact commands, environment recovery, and untested production boundaries are recorded in tools/ssr-cache/VALIDATION.md.

Related Issue

No separate issue linked. Implements R0 of the agreed Modern/MF SSR cache RFC; R1–R6 remain open.

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.

@changeset-bot

changeset-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0c21310

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@2heal1
2heal1 marked this pull request as ready for review September 10, 2026 08:32
@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/metro-plugin-rock

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

@module-federation/modern-js

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

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

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

@module-federation/native-federation-typescript

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

@module-federation/nextjs-mf

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

@module-federation/node

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

@module-federation/observability-plugin

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

@module-federation/playground

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/rstest

pnpm add https://pkg.pr.new/@module-federation/rstest@0c21310

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

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

@module-federation/utilities

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: 0c21310

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T08:38:37.162826Z 0c21310 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@2heal1
2heal1 merged commit bf33cf0 into feat/mf-ssr-clear-cache Sep 10, 2026
19 checks passed
@2heal1
2heal1 deleted the feat/ssr-cache-r0 branch September 10, 2026 08:36

@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: 0c213105c4

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

assert.equal(result.dynamic.savedHandler, 'v1');
assert.equal(result.dynamic.reimport, 'v1');
assert.equal(result.dynamic.mappingContainsDynamic, false);
assert.equal(result.rebuild.dynamicResult, 'v2');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Assert the rebuilt static remote result

When the host is rebuilt after remote changes from v1 to v2, the emitted host still contains its original v1 startup configuration. The fixture records this scenario as result.rebuild.staticResult, but this block checks only dynamicResult; because dynamic was registered solely at runtime and is absent from the startup configuration, that assertion cannot detect startup configuration overwriting an accepted update for an existing remote. Such a regression would therefore pass the baseline despite violating the documented rebuild contract, so assert that staticResult remains v2 as well.

Useful? React with 👍 / 👎.

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