Skip to content

Excessive CPU Utilization when using Percy Playwright #1066

Description

@unlikelyzero

The problem

We are peeling the onion on some percy cli flakiness found on #1065 and noticed that the CPU utilization of the running process is exceeding the resources available on the basic Circle CI Agent.

CPU Utilization with percy exec enabled

Screen Shot 2022-09-13 at 9 49 17 AM

This is the exact same test run but with percy exec disabled

Screen Shot 2022-09-13 at 10 37 12 AM

Environment

  • Node version: 16
  • @percy/cli version: 1.7.2
  • OS version: ubuntu focal image

Details

We are using a pretty standard percy integration with playwright. It appears that the CPU is pegged at 100% for the majority of the tests being executed despite lowering the CPU impact by:

  1. Disabling all diagnostic tooling from playwright (tracefile, screenshot, video, debug mode)
  2. Running a single worker and single test at a time.

Debug logs

https://app.circleci.com/pipelines/github/nasa/openmct/13351/workflows/2c27db3f-cdba-44d6-8651-0aadb149f377/jobs/50220/resources

Code to reproduce issue

#1065

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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