Specify timeout for every step
This commit is contained in:
parent
af7204418f
commit
ffa1882445
3 changed files with 23 additions and 17 deletions
|
@ -38,7 +38,8 @@ if __name__ == '__main__':
|
|||
'${SRC}/scripts/premerge_checks.py --check-clang-format --check-clang-tidy',
|
||||
],
|
||||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'}
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 120,
|
||||
}
|
||||
windows_buld_step = {
|
||||
'label': ':windows: build and test windows',
|
||||
|
@ -60,7 +61,8 @@ if __name__ == '__main__':
|
|||
'}',
|
||||
],
|
||||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}windows'}
|
||||
'agents': {'queue': f'{queue_prefix}windows'},
|
||||
'timeout_in_minutes': 120,
|
||||
}
|
||||
steps.append(linux_buld_step)
|
||||
steps.append(windows_buld_step)
|
||||
|
@ -77,7 +79,8 @@ if __name__ == '__main__':
|
|||
],
|
||||
'allow_dependency_failure': True,
|
||||
'artifact_paths': ['artifacts/**/*'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'}
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 10,
|
||||
}
|
||||
steps.append(report_step)
|
||||
print(yaml.dump({'steps': steps}))
|
||||
|
|
|
@ -33,7 +33,8 @@ if __name__ == '__main__':
|
|||
'--projects="clang;clang-tools-extra;libc;libcxx;libcxxabi;lld;libunwind;mlir;flang"',
|
||||
],
|
||||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'}
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 120,
|
||||
}
|
||||
windows_buld_step = {
|
||||
'label': ':windows: build and test windows',
|
||||
|
@ -55,7 +56,8 @@ if __name__ == '__main__':
|
|||
'}',
|
||||
],
|
||||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||
'agents': {'queue': f'{queue_prefix}windows'}
|
||||
'agents': {'queue': f'{queue_prefix}windows'},
|
||||
'timeout_in_minutes': 120,
|
||||
}
|
||||
steps.append(linux_buld_step)
|
||||
steps.append(windows_buld_step)
|
||||
|
|
|
@ -21,20 +21,21 @@ if __name__ == '__main__':
|
|||
diff_id = os.getenv("ph_buildable_diff")
|
||||
steps = []
|
||||
create_branch_step = {
|
||||
'label': 'create branch',
|
||||
'key': 'create-branch',
|
||||
'commands': ['scripts/buildkite/apply_patch.sh'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'}
|
||||
'label': 'create branch',
|
||||
'key': 'create-branch',
|
||||
'commands': ['scripts/buildkite/apply_patch.sh'],
|
||||
'agents': {'queue': f'{queue_prefix}linux'},
|
||||
'timeout_in_minutes': 20,
|
||||
}
|
||||
build_linux_step = {
|
||||
'trigger': 'premerge-checks',
|
||||
'label': ':rocket: build and test',
|
||||
'async': False,
|
||||
'depends_on': 'create-branch',
|
||||
'build': {
|
||||
'branch': f'phab-diff-{diff_id}',
|
||||
'env': {'scripts_branch': '${BUILDKITE_BRANCH}'},
|
||||
},
|
||||
'trigger': 'premerge-checks',
|
||||
'label': ':rocket: build and test',
|
||||
'async': False,
|
||||
'depends_on': 'create-branch',
|
||||
'build': {
|
||||
'branch': f'phab-diff-{diff_id}',
|
||||
'env': {'scripts_branch': '${BUILDKITE_BRANCH}'},
|
||||
},
|
||||
}
|
||||
for e in os.environ:
|
||||
if e.startswith('ph_'):
|
||||
|
|
Loading…
Reference in a new issue