forked from vmware/splinterdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequences.lib.yml
77 lines (66 loc) · 1.82 KB
/
sequences.lib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#! Copyright 2018-2021 VMware, Inc.
#! SPDX-License-Identifier: Apache-2.0
#@ load("steps.lib.yml",
#@ "step_build_splinterdb_image",
#@ "step_test_with_image",
#@ "step_build_test",
#@ "get_task_timeout",
#@ )
---
#! Build plan sequences for various PR checks
#@ def sequence_pr_build_test_image(compiler):
- in_parallel:
fail_fast: true
steps:
- get: run-env-image-latest
passed: [ recreate-run-env ]
params: { format: oci }
- get: build-env-image-latest
passed: [ recreate-build-env ]
params: { format: oci }
- load_var: git-commit-sha
file: "github-pull-request/.git/resource/head_sha"
reveal: true
- #@ step_build_splinterdb_image("github-pull-request", compiler)
- #@ step_test_with_image()
#@ end
---
#@ def sequence_pr_test(compiler, quick=False, sanitize=None, is_debug=True):
- get: build-env-image-latest
passed: [ recreate-build-env ]
- #@ step_build_test(compiler, "github-pull-request", is_debug=is_debug, quick=quick, sanitize=sanitize)
#@ end
---
#@ def sequence_pr_clang_format():
- get: build-env-image-latest
passed: [ recreate-build-env ]
- load_var: base_ref
file: github-pull-request/.git/resource/base_sha
reveal: true
- task: format-check
timeout: #@ get_task_timeout()
image: build-env-image-latest
config:
platform: linux
inputs:
- name: github-pull-request
run:
dir: github-pull-request
path: ./format-check.sh
args: [ "((.:base_ref))" ]
#@ end
---
#@ def sequence_pr_shell_scripts():
- get: build-env-image-latest
passed: [ recreate-build-env ]
- task: check-shell-scripts
timeout: #@ get_task_timeout()
image: build-env-image-latest
config:
platform: linux
inputs:
- name: github-pull-request
run:
path: "github-pull-request/ci/tasks/pr-check-shell-scripts.sh"
#@ end
---