From 04f5b7da416c9d784635fdc4b5aca553179edde0 Mon Sep 17 00:00:00 2001 From: aya Date: Sat, 26 Jul 2025 18:33:42 +0300 Subject: [PATCH] Modify test command --- .../workflows/Repeated_tests_endurancce.yml | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index 0632cb0..0c1f286 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -39,18 +39,19 @@ jobs: - name: Initialize CSV run: echo "TestName,Iteration,Phase,HeapAlloc(KB),RSS(KB),Timestamp" > memory_metrics.csv - - name: Repeated test runs - run: | - set +e - for i in {1..80}; do - echo "Iteration $i: measuring memory BEFORE the tests..." - go run tools/memory_record.go --iteration $i --phase start - echo "Running tests (iteration $i)..." - go test -v -tags '!stress' ./... - echo "Iteration $i: measuring memory AFTER the tests..." - go run tools/memory_record.go --iteration $i --phase end - done - set -e + - name: Repeated test runs + run: | + set +e + for i in {1..20}; do + echo "Iteration $i: measuring memory BEFORE the tests..." + go run tools/memory_record.go --iteration $i --phase start + echo "Running tests (iteration $i)..." + go test -v -tags=stress ./... + echo "Iteration $i: measuring memory AFTER the tests..." + go run tools/memory_record.go --iteration $i --phase end + done + set -e + - name: Upload memory_metrics.csv uses: actions/upload-artifact@v4