-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #453 from nervosnetwork/develop
chore: merge develop for 0.2.0 release
- Loading branch information
Showing
62 changed files
with
8,957 additions
and
3,149 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
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 |
---|---|---|
|
@@ -63,7 +63,7 @@ jobs: | |
fi | ||
# Prebuild the program so that we can run the following script faster | ||
export FNN="$(cargo build --message-format=json-render-diagnostics | jq -js '[.[] | select(.reason == "compiler-artifact") | select(.executable != null)] | last | .executable')" | ||
cargo build | ||
cd tests/deploy/udt-init && cargo build && cd - | ||
if [ ${{ matrix.workflow }} = "router-pay" ]; then | ||
export START_BOOTNODE=y | ||
|
@@ -81,9 +81,9 @@ jobs: | |
if [ -f $port_file ]; then | ||
break | ||
else | ||
retry_count=$((retry_count + 1)) | ||
echo "File $port_file not found. Retrying in 2 seconds..." | ||
sleep 2 | ||
retry_count=$((retry_count + 1)) | ||
fi | ||
done | ||
|
@@ -92,11 +92,15 @@ jobs: | |
ports+=("$line") | ||
done < ./tests/nodes/.ports | ||
for i in {1..20}; do | ||
echo "Checking if all ports are open ... ${ports[@]}" | ||
try_number=60 | ||
count=0 | ||
while [ $count -lt $try_number ]; do | ||
all_open=true | ||
for port in $ports; do | ||
echo "Checking port $port" | ||
for port in "${ports[@]}"; do | ||
if ! nc -z 127.0.0.1 $port; then | ||
echo "Port $port is not open yet ..." | ||
all_open=false | ||
break | ||
fi | ||
|
@@ -105,11 +109,17 @@ jobs: | |
echo "All ports are open now ..." | ||
break | ||
else | ||
count=$((count + 1)) | ||
if [ $count -eq $try_number ]; then | ||
echo "Reached maximum number of tries ($try_number), exiting with status 1" | ||
exit 1 | ||
fi | ||
echo "Not all ports are open, waiting 3 seconds before retrying" | ||
sleep 3 | ||
fi | ||
done | ||
(cd ./tests/bruno; npm exec -- @usebruno/[email protected] run e2e/${{ matrix.workflow }} -r --env ${{ matrix.test_env }} ${{ matrix.extra_bru_args }} ) & | ||
# -n means we will exit when any of the background processes exits. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
Oops, something went wrong.