Skip to content

chore: upgrade rspack deps to beta.7#165

Open
LingyuCoder wants to merge 1 commit intomainfrom
codex/upgrade-rspack-beta7
Open

chore: upgrade rspack deps to beta.7#165
LingyuCoder wants to merge 1 commit intomainfrom
codex/upgrade-rspack-beta7

Conversation

@LingyuCoder
Copy link
Contributor

Summary

  • upgrade @rspack/core and example @rspack/cli/@rspack/core to 2.0.0-beta.7
  • refresh the lockfile and update overlay snapshots for beta.7 output changes
  • stabilize rstest by running serially with longer local timeouts for fixed-port browser E2E suites

Testing

  • pnpm run test

Copilot AI review requested due to automatic review settings March 17, 2026 13:16
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the project's core Rspack dependencies to the latest 2.0.0-beta.7 version. This upgrade necessitated a refresh of the pnpm lockfile and updates to existing test snapshots to reflect changes in Rspack's output. Additionally, measures were taken to enhance the stability of end-to-end tests by adjusting their execution strategy and increasing timeouts, ensuring a more robust testing environment.

Highlights

  • Dependency Upgrade: Upgraded @rspack/core and @rspack/cli to version 2.0.0-beta.7 across the project and its examples.
  • Lockfile Refresh: Refreshed the pnpm-lock.yaml to incorporate the new Rspack beta.7 dependencies and their associated binding packages.
  • Test Stability Improvements: Stabilized E2E tests by configuring rstest to run serially (maxWorkers: 1) and increasing local testTimeout and hookTimeout to 60000ms to prevent failures due to fixed-port browser E2E suites.
  • Snapshot Updates: Updated overlay snapshots to align with output changes introduced by the 2.0.0-beta.7 version of Rspack.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • example/package.json
    • Updated @rspack/cli and @rspack/core to 2.0.0-beta.7.
  • package.json
    • Updated @rspack/core to 2.0.0-beta.7.
  • pnpm-lock.yaml
    • Refreshed lockfile to reflect Rspack 2.0.0-beta.7 dependencies.
    • Updated @rspack/core and @rspack/cli versions within the lockfile.
    • Added new @rspack/binding-* entries for 2.0.0-beta.7.
    • Updated css-loader dependency to reflect new @rspack/core version.
  • rstest.config.ts
    • Set maxWorkers to 1 for serial E2E test execution.
    • Increased testTimeout to 60000ms (from 30000ms) for local runs.
    • Increased hookTimeout to 60000ms (from 30000ms).
  • tests/e2e/snapshots/overlay.test.js.snap
    • Updated overlay snapshot content due to changes in Rspack's error/warning output format.
Activity
  • The author, LingyuCoder, initiated the pull request to upgrade Rspack dependencies.
  • Testing was performed by running pnpm run test as indicated in the PR description.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the repository’s Rspack dependencies to 2.0.0-beta.7, refreshes generated artifacts affected by the upgrade (lockfile + overlay snapshots), and adjusts the E2E test runner settings to improve stability.

Changes:

  • Bump @rspack/core (and example @rspack/cli/@rspack/core) to 2.0.0-beta.7 and refresh pnpm-lock.yaml.
  • Update overlay E2E snapshots to match beta.7 overlay/output formatting.
  • Run rstest serially with increased local timeouts to reduce E2E flakiness from fixed ports/browser spawning.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/e2e/snapshots/overlay.test.js.snap Snapshot updates for overlay HTML changes from Rspack beta.7 output.
rstest.config.ts Forces serial execution and increases timeouts to stabilize E2E runs.
pnpm-lock.yaml Lockfile refresh reflecting beta.7 upgrades and dependency graph changes.
package.json Bumps devDependency @rspack/core to 2.0.0-beta.7.
example/package.json Bumps example @rspack/cli and @rspack/core to 2.0.0-beta.7.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +537 to +541
'@rspack/core@2.0.0-beta.7':
resolution: {integrity: sha512-JbLVx0RptvNvPx3Tj+b96v4lxLvcV9YId2VWJ1DmYlQ+oFJJrjjdQtr3KJitU5tEIySW1CqD1R6qxU3BzpwEjw==}
engines: {node: ^20.19.0 || >=22.12.0}
peerDependencies:
'@module-federation/runtime-tools': ^0.24.1 || ^2.0.0
],
pool: {
maxWorkers: '80%',
// E2E tests reuse fixed ports and spawn browsers, so serial execution is more stable.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades @rspack/core and @rspack/cli to version 2.0.0-beta.7. Consequently, the lockfile and test snapshots have been updated. The test configuration has also been modified to run tests serially with increased local timeouts to improve stability. The changes are consistent with the goal of upgrading dependencies and appear correct.

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.

2 participants