我陷入了这个问题。我正在运行柏树测试。当我在本地运行时,它运行顺利。当我在 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 上 headless 运行我的规范时, Cypress 因套接字错误而意外关闭。
错误代码 :
测试运行程序通过带有信号 SIGSEGV 的退出事件意外退出
请搜索 Cypress 文档以获取可能的解决方案:
https://on.cypress.io
平台: linux (Debian - 10.5)
Cypress 版本: 8.6.0
最佳答案
通过将 cypress 版本恢复到 7.6.0 解决了问题。
关于javascript - Cypress 测试运行程序通过在 circleCI 中带有信号 SIGSEGV 的退出事件意外退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69658152/