Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions .github/workflows/ci-dgraph-integration2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
with:
fetch-depth: 0

- name: Restore benchmark dataset cache
uses: actions/cache/restore@v4
with:
path: dgraphtest/datafiles
key: dataset-dgraphtest-${{ hashFiles('benchdata/benchmark-data-version') }}

- name: Ensure datafiles directory
run: mkdir -p dgraphtest/datafiles

- name: Set up Go
uses: actions/setup-go@v6
with:
Expand All @@ -55,3 +64,10 @@ jobs:
go clean -testcache
# sleep
sleep 5

- name: Save benchmark dataset cache
if: success()
uses: actions/cache/save@v4
with:
path: dgraphtest/datafiles
key: dataset-dgraphtest-${{ hashFiles('benchdata/benchmark-data-version') }}
15 changes: 14 additions & 1 deletion .github/workflows/ci-dgraph-ldbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- name: Checkout Dgraph
uses: actions/checkout@v5

- name: Restore LDBC dataset cache
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/test-data
key: dataset-ldbc-${{ hashFiles('benchdata/benchmark-data-version') }}

- name: Set up Go
uses: actions/setup-go@v6
with:
Expand Down Expand Up @@ -61,6 +67,13 @@ jobs:
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the ldbc tests
cd t; ./t --suite=ldbc
cd t; ./t --suite=ldbc --tmp=${{ github.workspace }}/test-data --keep-data
# clean up docker containers after test execution
./t -r

- name: Save LDBC dataset cache
if: success()
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/test-data
key: dataset-ldbc-${{ hashFiles('benchdata/benchmark-data-version') }}
15 changes: 14 additions & 1 deletion .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Restore load test dataset cache
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/test-data
key: dataset-load-${{ hashFiles('benchdata/benchmark-data-version') }}

- name: Set up Go
uses: actions/setup-go@v6
with:
Expand Down Expand Up @@ -60,8 +66,15 @@ jobs:
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the load tests
cd t; ./t --suite=load
cd t; ./t --suite=load --tmp=${{ github.workspace }}/test-data --keep-data
# clean up docker containers after test execution
./t -r
# sleep
sleep 5

- name: Save load test dataset cache
if: success()
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/test-data
key: dataset-load-${{ hashFiles('benchdata/benchmark-data-version') }}
Loading
Loading