GithubHelp home page GithubHelp logo

Timeout fail on CircleCI about loki HOT 10 OPEN

oblador avatar oblador commented on August 16, 2024 1
Timeout fail on CircleCI

from loki.

Comments (10)

sampaiodiego avatar sampaiodiego commented on August 16, 2024 1

I was only able to run loki on CircleCI using an image with Chrome and node installed and then running loki on chrom.app instead of chrome.docker.

from loki.

oblador avatar oblador commented on August 16, 2024

Think this is related to #92 and #90

from loki.

jagregory avatar jagregory commented on August 16, 2024

I'm seeing the same issue with CircleCI. Could it be related to the way Docker networking is setup in Circle? https://circleci.com/docs/2.0/building-docker-images/#separation-of-environments That sounds suspiciously like Loki wouldn't be able to connect directly to the Chrome containers, right?

from loki.

dbartholomae avatar dbartholomae commented on August 16, 2024

I actually get the following error message:

[01:29:21] → Command failed: docker images -q yukinying/chrome-headless:63.0.3230.2
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Will investigate more.

from loki.

dbartholomae avatar dbartholomae commented on August 16, 2024

@oblador My naive approach would be to set up an additional target that doesn't spin up docker, but instead connects to a predefined docker container. This would require users that set up CircleCI to ensure the correct container is running and is reachable, but to be honest I don't see a good way to spin up the docker container from inside a CircleCI command. I'll experiment with this and hopefully provide a PR :)

from loki.

oblador avatar oblador commented on August 16, 2024

@dbartholomae Looking forward to it!

from loki.

dbartholomae avatar dbartholomae commented on August 16, 2024

@oblador I've played around with some concepts and in the end came up with the following thoughts:
Instead of having a separate target the original target needs to be able to switch over to using an already running Docker container. Otherwise the user of loki would need to run different target configs on CI and local, which is bound to lead some false positives in the tests.
Here's my current code:
https://github.com/dbartholomae/loki/tree/add_remote_chrome_target

It's not done yet, currently I'm stuck with two issues, one being that I cannot run it on windows because the Docker container cannot connect to the webserver running on host that has storybook in it. The other (and in my opinion more important) issue is that on Linux all screenshots are taken from the same page, so it seems the iframe isn't loaded correctly. I'll most likely continue working on this next weekend.

from loki.

kristof-mattei avatar kristof-mattei commented on August 16, 2024

#218 to wait little longer when loading storybooks seems to help A lot.

from loki.

ianhansborough avatar ianhansborough commented on August 16, 2024

I was only able to run loki on CircleCI using an image with Chrome and node installed and then running loki on chrom.app instead of chrome.docker.

Which image did you use for this? I had a similar thought, but I'm still seeing differences in ~20% of my screenshots.

from loki.

remleduff avatar remleduff commented on August 16, 2024

This could potentially be fixed by #478

from loki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.