Skip to content

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Jul 29, 2025

Related Issue

Issue: #XXXX

Description

Address some timeout issues noticed in CI

  • Rename isGitHubAction to isCI for broader CI detection
  • Adjust timeout logic to use CI or Windows conditions
  • Reduce expect timeout from 40s/20s to 5s/2s for faster feedback
  • Decrease streaming chunk delay from 50ms to 20ms in server mock

Test Procedure

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Update Playwright test timeouts and server mock delay for improved CI performance.

  • Playwright Config:
    • Rename isGitHubAction to isCI for broader CI detection.
    • Adjust timeout to 40000ms for CI or Windows, 20000ms otherwise.
    • Adjust expect.timeout to 5000ms for CI or Windows, 2000ms otherwise.
    • Use isCI for reporter configuration.
  • Server Mock:
    • Decrease streaming chunk delay from 50ms to 20ms in ClineApiServerMock.

This description was created by Ellipsis for d23f0b0. You can customize this summary. It will automatically update as commits are pushed.

- Rename isGitHubAction to isCI for broader CI detection
- Adjust timeout logic to use CI or Windows conditions
- Reduce expect timeout from 40s/20s to 5s/2s for faster feedback
- Decrease streaming chunk delay from 50ms to 20ms in server mock
@Copilot Copilot AI review requested due to automatic review settings July 29, 2025 22:03
Copy link

changeset-bot bot commented Jul 29, 2025

⚠️ No Changeset found

Latest commit: d23f0b0

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

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 updates Playwright test configurations to improve CI test performance and reliability by adjusting timeouts and streaming delays.

  • Renamed isGitHubAction to isCI for broader CI environment detection
  • Reduced expect timeouts from 40s/20s to 5s/2s for faster test feedback
  • Decreased streaming chunk delay from 50ms to 20ms in server mock for improved performance

Reviewed Changes

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

File Description
playwright.config.ts Updated timeout logic and renamed CI detection variable for broader compatibility
src/test/e2e/fixtures/server/index.ts Reduced streaming chunk delay to improve test performance
Comments suppressed due to low confidence (1)

playwright.config.ts:4

  • The variable name 'isWindow' is ambiguous. It should be 'isWindows' to clearly indicate it's checking for the Windows platform.
const isWindow = process?.platform?.startsWith("win")

@abeatrix abeatrix requested review from arafatkatze and sjf July 29, 2025 22:04
Copy link
Contributor

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

✅ Coverage increased or remained the same

Overall Assessment

Test coverage has been maintained or improved

Last updated: 2025-07-29T22:25:03.161240

@arafatkatze
Copy link
Contributor

PR makes trivial timeout changes and does what it claims to do.

@arafatkatze arafatkatze merged commit d653f1c into main Jul 29, 2025
15 of 16 checks passed
@abeatrix abeatrix deleted the bee/e2e-timeout branch July 29, 2025 22:31
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.

3 participants