Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Percy visual testing snapshot getting faild

Santosh Kori
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 26, 2022

Having bitbucket pipeline code

 

image: atlassian/default-image:3

pipelines: # This is an example Starter pipeline configuration
  branches:
    master:
      - step:
          name: 'Percy for Static Sites'
          script:
            - npm install -D @percy/cli
            - npx percy snapshot ./

 

Getting this build failed with below error logs

+ umask 000
+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="master" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...
+ git reset --hard b76da9688750472362fd6aebedd2795453f8c966
HEAD is now at b76da96 Percy with build22
+ git config user.name bitbucket-pipelines
+ git config user.email commits-noreply@bitbucket.org
+ git config push.default current
+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/
+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME
+ git reflog expire --expire=all --all
+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude
+ chmod 777 $BUILD_DIR

Images used:
build : docker.io/atlassian/default-image@sha256:edf4bd880adf9e7f7677094f7a1d944524c7f98e939550bc152523c5cf6080ff
+ npm install -D @percy/cli

> @percy/core@1.0.0-beta.74 postinstall /opt/atlassian/pipelines/agent/build/node_modules/@percy/core
> node ./post-install

npm WARN saveError ENOENT: no such file or directory, open '/opt/atlassian/pipelines/agent/build/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/opt/atlassian/pipelines/agent/build/package.json'
npm WARN build No description
npm WARN build No repository field.
npm WARN build No README data
npm WARN build No license field.

+ @percy/cli@1.0.0-beta.74
added 110 packages from 116 contributors and audited 110 packages in 6.204s

10 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities

+ npx percy snapshot ./
[percy] Downloading Chromium 885264...
[percy] Successfully downloaded Chromium 885264
[percy] Error: Failed to launch browser. 
/opt/atlassian/pipelines/agent/build/node_modules/@percy/core/.local-chromium/885264/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
'


Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.
Error: Failed to launch browser.
/opt/atlassian/pipelines/agent/build/node_modules/@percy/core/.local-chromium/885264/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
'
 

1 answer

0 votes
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2022

Hi, @Santosh Kori, thank you for reaching out to Atlassian Community.

Could you please test your Pipelines build locally in a Docker container and see if it’s happening there as well? You can follow the steps described here: 

Looking forward to hearing from you. 

Kind regards,
Caroline 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events