Merge pull request #214 from google/retry-agent-shutdowns
retry build step if agent is gone or shut down
This commit is contained in:
commit
a7bb00c71e
2 changed files with 16 additions and 0 deletions
|
@ -56,6 +56,10 @@ if __name__ == '__main__':
|
|||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 120,
|
||||
'retry': {'automatic': [
|
||||
{'exit_status': -1, 'limit': 2}, # Agent lost
|
||||
{'exit_status': 255, 'limit': 2}, # Forced agent shutdown
|
||||
]},
|
||||
}
|
||||
clear_sccache = 'powershell -command "sccache --stop-server; ' \
|
||||
'Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR; ' \
|
||||
|
@ -86,6 +90,10 @@ if __name__ == '__main__':
|
|||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}windows'},
|
||||
'timeout_in_minutes': 120,
|
||||
'retry': {'automatic': [
|
||||
{'exit_status': -1, 'limit': 2}, # Agent lost
|
||||
{'exit_status': 255, 'limit': 2}, # Forced agent shutdown
|
||||
]},
|
||||
}
|
||||
deps = []
|
||||
if os.getenv('ph_skip_linux') is None:
|
||||
|
|
|
@ -49,6 +49,10 @@ if __name__ == '__main__':
|
|||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 120,
|
||||
'retry': {'automatic': [
|
||||
{'exit_status': -1, 'limit': 2}, # Agent lost
|
||||
{'exit_status': 255, 'limit': 2}, # Forced agent shutdown
|
||||
]},
|
||||
}
|
||||
clear_sccache = 'powershell -command "sccache --stop-server; ' \
|
||||
'Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR; ' \
|
||||
|
@ -82,6 +86,10 @@ if __name__ == '__main__':
|
|||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}windows'},
|
||||
'timeout_in_minutes': 120,
|
||||
'retry': {'automatic': [
|
||||
{'exit_status': -1, 'limit': 2}, # Agent lost
|
||||
{'exit_status': 255, 'limit': 2}, # Forced agent shutdown
|
||||
]},
|
||||
}
|
||||
if os.getenv('ph_skip_linux') is None:
|
||||
steps.append(linux_buld_step)
|
||||
|
|
Loading…
Reference in a new issue