From 745cb056de52c0fecc9eabb16dffdb9ad857d901 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 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index f306759803..a297287109 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -567,7 +567,28 @@ 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 + rm -rf ${{ matrix.ant_path }}/ant + env: + SN_LOG: "v" + timeout-minutes: 15 + + - name: validate vault with file directories with large no. of 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/ant --log-output-dest=data-dir file upload test_directory_vault + ./target/release/ant --log-output-dest=data-dir vault sync + rm -rf test_directory_vault + rm -rf ${{ matrix.ant_path }}/ant env: ANT_LOG: "v" timeout-minutes: 15