Skip to content

Commit

Permalink
action: smoke add v5 and zran in performance test
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <[email protected]>
  • Loading branch information
Desiki-high committed Nov 18, 2023
1 parent 31f6125 commit 7072794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,15 @@ jobs:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

performance-nydus-v6:
performance-nydus:
runs-on: ubuntu-latest
needs: [contrib-build, nydus-build]
strategy:
matrix:
include:
- mode: nydus_v5
- mode: nydus_v6
- mode: zran
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -234,4 +240,5 @@ jobs:
sudo bash misc/performance/prepare.sh
- name: BenchMark Test
run: |
export PERFORMANCE_TEST_MODE=${{ matrix.mode }}
sudo -E make smoke-performance
1 change: 1 addition & 0 deletions smoke/tests/tool/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func RunContainer(t *testing.T, image string, containerName string) {
containerMetrics.ReadCount > uint64(float64(args.BaselineReadCount)*1.05) {
t.Fatalf(fmt.Sprintf("Performance reduction with ReadAmount %d and ReadCount %d", containerMetrics.ReadAmountTotal, containerMetrics.ReadCount))
}
t.Logf(fmt.Sprintf("Performance Test: ReadAmount %d and ReadCount %d", containerMetrics.ReadAmountTotal, containerMetrics.ReadCount))
}

// getContainerMetrics get metrics by nydus api sock
Expand Down

0 comments on commit 7072794

Please sign in to comment.