StackStorm / st2chatops

Packaging environment for building StackStorm chatops native packages
Apache License 2.0
32 stars 41 forks source link

Fix the CI build: docker-compose and ifconfig changes #179

Closed arm4b closed 1 year ago

arm4b commented 1 year ago

This PR is an effort to fix the CI build which started to fail due to upstream changes.

After pinning the docker-compose, the current stage has reached the testing step where now hubot fails with:

[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] ERROR Failed to authenticate: connect ECONNREFUSED 127.0.0.1:443
[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] ERROR Error: connect ECONNREFUSED 127.0.0.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] ERROR Error: connect ECONNREFUSED 127.0.0.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] INFO Hubot will shut down ...
[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] INFO Disconnected from Slack RTM
[Mon Sep 19 2022 11:46:16 GMT+0000 (Coordinated Universal Time)] INFO Exiting...
ERROR: 1
arm4b commented 1 year ago

I suspect :443 connection refused means that the local st2 instance didn't start that's used for testing the hubot.

arm4b commented 1 year ago

Turns out the 127.0.0.1 connection refused issue was in the wrong parsing instructions for docker0 interface IP, which changed due to the newer OS and ifconfig format.