forked from memgraph/memgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
161 lines (152 loc) · 5.28 KB
/
Copy pathdiff.yaml
File metadata and controls
161 lines (152 loc) · 5.28 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Copyright (c) Magnon Compute Corporation. All rights reserved.
name: "Diff"
concurrency:
group: ${{ inputs.ref || github.head_ref || github.sha }}
cancel-in-progress: true
permissions:
contents: read
on:
merge_group:
pull_request:
workflow_dispatch:
inputs:
community_core:
type: boolean
default: true
coverage:
description: 'Comma-separated list of coverage tests to run (e.g. core,clang_tidy). Use "none" to skip all coverage tests.'
default: 'core,clang_tidy'
debug_core:
type: boolean
default: true
debug_integration:
type: boolean
default: true
jepsen_core:
type: boolean
default: true
release:
description: 'Comma-separated list of release tests to run (e.g. core,benchmark,e2e,stress,query_modules). Use "none" to skip all release tests.'
default: 'core,benchmark,e2e,stress,query_modules'
malloc_build:
type: boolean
default: true
workflow_call:
inputs:
community_core:
type: boolean
default: true
coverage:
description: 'Comma-separated list of coverage tests to run (e.g. core,clang_tidy). Use "none" to skip all coverage tests.'
default: 'core,clang_tidy'
type: string
debug_core:
type: boolean
default: true
debug_integration:
type: boolean
default: true
jepsen_core:
type: boolean
default: true
release:
description: 'Comma-separated list of release tests to run (e.g. core,benchmark,e2e,stress,query_modules). Use "none" to skip all release tests.'
default: 'core,benchmark,e2e,stress,query_modules'
type: string
malloc_build:
type: boolean
default: true
ref:
description: 'Branch or commit ref to run the workflow on'
required: false
default: ''
type: string
jobs:
DiffSetup:
runs-on: magnon-enterprise-runners
timeout-minutes: 30
outputs:
run_community_core: ${{ steps.setup.outputs.run_community_core }}
run_coverage_core: ${{ steps.setup.outputs.run_coverage_core }}
run_coverage_clang_tidy: ${{ steps.setup.outputs.run_coverage_clang_tidy }}
run_debug_core: ${{ steps.setup.outputs.run_debug_core }}
run_debug_integration: ${{ steps.setup.outputs.run_debug_integration }}
run_jepsen_core: ${{ steps.setup.outputs.run_jepsen_core }}
run_release_core: ${{ steps.setup.outputs.run_release_core }}
run_release_benchmark: ${{ steps.setup.outputs.run_release_benchmark}}
run_release_e2e: ${{ steps.setup.outputs.run_release_e2e }}
run_release_stress: ${{ steps.setup.outputs.run_release_stress }}
run_release_query_modules: ${{ steps.setup.outputs.run_release_query_modules }}
run_malloc_build: ${{ steps.setup.outputs.run_malloc_build }}
env:
GH_CONTEXT: ${{ toJson(github) }}
GH_CONTEXT_FILE_NAME: github_context.json
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
fetch-depth: 0
- name: Dump GitHub context
run: echo "$GH_CONTEXT" >> "$GH_CONTEXT_FILE_NAME"
- name: Set up diff execution
id: setup
run: ./tools/diff_setup.py --gh-context-path "$GH_CONTEXT_FILE_NAME" --base-branch "origin/master"
Community:
needs: DiffSetup
uses: ./.github/workflows/diff_community.yaml
with:
ref: ${{ inputs.ref || github.ref }}
arch: 'amd'
os: 'ubuntu-24.04'
run_core: ${{ needs.DiffSetup.outputs.run_community_core }}
secrets: inherit
Coverage:
needs: DiffSetup
uses: ./.github/workflows/diff_coverage.yaml
with:
ref: ${{ inputs.ref || github.ref }}
arch: 'amd'
os: 'ubuntu-24.04'
run_core: ${{ needs.DiffSetup.outputs.run_coverage_core }}
run_clang_tidy: ${{ needs.DiffSetup.outputs.run_coverage_clang_tidy }}
secrets: inherit
Debug:
needs: DiffSetup
uses: ./.github/workflows/diff_debug.yaml
with:
ref: ${{ inputs.ref || github.ref }}
arch: 'amd'
os: 'ubuntu-24.04'
run_core: ${{ needs.DiffSetup.outputs.run_debug_core }}
run_integration: ${{ needs.DiffSetup.outputs.run_debug_integration }}
secrets: inherit
Jepsen:
needs: DiffSetup
uses: ./.github/workflows/diff_jepsen.yaml
with:
ref: ${{ inputs.ref || github.ref }}
run_core: ${{ needs.DiffSetup.outputs.run_jepsen_core }}
secrets: inherit
Release:
needs: DiffSetup
uses: ./.github/workflows/diff_release.yaml
with:
ref: ${{ inputs.ref || github.ref }}
arch: 'amd'
os: 'ubuntu-24.04'
run_core: ${{ needs.DiffSetup.outputs.run_release_core }}
run_benchmark: ${{ needs.DiffSetup.outputs.run_release_benchmark }}
run_e2e: ${{ needs.DiffSetup.outputs.run_release_e2e }}
run_stress: ${{ needs.DiffSetup.outputs.run_release_stress }}
run_query_modules: ${{ needs.DiffSetup.outputs.run_release_query_modules }}
secrets: inherit
Malloc:
needs: DiffSetup
uses: ./.github/workflows/diff_malloc.yaml
with:
ref: ${{ inputs.ref || github.ref }}
arch: 'amd'
os: 'ubuntu-24.04'
run_build: ${{ needs.DiffSetup.outputs.run_malloc_build }}
secrets: inherit