Skip to content

Commit

Permalink
chore: rename environment variables
Browse files Browse the repository at this point in the history
Use `ANT_LOG` and `ANT_PEERS` rather than `SN_LOG` and `SAFE_PEERS`.
  • Loading branch information
jacderida committed Dec 2, 2024
1 parent e7826e4 commit 73e421f
Show file tree
Hide file tree
Showing 22 changed files with 201 additions and 201 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ jobs:
- name: Start a local network
uses: maidsafe/ant-local-testnet-action@main
env:
SN_LOG: "all"
ANT_LOG: "all"
with:
action: start
enable-evm-testnet: true
node-path: target/release/antnode
platform: ubuntu-latest
build: true

- name: Check SAFE_PEERS was set
- name: Check ANT_PEERS was set
shell: bash
run: echo "The SAFE_PEERS variable has been set to $SAFE_PEERS"
run: echo "The ANT_PEERS variable has been set to $ANT_PEERS"

- name: export default secret key
run: echo "SECRET_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
Expand All @@ -73,7 +73,7 @@ jobs:
shell: bash
run: ./target/release/ant --log-output-dest=data-dir file upload "./the-test-data.zip"
env:
SN_LOG: "all"
ANT_LOG: "all"
timeout-minutes: 5

- name: Cleanup uploaded_files folder to avoid pollute download benchmark
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-benchmark-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
shell: bash
run: cargo run --bin ant --release -- --log-output-dest data-dir file upload the-test-data.zip
env:
SN_LOG: "all"
ANT_LOG: "all"

#########################
### Stop Network ###
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
platform: ubuntu-latest
build: true

- name: Check SAFE_PEERS was set
- name: Check ANT_PEERS was set
shell: bash
run: echo "The SAFE_PEERS variable has been set to $SAFE_PEERS"
run: echo "The ANT_PEERS variable has been set to $ANT_PEERS"

- name: Start a node instance to be restarted
run: |
Expand All @@ -59,7 +59,7 @@ jobs:
--root-dir $RESTART_TEST_NODE_DATA_PATH --log-output-dest $RESTART_TEST_NODE_DATA_PATH --local --rewards-address "0x03B770D9cD32077cC0bF330c13C114a87643B124" &
sleep 10
env:
SN_LOG: "all"
ANT_LOG: "all"

- name: Download 95mb file to be uploaded with the safe client
shell: bash
Expand All @@ -72,7 +72,7 @@ jobs:
- name: File upload
run: ./target/release/ant --log-output-dest=data-dir file upload --public "./the-test-data.zip" > ./upload_output 2>&1
env:
SN_LOG: "v"
ANT_LOG: "v"
timeout-minutes: 5

- name: showing the upload terminal output
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
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:
SN_LOG: "all"
ANT_LOG: "all"
timeout-minutes: 25

- name: showing the second upload terminal output
Expand All @@ -121,7 +121,7 @@ jobs:
--rewards-address "0x03B770D9cD32077cC0bF330c13C114a87643B124" &
sleep 10
env:
SN_LOG: "all"
ANT_LOG: "all"

# Records are encrypted, and seeds will change after restart
# Currently, there will be `Existing record found`, but NO `Existing record loaded`
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
./target/release/ant
--log-output-dest=data-dir file download ${{ env.UPLOAD_ADDRESS }} ./downloaded_resources
env:
SN_LOG: "v"
ANT_LOG: "v"
timeout-minutes: 2

- name: Check nodes running
Expand Down
Loading

0 comments on commit 73e421f

Please sign in to comment.