loki: Error trying run Loki on CircleCI

Hello folks, we are trying run Loki in CircleCI and we are receiving this error:

loki test v0.18.1
[17:53:06] Chrome (docker) [started]
[17:53:06] Prepare environment [started]
[17:53:12] Prepare environment [completed]
[17:53:12] Start [started]
[17:53:19] Start [failed]
[17:53:19] → Chrome failed to start with error "[1129/175314.012062:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
[1129/175314.022201:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
DevTools listening on ws://0.0.0.0:37689/devtools/browser/298ceb3f-62ad-48c3-90c6-18d081177435"
[17:53:19] Chrome (docker) [failed]
[17:53:19] → Chrome failed to start with error "[1129/175314.012062:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
[1129/175314.022201:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
DevTools listening on ws://0.0.0.0:37689/devtools/browser/298ceb3f-62ad-48c3-90c6-18d081177435"
Chrome failed to start with error "[1129/175314.012062:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
[1129/175314.022201:WARNING:resource_bundle.cc(366)] locale_file_path.empty() for locale 
DevTools listening on ws://0.0.0.0:37689/devtools/browser/298ceb3f-62ad-48c3-90c6-18d081177435"
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Exited with code 1

We are trying run with this CircleCI config:

version: 2
image: ubuntu:16.04
jobs:
  build:
    docker:
      - image: circleci/node:8
    working_directory: ~/app
    steps:
      - checkout
      - setup_remote_docker
      - run: |
          yarn
          yarn test:visual

Our run command is this:

"test:visual": "npm run build-storybook -s /pubic && loki --reactUri \"file:./storybook-static\" --chromeFlags=\"--no-sandbox --headless --disable-gpu --hide-scrollbars\"",

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (4 by maintainers)

Most upvoted comments

For the very specific case of CircleCI there seem to be a solution, moving to machine executor. The exect commit that solved it on my test repo - https://github.com/AvnerCohen/lok-dnd-repro/commit/9999c29d6305395db55432a1c4eb3b880c421670 This is admittedly not the cleanest option, but it totally does the job 😃

https://github.com/oblador/loki/pull/218

I managed to drop down my error rate to 0 with this one ^

My conclusion at this point is that this is a CircleCi issue, opened a case there, will update.