Universum
Universum copied to clipboard
Cleaning workspace Failed
Description
Step 'Cleaning workspace' often fails during long (over 2 hours) builds
Steps to reproduce
- Prepare configuration with many long-running build/test commands (more than 2 hours)
- Run Universum
Expected result
Cleaning up the repository should be successful
Actual result
[P4#run] Errors during command execution( "p4 revert -k -c default //..." )
[Error]: 'Proxy unable to communicate with remote server:\nTCP receive failed.\nread: socket: Connection reset by peer'
<Cleaning workspace Failed>
Environment
- OS: Ubuntu 16.04.5
- Python version 3.7
- Universum version 0.18.7
Additional context
The probability of error is the higher with long duration build.
Dear @k-dovgan, Is it possible to try to reconnect with P4 before revert command execution?
I was almost sure reconnecting before cleaning the workspace should fix the problem, but https://github.com/Samsung/Universum/blob/dccce1b9a03799eb9c8d3ae064c513b109d8ab5f/universum/modules/vcs/perforce_vcs.py#L584 It actually is already there... So, I guess, the problem is not in an expired session