• Steve Azzopardi's avatar
    Use build timeout when shorter then session timeout · 5bac09cd
    Steve Azzopardi authored
    For `waitForTerminal` check if the build timeout is actually shorter
    then the terminal session timeout. If so, parse the time left, show it
    to the user and use it as a timeout as well.
    
    The reason `timeout` is being updated and used for `time.After` (in the
    select statement) is so we have a good seperation between when
    `ctx.Done` is being called because the user actually cancelled the build
    and when the context deadline is reached.
    
    Add `RoundDuration` which is the same as `time.duration.Round` but since
    we are using go1.8 it is missing.
    
    Add a test cases for each scenario `waitForTerminal` has.
    5bac09cd
Name
Last commit
Last update
..
build.go Loading commit data...
build_logger.go Loading commit data...
build_logger_test.go Loading commit data...
build_test.go Loading commit data...
command.go Loading commit data...
config.go Loading commit data...
config_test.go Loading commit data...
consts.go Loading commit data...
container.go Loading commit data...
executor.go Loading commit data...
mock_Commander.go Loading commit data...
mock_Executor.go Loading commit data...
mock_ExecutorData.go Loading commit data...
mock_ExecutorProvider.go Loading commit data...
mock_FailuresCollector.go Loading commit data...
mock_JobTrace.go Loading commit data...
mock_JobTracePatch.go Loading commit data...
mock_Network.go Loading commit data...
mock_Shell.go Loading commit data...
network.go Loading commit data...
network_test.go Loading commit data...
shell.go Loading commit data...
support.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
trace.go Loading commit data...
variables.go Loading commit data...
variables_test.go Loading commit data...
version.go Loading commit data...