Skip to content

Commit e163eba

Browse files
chore(test): change upgrade CI tests to a weekly workflow (#9532)
**Description** This PR moves the upgrade tests to a weekly test. Upgrade tests can sometimes take well over an hour and tend to bog down development. **Checklist** - [x] Code compiles correctly and linting passes locally
1 parent 9bfb371 commit e163eba

5 files changed

+144
-234
lines changed

.github/workflows/ci-dgraph-core-upgrade-tests.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/ci-dgraph-system-upgrade-tests-mt.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/ci-dgraph-system-upgrade-tests-mutations-and-queries.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/ci-dgraph-system-upgrade-tests-plugin.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: ci-dgraph-weekly-upgrade-tests
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 0
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
dgraph-upgrade-tests-mutations-and-queries:
13+
runs-on: blacksmith-16vcpu-ubuntu-2404
14+
timeout-minutes: 90
15+
steps:
16+
- uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Go
20+
uses: actions/setup-go@v6
21+
with:
22+
go-version-file: go.mod
23+
- name: Make Linux Build and Docker Image
24+
run: make docker-image
25+
- name: Clean Up Environment
26+
run: |
27+
#!/bin/bash
28+
# clean cache
29+
go clean -testcache
30+
- name: Run System Upgrade Tests
31+
run: |
32+
#!/bin/bash
33+
# go env settings
34+
export GOPATH=~/go
35+
# move the binary
36+
cp dgraph/dgraph ~/go/bin/dgraph
37+
# run the sytem upgrade tests
38+
go test -v -timeout=120m -failfast -tags=upgrade \
39+
github.com/hypermodeinc/dgraph/v25/systest/mutations-and-queries
40+
# clean up docker containers after test execution
41+
go clean -testcache
42+
# sleep
43+
sleep 5
44+
45+
dgraph-upgrade-tests-multi-tenancy:
46+
runs-on: blacksmith-8vcpu-ubuntu-2404
47+
timeout-minutes: 90
48+
steps:
49+
- uses: actions/checkout@v5
50+
with:
51+
fetch-depth: 0
52+
- name: Set up Go
53+
uses: actions/setup-go@v6
54+
with:
55+
go-version-file: go.mod
56+
- name: Make Linux Build and Docker Image
57+
run: make docker-image
58+
- name: Clean Up Environment
59+
run: |
60+
#!/bin/bash
61+
# clean cache
62+
go clean -testcache
63+
- name: Run System Upgrade Tests
64+
run: |
65+
#!/bin/bash
66+
# go env settings
67+
export GOPATH=~/go
68+
# move the binary
69+
cp dgraph/dgraph ~/go/bin/dgraph
70+
# run the sytem upgrade tests
71+
go test -v -timeout=120m -failfast -tags=upgrade \
72+
github.com/hypermodeinc/dgraph/v25/systest/multi-tenancy
73+
# clean up docker containers after test execution
74+
go clean -testcache
75+
# sleep
76+
sleep 5
77+
78+
dgraph-upgrade-tests-plugin:
79+
runs-on: blacksmith-4vcpu-ubuntu-2404
80+
timeout-minutes: 90
81+
steps:
82+
- uses: actions/checkout@v5
83+
with:
84+
fetch-depth: 0
85+
- name: Set up Go
86+
uses: actions/setup-go@v6
87+
with:
88+
go-version-file: go.mod
89+
- name: Make Linux Build and Docker Image
90+
run: make docker-image
91+
- name: Clean Up Environment
92+
run: |
93+
#!/bin/bash
94+
# clean cache
95+
go clean -testcache
96+
- name: Run System Upgrade Tests
97+
run: |
98+
#!/bin/bash
99+
# go env settings
100+
export GOPATH=~/go
101+
# move the binary
102+
cp dgraph/dgraph ~/go/bin/dgraph
103+
# run the sytem upgrade tests
104+
go test -v -timeout=120m -failfast -tags=upgrade \
105+
github.com/hypermodeinc/dgraph/v25/systest/plugin
106+
# clean up docker containers after test execution
107+
go clean -testcache
108+
# sleep
109+
sleep 5
110+
111+
dgraph-upgrade-tests-core:
112+
runs-on: blacksmith-16vcpu-ubuntu-2404
113+
timeout-minutes: 60
114+
steps:
115+
- uses: actions/checkout@v5
116+
with:
117+
fetch-depth: 0
118+
- name: Set up Go
119+
uses: actions/setup-go@v6
120+
with:
121+
go-version-file: go.mod
122+
- name: Make Linux Build and Docker Image
123+
run: make docker-image
124+
- name: Clean Up Environment
125+
run: |
126+
#!/bin/bash
127+
# clean cache
128+
go clean -testcache
129+
- name: Run Core Upgrade Tests
130+
run: |
131+
#!/bin/bash
132+
# go env settings
133+
export GOPATH=~/go
134+
# move the binary
135+
cp dgraph/dgraph ~/go/bin/dgraph
136+
# run the core upgrade tests
137+
go test -v -timeout=120m -failfast -tags=upgrade \
138+
github.com/hypermodeinc/dgraph/v25/acl \
139+
github.com/hypermodeinc/dgraph/v25/worker \
140+
github.com/hypermodeinc/dgraph/v25/query
141+
# clean up docker containers after test execution
142+
go clean -testcache
143+
# sleep
144+
sleep 5

0 commit comments

Comments
 (0)