Skip to content

Commit

Permalink
feat: add vault large directory testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
ermineJose committed Dec 5, 2024
1 parent c716e5d commit d4e0025
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/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
Expand Down

0 comments on commit d4e0025

Please sign in to comment.