Skip to content

test(cli): fix flaky build watch options test#5875

Merged
chenjiahan merged 1 commit intomainfrom
watch_options_flaky_0818
Aug 18, 2025
Merged

test(cli): fix flaky build watch options test#5875
chenjiahan merged 1 commit intomainfrom
watch_options_flaky_0818

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Aug 18, 2025

Summary

Fix the flaky build watch options test:

cli:build-watch-options

cli:build-watch-options3

Checklist

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

Copilot AI review requested due to automatic review settings August 18, 2025 11:28
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 18, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 4113f8f
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a30e6b3eb43100088839ba
😎 Deploy Preview https://deploy-preview-5875--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 88 (🟢 up 25 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

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 fixes a flaky e2e test for CLI build watch options by improving the test's timing and verification mechanisms. The test was experiencing intermittent failures due to unreliable timing assumptions and cleanup operations.

  • Improved test reliability by using proper build completion detection instead of arbitrary timeouts
  • Enhanced verification of watch behavior by checking logs instead of just file content
  • Streamlined imports by removing unused modules

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan chenjiahan merged commit fcb9376 into main Aug 18, 2025
13 checks passed
@chenjiahan chenjiahan deleted the watch_options_flaky_0818 branch August 18, 2025 12:59
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