8000 Debug/fix watch pipeline by lukastaegert · Pull Request #5982 · rollup/rollup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Debug/fix watch pipeline #5982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 6, 2025
Merged

Debug/fix watch pipeline #5982

merged 9 commits into from
Jun 6, 2025

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

On MacOS Node 24, one watch test is failing repeatedly.

Copy link
vercel bot commented Jun 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2025 11:15am

Copy link
github-actions bot commented Jun 6, 2025

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#fix-watch-test

Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-a8cbe3xsp-rollup-js.vercel.app/repl/?pr=5982

Copy link
github-actions bot commented Jun 6, 2025

Performance report

  • BUILD: 7102ms, 775 MB (+2%)
    • initialize: 0ms, 24.6 MB
    • generate module graph: 2701ms, 570 MB
      • generate ast: 1217ms, 563 MB
    • sort and bind modules: 400ms (-19ms, -4.4%), 618 MB
    • mark included statements: 3969ms, 775 MB (+2%)
      • treeshaking pass 1: 2295ms, 770 MB
      • treeshaking pass 2: 471ms, 786 MB (+3%)
      • treeshaking pass 3: 406ms, 777 MB (+2%)
      • treeshaking pass 4: 390ms, 788 MB (+2%)
      • treeshaking pass 5: 387ms, 775 MB (+2%)
  • GENERATE: 690ms, 1.01 GB (+4%)
    • initialize render: 0ms, 886 MB
    • generate chunks: 54ms, 908 MB
      • optimize chunks: 0ms, 895 MB
    • render chunks: 618ms, 982 MB
    • transform chunks: 16ms, 1.01 GB (+4%)
    • generate bundle: 0ms, 1.01 GB (+4%)

Copy link
codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.77%. Comparing base (13992f2) to head (425d5d1).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5982   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         270      270           
  Lines        8734     8734           
  Branches     1509     1509           
=======================================
  Hits         8627     8627           
  Misses         73       73           
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lukastaegert lukastaegert marked this pull request as ready for review June 6, 2025 10:50
@lukastaegert lukastaegert requested a review from Copilot June 6, 2025 10:50
Copy link
Contributor
@Copilot 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

This PR addresses sporadic failures in the watch-mode tests on macOS by adding a brief delay before aborting, and enhances the CLI test harness to support repeated runs and richer timeout diagnostics.

  • Add a wait helper and a short delay in the abortOnStderr hook so the child’s onError command has time to write before termination.
  • Wrap each test in a loop keyed off config.repeat and include stdout/stderr in the timeout rejection message.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/cli/samples/watch/watch-event-hooks-error/_config.js Imported wait, made abortOnStderr async, and inserted a 300 ms pause before killing.
test/cli/index.js Introduced a for loop for config.repeat, adjusted test descriptions, and improved timeout errors with logs.
Comments suppressed due to low confidence (1)

test/cli/index.js:30

  • [nitpick] Consider renaming the loop variable 'run' to a noun like 'attempt' or 'iteration' for clarity, since 'run' can be ambiguous as a verb.
for (let run = 0; run < (config.repeat || 1); run++) {

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lukastaegert lukastaegert merged commit 149d94c into master Jun 6, 2025
3 of 5 checks passed
@lukastaegert lukastaegert deleted the fix-watch-test branch June 6, 2025 11:15
Copy link
github-actions bot commented Jun 6, 2025

This PR has been released as part of rollup@4.41.2. You can test it via npm install rollup.

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
0