Skip to content

Commit

Permalink
test(CI): confirm opened FDs
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Jan 14, 2025
1 parent f8fb8b2 commit cb5962b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ jobs:
mkdir $ANT_DATA_PATH/client
ls -l $ANT_DATA_PATH
cp ./the-test-data.zip ./the-test-data_1.zip
./target/release/ant --log-output-dest data-dir file_TYPE upload "" > ./second_upload 2>&1
enrelease-candidatev:
./target/release/ant --log-output-dest data-dir file upload "the-test-data_1.zip" > ./second_upload 2>&1
env:
ANT_LOG: "all"
timeout-minutes: 25

Expand All @@ -115,7 +115,7 @@ jobs:
- name: Start the restart node again
run: |
./target/release/antnode \
--root-dir-type PARESTART_TEST_NODE_DATA_PATH \
--root-dir $RESTART_TEST_NODE_DATA_PATH \
--log-output-dest $RESTART_TEST_NODE_DATA_PATH \
--local \
--rewards-address "0x03B770D9cD32077cC0bF330c13C114a87643B124" &
Expand Down Expand Up @@ -164,6 +164,18 @@ jobs:
run: pgrep antnode | wc -l
if: always()

- name: confirm opened FDs
shell: bash
timeout-minutes: 1
continue-on-error: true
run: |
pids=$(pgrep -u ant antnode)
for pid in $pids; do
fd_count=$(ls /proc/$pid/fd | wc -l)
echo "Process ID: $pid - File Descriptors: $fd_count"
done
if: always()

- name: Stop the local network and upload logs
if: always()
uses: maidsafe/ant-local-testnet-action@main
Expand Down

0 comments on commit cb5962b

Please sign in to comment.