Comments (10)
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.
Think this is related to #92 and #90
from loki.
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.
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.
@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.
@dbartholomae Looking forward to it!
from loki.
@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.
#218 to wait little longer when loading storybooks seems to help A lot.
from loki.
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 ofchrome.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.
This could potentially be fixed by #478
from loki.
Related Issues (20)
- Docker container doesn't stop
- Loki is not supporting node 14 but lambda only runs on node 14. HOT 4
- @loki/target-chrome-app has an undeclared dependency on @loki/core [0.33.0]
- A new command line argument so you can provide the path to the loki config file
- Update wait-on to the latest version to fix CVE-2023-45857 vulnerability
- Command failed with exit code 125 HOT 3
- example-react "Animation" tests fails
- Random false positives when testing stories for components that have not been modified
- Storybook 8 compatibility HOT 6
- chrome.docker differences when running in CI compared to on MacOS HOT 3
- React Native Example HOT 1
- Support createAsyncCallback in play function HOT 11
- React is not defined (Continuous Integration) HOT 1
- Error with yarn pnp
- Loki test ci on Bitbucket pipeline
- How to select html dialog element HOT 3
- TypeError: Failed to fetch dynamically imported module
- chromeEnableAnimations flag is not passed down as tabOptions
- Help on running loki with Vue HOT 1
- Loki + Storybook 8 problem with GitLab ci cd
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loki.