Universum icon indicating copy to clipboard operation
Universum copied to clipboard

Cleaning workspace Failed

Open a-osipov-toxa opened this issue 5 years ago • 2 comments

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.

a-osipov-toxa avatar Jul 21 '20 12:07 a-osipov-toxa

Dear @k-dovgan, Is it possible to try to reconnect with P4 before revert command execution?

a-osipov-toxa avatar Jul 21 '20 12:07 a-osipov-toxa

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

k-dovgan avatar Jul 21 '20 13:07 k-dovgan