You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uv run fill $files --clean --until=$FILL_UNTIL --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit $BLOCK_GAS_LIMIT -m "state_test or blockchain_test" --output $PATCH_TEST_PATH>>(tee -a filloutput.log)2>>(tee -a filloutput.log >&2)
echo"converted-ethereum-tests.txt seem untouched, try to fill pre-patched version of .py files:"
18
+
19
+
git checkout main
20
+
PREV_COMMIT=$(git rev-parse HEAD)
21
+
echo"Checkout head $PREV_COMMIT"
22
+
23
+
echo"Select files that were changed and exist on the main branch:"
24
+
echo"$MODIFIED_DELETED_FILES"
25
+
26
+
rm -rf fixtures
27
+
rm -f filloutput.log
28
+
29
+
uv run fill $MODIFIED_DELETED_FILES --clean --until=$FILL_UNTIL --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit $BLOCK_GAS_LIMIT -m "state_test or blockchain_test" --output $BASE_TEST_PATH>>(tee -a filloutput.log)2>>(tee -a filloutput.log >&2)
30
+
31
+
if grep -q "FAILURES" filloutput.log;then
32
+
echo"Error: failed to generate .py tests from before the PR."
33
+
exit 1
34
+
fi
35
+
36
+
if grep -q "ERROR collecting test session" filloutput.log;then
37
+
echo"Error: failed to generate .py tests from before the PR."
38
+
exit 1
39
+
fi
40
+
41
+
# TODO: Here we can inspect $BASE_TEST_PATH vs $PATCH_TEST_PATH and remove fixtures with the same hash in both directories, to only leave fixtures that have been modified or removed,
42
+
# and then set any_modified_fixtures=false if the fixture set before the PR is empty after this check.
echo "uv run fill $files --clean --until=Cancun --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit 36000000 >> filloutput.log 2>&1"
182
-
uv run fill $files --clean --until=Cancun --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit 36000000 > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
183
-
184
-
if grep -q "FAILURES" filloutput.log; then
185
-
echo "Error: failed to generate .py tests."
186
-
exit 1
187
-
fi
188
-
189
-
mkdir -p fixtures/blockchain_tests
190
-
mkdir -p fixtures/state_tests
191
-
filesBlock=$(find fixtures/blockchain_tests -type f -name "*.json")
192
-
filesState=$(find fixtures/state_tests -type f -name "*.json")
193
-
if [ -z "$filesState" ] && [ -z "$filesBlock" ]; then
194
-
echo "Error: No supported filled JSON files found in fixtures."
echo "converted-ethereum-tests.txt seem untouched, try to fill pre-patched version of .py files:"
211
-
212
-
source $GITHUB_ENV
213
-
files=$(echo "$CHANGED_TEST_FILES" | tr ',' '\n')
214
-
215
-
git checkout main
216
-
PREV_COMMIT=$(git rev-parse HEAD)
217
-
echo "Checkout head $PREV_COMMIT"
218
-
219
-
# Take only those files that exist in the filesystem (ignore newly created files)
220
-
files_fixed=$(echo "$files" | tr ' ' '\n' | while read file; do
221
-
if [ -f "$file" ]; then
222
-
echo "$file"
223
-
fi
224
-
done | tr '\n' ' ')
225
-
226
-
echo "Select files that were changed and exist on the main branch:"
227
-
echo $files_fixed
228
-
229
-
rm -r fixtures
230
-
rm filloutput.log
231
-
232
-
if [ -n "$files_fixed" ]; then
233
-
echo "uv run fill $files_fixed --clean --until=Cancun --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit 36000000 >> filloutput.log 2>&1"
234
-
uv run fill $files_fixed --clean --until=Cancun --evm-bin evmone-t8n --skip-evm-dump --block-gas-limit 36000000 > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
235
-
236
-
if grep -q "FAILURES" filloutput.log; then
237
-
echo "Error: failed to generate .py tests from before the PR."
238
-
exit 1
239
-
fi
240
-
241
-
if grep -q "ERROR collecting test session" filloutput.log; then
242
-
echo "Error: failed to generate .py tests from before the PR."
243
-
exit 1
244
-
fi
245
-
else
246
-
echo "No tests affected from before the patch!"
247
-
fi
248
-
249
-
mkdir -p fixtures/blockchain_tests
250
-
mkdir -p fixtures/state_tests
251
-
filesBlock=$(find fixtures/blockchain_tests -type f -name "*.json")
252
-
filesState=$(find fixtures/state_tests -type f -name "*.json")
0 commit comments