Skip to content

fix(ci): normalize workflow caches and restore bundle-size reporting#4519

Merged
ScriptedAlchemy merged 10 commits intomainfrom
codex/normalize-cache-restore-actions
Mar 11, 2026
Merged

fix(ci): normalize workflow caches and restore bundle-size reporting#4519
ScriptedAlchemy merged 10 commits intomainfrom
codex/normalize-cache-restore-actions

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

@ScriptedAlchemy ScriptedAlchemy commented Mar 11, 2026

Summary

  • normalize CI cache behavior around .turbo/cache while keeping Turbo cache saves only in build-and-test.yml
  • preserve standalone bundle-size reporting and keep the bundle-size comment workflow attached to the bundle-size run
  • scope Playwright browser downloads to the devtools workflow and cache ~/.cache/ms-playwright between devtools runs
  • keep release workflows restore-only for Turbo cache while using actions/cache@v5 for persistent tool-download caching

Details

  • reusable workflows restore .turbo/cache with the shared branch-based key, but only build-and-test.yml saves it on successful main pushes
  • devtools.yml now uses its own concurrency group, restores cached Playwright browsers, and avoids repo-wide browser downloads during unrelated CI installs
  • packages/chrome-devtools/install-deps.bash only runs in GitHub Actions when the devtools workflow opts in, and installs Chromium-only assets on a cache miss
  • bundle-size.yml runs directly on pull requests again so bundle-size-comment.yml can download bundle-size-stats from the correct workflow run

Validation

  • targeted actionlint on the touched workflow files
  • bash -n packages/chrome-devtools/install-deps.bash
  • node --check scripts/ensure-playwright.js

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 11, 2026

⚠️ No Changeset found

Latest commit: 0ca34d9

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

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 11, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 0ca34d9
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69b0d0d0e22b410008daa8b4
😎 Deploy Preview https://deploy-preview-4519--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.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@40602e5

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js

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

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

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

@module-federation/native-federation-typescript

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

@module-federation/nextjs-mf

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

@module-federation/node

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

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

@module-federation/utilities

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: 40602e5

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 11, 2026

Bundle Size Report

2 package(s) changed, 39 unchanged.

Package Total dist Delta ESM gzip Delta
@changesets/assemble-release-plan 50.4 kB +24.2 kB (+92.7%) 6.6 kB no change
@module-federation/devtools 4.79 MB -8088 B (-0.2%) 0 B no change

Total dist: 10.68 MB (+16.3 kB (+0.1%))
Total ESM gzip: 75.2 kB (no change)

- name: Build package workspace targets
run: pnpm run build:packages

- name: Save Turborepo cache
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

remove save setup from here

- name: Build Internal Changesets Dependencies
run: pnpm exec turbo run build --filter=@changesets/assemble-release-plan --concurrency=20

- name: Save Turborepo cache
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

remove save setup from here

@ScriptedAlchemy ScriptedAlchemy changed the title ci: normalize cache actions to restore-only v4 ci: normalize workflow caches and scope devtools installs Mar 11, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title ci: normalize workflow caches and scope devtools installs fix(ci): normalize workflow caches and restore bundle-size reporting Mar 11, 2026
@ScriptedAlchemy ScriptedAlchemy merged commit 9ae88d0 into main Mar 11, 2026
26 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the codex/normalize-cache-restore-actions branch March 11, 2026 02:41
@2heal1 2heal1 mentioned this pull request Mar 14, 2026
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