percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

Percy is not running, disabling snapshot #1459

Closed KKonstantinov closed 9 months ago

KKonstantinov commented 9 months ago

The problem

I'm running Percy with Playwright on node, and getting "Percy is not running, disabling snapshot" even though I can see in the logs Percy is starting up. This happens both on our CI/CD environment, and locally.

Environment

Debug logs


npx percy exec --debug --verbose -- npx playwright test --workers 1
[percy:config] Found config file: .percy.yml (0ms)
[percy:config] Using config:
{
version: 2,
snapshot: {
widths: [
375,
1280
],
minHeight: 1024
}
} (6ms)
[percy:core:install] Successfully downloaded Chromium 929475 (5600ms)
[percy:core:browser] Launching browser (2ms)
[percy:core:browser] Browser connected [62029]: HeadlessChrome/96.0.4664.0 (1176ms)
[percy:core] Percy has started! (1ms)
[percy:cli:exec] Running "npx playwright test --workers 1" (0ms)

Running 7 tests using 1 worker

✓ 1 [setup] › _global.test.setup.ts:6:6 › Global Setup (as Test) (114ms) [percy:utils] Percy is not running, disabling snapshots [percy:utils] Error: connect ECONNREFUSED ::1:5338 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) ✓ 2 [screenshot] › screenshot/screenshot.spec.ts:18:9 › Screenshots - not logged in › Register page (3.1s) ✓ 3 [screenshot] › screenshot/screenshot.spec.ts:24:9 › Screenshots - not logged in › Login page (3.0s) ✓ 4 [screenshot] › screenshot/screenshot.spec.ts:30:9 › Screenshots - not logged in › Empty cart page (6.4s) ✓ 5 [screenshot] › screenshot/screenshot.spec.ts:67:9 › Screenshots - logged in › Cart page with item (14.1s) ✓ 6 [screenshot] › screenshot/screenshot.spec.ts:77:9 › Screenshots - logged in › Checkout Flow (17.5s) ✓ 7 [teardown] › _global.test.teardown.ts:6:9 › Global Teardown (as Test) (2.1s) 7 passed (53.5s) [percy:core:queue] Clearing discovery queue, queued state: 0, pending state: 0 (54346ms) [percy:core:browser] Closing browser (0ms) [percy:core:browser] Browser closed (14ms) [percy:core:queue] Clearing snapshot queue, queued state: 0, pending state: 0 (1ms) [percy:core] Build not created (0ms)

itsjwala commented 9 months ago

we'll be checking this today.

itsjwala commented 9 months ago

Okay so we've narrowed the issue, its related to following PR https://github.com/percy/cli/pull/1447

this would be breaking post node version 17+ https://github.com/nodejs/node/issues/40702#issuecomment-958143154

We'll send out a patch by end of this week, please resort to previous stable version till then, thankyou!

itsjwala commented 9 months ago

FYI we've released a patch as per our release process in beta v1.27.6-beta.0 we'll do a stable release by end of this/next week.

daveverwer commented 8 months ago

Thanks for fixing this! 👍