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
71 stars 45 forks source link

Browserstack: Build not created, Error: connect ECONNREFUSED #1460

Closed caendesilva closed 11 months ago

caendesilva commented 11 months ago

The problem

Recently, without having made any changes to the environment, our GitHub Actions visual regression testing using Browserstack stopped working. This could be related to https://github.com/percy/cli/issues/1459.

Environment

This happens in GitHub Actions.

Debug logs

Run npx percy snapshot _site/ -v
  npx percy snapshot _site/ -v
  shell: /usr/bin/bash -e {0}
  env:
    PERCY_TOKEN: ***
[percy:config] Config file not found (0ms)
[percy:core:install] Downloading Chromium 9295[1](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:1)1...
[percy:core:install] Successfully downloaded Chromium 9[2](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:2)9511 ([3](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:3)695ms)
[percy:core:browser] Launching browser (29ms)
[percy:core:browser] Browser connected [1993]: HeadlessChrome/96.0.[4](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:4)664.0 (382ms)
[percy:core] Percy has started! (0ms)
[percy:core:queue] Clearing discovery queue, queued state: 0, pending state: 0 (272ms)
[percy:core:queue] Clearing snapshot queue, queued state: 0, pending state: 0 (0ms)
[percy:core] Stopping percy... (0ms)
[percy:core:queue] Clearing discovery queue, queued state: 0, pending state: 0 (0ms)
[percy:core:browser] Closing browser (1ms)
[percy:core:browser] Browser closed (1[5](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:5)ms)
[percy:core:queue] Clearing snapshot queue, queued state: 0, pending state: 0 (0ms)
[percy:core] Build not created (1ms)
[percy:cli] Error: connect ECONNREFUSED ::1:40751
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:1[6](https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487#step:6:7)) (0ms)
Error: Process completed with exit code 1.

Code to reproduce issue

- name: Install Percy
  run: npm install --save-dev @percy/cli

- name: Upload build to Percy
  run: npx percy snapshot _site/ -v
  env:
    PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

Please see test run https://github.com/hydephp/develop/actions/runs/7150918096/job/19474699781?pr=1487

itsjwala commented 11 months ago

We'll be checking this today.

itsjwala commented 11 months ago

Thankyou for reporting we've narrowed down the issue, https://github.com/percy/cli/issues/1459#issuecomment-1850232794

closing this issue as duplicate of other one.

caendesilva commented 11 months ago

Thankyou for reporting we've narrowed down the issue, #1459 (comment)

closing this issue as duplicate of other one.

Thanks! I figured it might have been related, but thought I should report it just in case.