-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add sanity checks for log raw data test
- Loading branch information
1 parent
e962739
commit d6b8e0c
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -632,7 +632,7 @@ jobs: | |
shell: bash | ||
timeout-minutes: 10 | ||
run: | | ||
if ! rg '^' "${{ matrix.safe_path }}"/*/*/logs | awk 'length($0) > 15000 { print; exit 1 }' | ||
if ! rg '^' "${{ matrix.local_safe_path }}"/*/*/logs | awk 'length($0) > 15000 { print; exit 1 }' | ||
then | ||
echo "We are logging an extremely large data" | ||
exit 1 | ||
|
@@ -644,6 +644,17 @@ jobs: | |
exit 1 | ||
fi | ||
# sanity check | ||
if ! rg '^' "${{ matrix.local_safe_path }}"/*/*/logs | awk 'length($0) > 1000 { print; exit 1 }' | ||
then | ||
echo "Sanity check pass for local safe path" | ||
fi | ||
# the wan log dir contains: testnet/machine/node(or faucet)/node_name/logs | ||
if ! rg '^' "${{ matrix.wan_logs_path }}"/*/*/*/*/logs | awk 'length($0) > 1000 { print; exit 1 }' | ||
then | ||
echo "Sanity check pass for wan logs" | ||
fi | ||
# - name: post notification to slack on failure | ||
# if: ${{ failure() }} | ||
# uses: bryannice/[email protected] | ||
|
@@ -810,7 +821,7 @@ jobs: | |
shell: bash | ||
timeout-minutes: 10 | ||
run: | | ||
if ! rg '^' "${{ matrix.safe_path }}"/*/*/logs | awk 'length($0) > 15000 { print; exit 1 }' | ||
if ! rg '^' "${{ matrix.local_safe_path }}"/*/*/logs | awk 'length($0) > 15000 { print; exit 1 }' | ||
then | ||
echo "We are logging an extremely large data" | ||
exit 1 | ||
|
@@ -822,6 +833,17 @@ jobs: | |
exit 1 | ||
fi | ||
# sanity check | ||
if ! rg '^' "${{ matrix.local_safe_path }}"/*/*/logs | awk 'length($0) > 1000 { print; exit 1 }' | ||
then | ||
echo "Sanity check pass for local safe path" | ||
fi | ||
# the wan log dir contains: testnet/machine/node(or faucet)/node_name/logs | ||
if ! rg '^' "${{ matrix.wan_logs_path }}"/*/*/*/*/logs | awk 'length($0) > 1000 { print; exit 1 }' | ||
then | ||
echo "Sanity check pass for wan logs" | ||
fi | ||
# - name: post notification to slack on failure | ||
# if: ${{ failure() }} | ||
# uses: bryannice/[email protected] | ||
|