so about two days ago, travis ran a build on my private repo. the build succeeded, everything was fine. yesterday, my builds started to hang mid script phase for seemingly no reason. i ran the build in debug mode to try and figure it out. my .travis.yml only uses the install and script phases so i ran travis_run_install
and travis_run_script
. everything then ran perfectly fine passing all tests. being puzzled, i restarted the build that succeeded two days ago, and saw it now hanging the same way new builds hang. i have no clue anymore of what is causing the hang and how to fix it.
here is where it hangs:
the script phase runs a python script, which calls p = subprocess.Popen()
and later p.communicate(stdin)
on a loop. always, the sixth time this is done the process starts correctly, p.communicate sends the stdin and waits for the process to exit. the process though, while it starts it never receives the stdin and hangs waiting for input.
if anyone knows what is going on or how to fix it please let me know, i have been pulling my hair out all night.