我陷入了这个问题。我正在运行 Cypress 测试。当我在本地运行时,它可以顺利运行。但是当我在 CircleCI 上运行时,它会在某些执行之后抛出错误。
以下是我收到的错误信息:
[334:1020/170552.614728:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[334:1020/170552.616006:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[334:1020/170552.616185:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[521:1020/170552.652819:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader
当前行为:
当我在CircleCI上运行我的规范时,使用无头浏览器时,Cypress因套接字错误意外关闭。
错误信息:
测试运行程序通过退出事件以信号SIGSEGV意外退出
请搜索Cypress文档以获取可能的解决方案:
平台:linux (Debian - 10.5)
Cypress版本:8.6.0