Hi All, I am trying to integrate pact_verifier_cli...
# general
s
Hi All, I am trying to integrate pact_verifier_cli tool in github workflow (Uses docker container) and during verification am facing this issue. Any ideas?
Copy code
2024-03-27T16:38:20.846579Z  INFO main pact_verifier: Pact file requires plugins, will load those now
2024-03-27T16:38:20.846804Z  WARN tokio-runtime-worker pact_plugin_driver::metrics: 

Please note:
We are tracking this plugin load anonymously to gather important usage statistics.
To disable tracking, set the 'PACT_DO_NOT_TRACK' environment variable to 'true'.


2024-03-27T16:39:21.018928Z ERROR                 main pact_plugin_driver::child_process: Timeout waiting to get plugin startup info: timed out waiting on channel
2024-03-27T16:39:21.021483Z  WARN                 main pact_plugin_driver::plugin_manager: Child process with PID 3060 was not found
2024-03-27T16:39:21.021844Z ERROR                 main pact_verifier_cli: Verification failed with error: Plugin process did not output the correct startup message in 60 seconds: timed out waiting on channel
When I run locally everything works fine. Here are version I am using
Copy code
pact verifier version   : v0.10.4
pact specification      : v4.0
models version          : v1.0.9
y
do you have the plugin installed locally and not in your container. the version of the cli is old. the latest should auto install plugins if required and known. which plugin are you trying to use?
s
@Yousaf Nabi (pactflow.io): Running locally works fine. The issue is when running in github workflow in server (which uses docker container). The plugins are installed in properly in container in “~/.pact/plugins/“. We use custom rust plugin (to add support for websockets).
y
does your plugin actually run in the container? the message is suggesting pact tried to start but failed to do so.
if it does outside of pact, there may be logs when run with pact but they would come from your plugin and be in the plugins log folder depending on your implementation
s
Thanks for the pointers. Let me debug…