From 04f5b7da416c9d784635fdc4b5aca553179edde0 Mon Sep 17 00:00:00 2001 From: aya Date: Sat, 26 Jul 2025 18:33:42 +0300 Subject: [PATCH 1/4] 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 From 41c1e8de2d9beb9bf88f6d2afeced6bf7fbd9c33 Mon Sep 17 00:00:00 2001 From: aya Date: Sat, 26 Jul 2025 18:36:08 +0300 Subject: [PATCH 2/4] Fix test command --- .github/workflows/Repeated_tests_endurancce.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index 0c1f286..cacf036 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -39,8 +39,8 @@ jobs: - name: Initialize CSV run: echo "TestName,Iteration,Phase,HeapAlloc(KB),RSS(KB),Timestamp" > memory_metrics.csv - - name: Repeated test runs - run: | + - name: Repeated test runs + run: | set +e for i in {1..20}; do echo "Iteration $i: measuring memory BEFORE the tests..." From a0e9d8cb02060f79df2e16353622d796c471c110 Mon Sep 17 00:00:00 2001 From: aya Date: Sat, 26 Jul 2025 18:38:47 +0300 Subject: [PATCH 3/4] Fix indentation --- .../workflows/Repeated_tests_endurancce.yml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index cacf036..f5e1149 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -41,16 +41,16 @@ jobs: - 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 + 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 From 57fc6b3a04bd48e171e7027a9fd1ce7c85a684fe Mon Sep 17 00:00:00 2001 From: aya Date: Sun, 27 Jul 2025 22:03:21 +0300 Subject: [PATCH 4/4] Increase number of iterations --- .github/workflows/Repeated_tests_endurancce.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index f5e1149..3cd7820 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -42,7 +42,7 @@ jobs: - name: Repeated test runs run: | set +e - for i in {1..20}; do + 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)..."