-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathci-dgraph-weekly-upgrade-tests.yml
More file actions
144 lines (138 loc) · 4.1 KB
/
ci-dgraph-weekly-upgrade-tests.yml
File metadata and controls
144 lines (138 loc) · 4.1 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
name: ci-dgraph-weekly-upgrade-tests
on:
schedule:
- cron: 0 0 * * 0
workflow_dispatch:
permissions:
contents: read
jobs:
dgraph-upgrade-tests-mutations-and-queries:
runs-on: blacksmith-16vcpu-ubuntu-2404
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Make Linux Build and Docker Image
run: make docker-image
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
- name: Run System Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the sytem upgrade tests
go test -v -timeout=120m -failfast -tags=upgrade \
github.com/dgraph-io/dgraph/v25/systest/mutations-and-queries
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5
dgraph-upgrade-tests-multi-tenancy:
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Make Linux Build and Docker Image
run: make docker-image
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
- name: Run System Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the sytem upgrade tests
go test -v -timeout=120m -failfast -tags=upgrade \
github.com/dgraph-io/dgraph/v25/systest/multi-tenancy
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5
dgraph-upgrade-tests-plugin:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Make Linux Build and Docker Image
run: make docker-image
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
- name: Run System Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the sytem upgrade tests
go test -v -timeout=120m -failfast -tags=upgrade \
github.com/dgraph-io/dgraph/v25/systest/plugin
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5
dgraph-upgrade-tests-core:
runs-on: blacksmith-16vcpu-ubuntu-2404
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Make Linux Build and Docker Image
run: make docker-image
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
- name: Run Core Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the core upgrade tests
go test -v -timeout=120m -failfast -tags=upgrade \
github.com/dgraph-io/dgraph/v25/acl \
github.com/dgraph-io/dgraph/v25/worker \
github.com/dgraph-io/dgraph/v25/query
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5