Skip to content

Commit ee04ee3

Browse files
authored
Merge pull request #500 from crytic/etherscan-api-delay
Add more delay on the etherscan CI test
2 parents 1401fb4 + 84f073d commit ee04ee3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/ci_test_etherscan.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ cd "$DIR" || exit 255
77

88
solc-select use 0.4.25 --always-install
99

10-
delay_no_key () {
10+
delay_etherscan () {
1111
# Perform a small sleep when API key is not available (e.g. on PR CI from external contributor)
1212
if [ "$GITHUB_ETHERSCAN" = "" ]; then
1313
sleep 5s
14+
else
15+
# Always sleep 2 second in the CI
16+
# We have a lot of concurrent github action so this is needed
17+
sleep 2s
1418
fi
1519
}
1620

@@ -24,7 +28,7 @@ then
2428
fi
2529
echo "::endgroup::"
2630

27-
delay_no_key
31+
delay_etherscan
2832

2933
# From crytic/slither#1154
3034
echo "::group::Etherscan #3"
@@ -37,7 +41,7 @@ then
3741
fi
3842
echo "::endgroup::"
3943

40-
delay_no_key
44+
delay_etherscan
4145

4246
# From crytic/crytic-compile#415
4347
echo "::group::Etherscan #4"
@@ -50,7 +54,7 @@ then
5054
fi
5155
echo "::endgroup::"
5256

53-
delay_no_key
57+
delay_etherscan
5458

5559
# From crytic/crytic-compile#150
5660
echo "::group::Etherscan #5"
@@ -70,6 +74,8 @@ then
7074
fi
7175
echo "::endgroup::"
7276

77+
delay_etherscan
78+
7379
# From crytic/crytic-compile#151
7480
echo "::group::Etherscan #6"
7581
crytic-compile 0x4c808e3c011514d5016536af11218eec537eb6f5 --compile-remove-metadata --etherscan-apikey "$GITHUB_ETHERSCAN"

0 commit comments

Comments
 (0)