I added an environment variable with a repo url to my project.
The variable is used as : git clone $AUTH_CLONE_URL in my config.yml. Intermittently, it is not picked up by the config, and we get an error saying the git clone command is incomplete. Sometimes the tests pass when it gets populated in the command correctly.
Figured out the issue, the tests were failing for any PR submitted against the master branch. The variables contain sensitive information, and hence wouldn’t be loaded for these. I skipped the integration tests for anything that wasn’t merged in master branch, and everything runs fine now.