Skip to content

test(e2e): improve log pattern matching in test utils#5863

Merged
chenjiahan merged 1 commit intomainfrom
test_helper_0817
Aug 17, 2025
Merged

test(e2e): improve log pattern matching in test utils#5863
chenjiahan merged 1 commit intomainfrom
test_helper_0817

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

  • Improve log pattern matching in test utils
  • Use Set to track pending log patterns for better performance
  • Add timeout handling for log pattern matching

Checklist

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

Copilot AI review requested due to automatic review settings August 17, 2025 08:27
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 17, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 4106f8d
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a1928423eaed00088a3fae
😎 Deploy Preview https://deploy-preview-5863--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: 74 (🟢 up 1 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 improves log pattern matching in E2E test utilities by replacing polling-based log checking with a more efficient event-driven approach using Sets and Promise-based waiting.

  • Replace polling mechanism with event-driven log pattern matching
  • Use Set data structure to track pending log patterns for better performance
  • Add proper timeout handling (10 seconds) for log pattern matching operations

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

@chenjiahan chenjiahan merged commit 369d44a into main Aug 17, 2025
12 checks passed
@chenjiahan chenjiahan deleted the test_helper_0817 branch August 17, 2025 08:33
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