Skip to content

[Bug]: Test is successfully passed in first attempt, still it went for retry and failed #39255

@sksukla

Description

@sksukla

Version

1.56.1

Steps to reproduce

I am running the tests in github action pipeline and this issue is not consistent to any particular test, but is random.

  1. Using ubuntu-latest machine to run my tests in chrome/webkit latest version browser.

Expected behavior

It should not go for retry if the first attempt is successful

Actual behavior

It is retrying even if the first attempt is successful and test is passed. In the retry, it failed and whole test is ended in flaky bucket.

Image

Additional context

No response

Environment

Image: Either one of them
Linux)   echo "ubuntu-22.04-x86_64-xlarge" ;;
MacOs)   echo "macos-latest-xlarge" ;;
Windows) echo "windows-2025-x86_64-xlarge" ;;


Browser: Chrome/Webkit/MS Edge --> Latest version

My local configuration:
System:
    OS: macOS 26.2
    CPU: (12) arm64 Apple M4 Pro
    Memory: 69.44 MB / 24.00 GB
  Binaries:
    Node: 24.1.0 - /opt/homebrew/bin/node
    npm: 11.3.0 - /opt/homebrew/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.56.1 => 1.58.1 
    playwright: ^1.57.0 => 1.58.1 
    playwright-lighthouse: ^4.0.0 => 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions