From 6e70ec4c442444bfd0f7be37bddecd05152b7339 Mon Sep 17 00:00:00 2001 From: Ermine Jose Date: Tue, 3 Dec 2024 17:16:05 +0530 Subject: [PATCH] feat: add vault large directory testcase --- .github/workflows/merge.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index f306759803..caea250883 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -567,7 +567,27 @@ jobs: time ./target/release/ant --log-output-dest=data-dir file upload random_1GB.bin ./target/release/ant --log-output-dest=data-dir vault sync rm -rf random*.bin - rm -rf ${{ matrix.ant_path }}/autonomi + env: + SN_LOG: "v" + timeout-minutes: 15 + + - name: Time profiling for Different files + if: matrix.os != 'windows-latest' + run: | + set -e + mkdir test_directory_vault + cd test_directory_vault + for dir in {1..5}; do + mkdir subdir_$dir + for file in {1..100}; do + dd if=/dev/zero of=subdir_$dir/file_$file.bin bs=100M count=1 + done + done + cd ../ + time ./target/release/autonomi --log-output-dest=data-dir file upload test_directory_vault + ./target/release/autonomi --log-output-dest=data-dir vault sync + rm -rf test_directory_vault + rm -rf ${{ matrix.ant_path }}/autonomi env: ANT_LOG: "v" timeout-minutes: 15