Skip to content

Commit e211295

Browse files
Combine all jobs into one workflow; change schedule to weekly
1 parent 9bfb371 commit e211295

4 files changed

Lines changed: 109 additions & 174 deletions

.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: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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

0 commit comments

Comments
 (0)