I’m experiencing inconsistent behavour when doing pip install over restored venv. Pip install has some version conflict warning (another issue), which passes and gets things installed first time. But when rebuild happens and venv is restored from the cache, pip fails hard with version inconsistencies. The weird part is that if I rebuild with ssh enabled and then execute the same pip install commands in the container, everything is fine.
When you rebuild, are you doing so without cache? If so, it’s quite possible that the cache is causing this, and incrementing the cache key would be a fix (v3 to v4).
Could you post a link to a build where you’re building without cache, and one where you’re building with cache? Only CircleCI employees will be able to see the builds, unless they’re open source.
Exactly. Because the same pip command is OK the first time. Moreover, if you rerun with ssh, login there and try executing pip from shell, it runs with no problem.
We fixed this build by fixing pip warnings, but I’m just curious about this behaviour. It might suggest some CircleCI bug.