Skip to content

Commit

Permalink
split upgrade workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Dec 19, 2024
1 parent 61fd504 commit 15459ed
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci-dgraph-upgrade-tests
name: ci-dgraph-core-upgrade-tests
on:
pull_request:
paths:
Expand Down Expand Up @@ -31,16 +31,19 @@ jobs:
#!/bin/bash
# clean cache
go clean -testcache
- name: Run Upgrade Tests
- name: Run Core Upgrade Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
export DGRAPH_UPGRADE_MAIN_ONLY=true
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the tests
go test -v -timeout=120m -failfast -tags=upgrade ./...
# run the core upgrade tests
go test github.com/dgraph-io/dgraph/v24/ee/acl
github.com/dgraph-io/dgraph/v24/worker
github.com/dgraph-io/dgraph/v24/query
-v -timeout=120m -failfast -tags=upgrade ./...
# clean up docker containers after test execution
go clean -testcache
# sleep
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/ci-dgraph-system-upgrade-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci-dgraph-system-upgrade-tests
on:
pull_request:
paths:
- '**/*.go'
- '**/go.mod'
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- 'release/**'
jobs:
dgraph-upgrade-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
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
export DGRAPH_UPGRADE_MAIN_ONLY=true
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the sytem upgrade tests
go test github.com/dgraph-io/dgraph/v24/systest/mutations-and-queries
github.com/dgraph-io/dgraph/v24/systest/plugin
github.com/dgraph-io/dgraph/v24/systest/license
github.com/dgraph-io/dgraph/v24/systest/multi-tenancy
-v -timeout=120m -failfast -tags=upgrade ./...
# clean up docker containers after test execution
go clean -testcache
# sleep
sleep 5

0 comments on commit 15459ed

Please sign in to comment.