We have a project GitHub - twilio/twilio-oai-generator: Twilio OpenAPI client generator. It used to work fine for most of the time. However, we did not make any change to the go test files at all in this PR. But it is showing some weird error in github actions pipeline
make test-docker SONAR_TOKEN=*** LANGUAGES=go
shell: /usr/bin/bash -e {0}
env:
DOCKER_LOGIN: ***
JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/11.0.23-9/x64
JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Zulu_jdk/11.0.23-9/x64
... // skipping a lot of download and progress statements
Waiting for tests to complete.....
Failed go with EXIT code 1
{"Time":"2024-05-03T06:42:31.359019859Z","Action":"start","Package":"go-client/helper/client"}
{"Time":"2024-05-03T06:42:31.359100811Z","Action":"output","Package":"go-client/helper/client","Output":"? \tgo-client/helper/client\t[no test files]\n"}
{"Time":"2024-05-03T06:42:31.359119907Z","Action":"skip","Package":"go-client/helper/client","Elapsed":0}
FAIL go-client/helper/rest/api/v2010 [build failed]
FAIL go-client/helper/rest/flex/v1 [build failed]
... // other logs of tests that passed
make: *** [Makefile:14: test-docker] Error 1
Error: Process completed with exit code 2.
Firstly I would like to know why is this happening when there is no change made to go?
Secondly, we by-passed some rules and merged this PR in our main branch. Since then the go pipeline is not able to execute properly and it cancels in the middle, see a dummy PR:
make test-docker SONAR_TOKEN=*** LANGUAGES=go
shell: /usr/bin/bash -e {0}
env:
DOCKER_LOGIN: ***
JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/11.0.23-9/x64
JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Zulu_jdk/11.0.23-9/x64
// After a lot of download, progressing and extracting statements
Error: The operation was canceled.
I think the tests are not even running now. Why is this happening?
Thank you!