Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test): open load tests #8300

Merged
merged 5 commits into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: ci-dgraph-load-tests
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "*/30 * * * *"
jobs:
dgraph-load-tests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Check protobuf
run: |
cd ./protos
go mod tidy
make regenerate
git diff --exit-code -- .
- name: Make Docker Image
run: make image-local
- name: Make Linux Build
run: |
#!/bin/bash
# go settings
export GOOS=linux
export GOARCH=amd64
# make dgraph binary
make dgraph
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
# build the test binary
cd t; go build .
# clean up docker containers before test execution
./t -r
- name: Run Load Tests
run: |
#!/bin/bash
# clean cache
go clean -testcache
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin
# build the test binary
cd t; go build .
# run the load tests
./t --suite=load
# clean up docker containers after test execution
./t -r
- name: Cleaning Up $GITHUB_WORKSPACE
# Volume auto mounted by gh actions pointing to the current working-directory
run: find /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true