Skip to content

.github/workflows: Migrate workflows to Blacksmith runners #9530

.github/workflows: Migrate workflows to Blacksmith runners

.github/workflows: Migrate workflows to Blacksmith runners #9530

name: ci-dgraph-load-tests
on:
pull_request:
paths:
- "!**/*.md"
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- release/**
permissions:
contents: read
jobs:
dgraph-load-tests:
if: false # TEMPORARILY DISABLED
# if: github.event.pull_request.draft == false
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- 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 # this internally builds dgraph binary
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Build Test Binary
run: |
#!/bin/bash
# build the test binary
cd t; go build .
- name: Clean Up Environment
run: |
#!/bin/bash
# clean cache
go clean -testcache
# clean up docker containers before test execution
cd t; ./t -r
- name: Run Load Tests
run: |
#!/bin/bash
# go env settings
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the load tests
cd t; ./t --suite=load
# clean up docker containers after test execution
./t -r
# sleep
sleep 5