@@ -172,35 +172,32 @@ jobs:
172
172
source $GITHUB_ENV
173
173
files=$(echo "$CHANGED_TEST_FILES" | tr ',' '\n')
174
174
175
- mkdir -p fixtures/state_tests
176
- mkdir -p fixtures/eof_tests
177
- mkdir -p fixtures/blockchain_tests
175
+ # Include basic evm operations into coverage by default
176
+ # As when we translate from yul/solidity some dup/push opcodes could become untouched
177
+ files="$files tests/homestead/coverage/test_coverage.py"
178
178
179
- echo "uv run fill $files --until=Cancun --evm-bin evmone-t8n >> filloutput.log 2>&1"
180
- uv run fill $files --until=Cancun --evm-bin evmone-t8n > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
179
+ echo "uv run fill $files --clean -- until=Cancun --evm-bin evmone-t8n >> filloutput.log 2>&1"
180
+ uv run fill $files --clean -- until=Cancun --evm-bin evmone-t8n > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
181
181
182
182
if grep -q "FAILURES" filloutput.log; then
183
183
echo "Error: failed to generate .py tests."
184
184
exit 1
185
185
fi
186
186
187
+ mkdir -p fixtures/blockchain_tests
188
+ mkdir -p fixtures/state_tests
187
189
filesBlock=$(find fixtures/blockchain_tests -type f -name "*.json")
188
190
filesState=$(find fixtures/state_tests -type f -name "*.json")
189
- filesEOF=$(find fixtures/eof_tests -type f -name "*.json")
190
- if [ -z "$filesState" ] && [ -z "$filesEOF" ] && [ -z "$filesBlock" ]; then
191
+ if [ -z "$filesState" ] && [ -z "$filesBlock" ]; then
191
192
echo "Error: No supported filled JSON files found in fixtures."
192
193
exit 1
193
194
fi
194
195
195
- # Include basic evm operations into coverage by default
196
- # As when we translate from yul/solidity some dup/push opcodes could become untouched
197
- uv run fill tests/homestead/coverage/test_coverage.py --until=Cancun --evm-bin evmone-t8n
198
196
199
197
PATCH_TEST_PATH=${{ github.workspace }}/evmtest_coverage/coverage/PATCH_TESTS
200
198
mkdir -p $PATCH_TEST_PATH
201
199
find fixtures/blockchain_tests -type f -name "*.json" -exec bash -c 'cp "$0" "$1/blockchain_$(basename "$0")"' {} "$PATCH_TEST_PATH" \;
202
200
find fixtures/state_tests -type f -name "*.json" -exec cp {} $PATCH_TEST_PATH \;
203
- find fixtures/eof_tests -type f -name "*.json" -exec cp {} $PATCH_TEST_PATH \;
204
201
205
202
- name : Parse and fill introduced test sources from before the PR
206
203
if : ${{ steps.changed-tests.outputs.tests_any_changed == 'true' && env.converted_skip == 'true' }}
@@ -229,13 +226,10 @@ jobs:
229
226
230
227
rm -r fixtures
231
228
rm filloutput.log
232
- mkdir -p fixtures/blockchain_tests
233
- mkdir -p fixtures/state_tests
234
- mkdir -p fixtures/eof_tests
235
229
236
230
if [ -n "$files_fixed" ]; then
237
- echo "uv run fill $files_fixed --until=Cancun --evm-bin evmone-t8n >> filloutput.log 2>&1"
238
- uv run fill $files_fixed --until=Cancun --evm-bin evmone-t8n > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
231
+ echo "uv run fill $files_fixed --clean -- until=Cancun --evm-bin evmone-t8n >> filloutput.log 2>&1"
232
+ uv run fill $files_fixed --clean -- until=Cancun --evm-bin evmone-t8n > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
239
233
240
234
if grep -q "FAILURES" filloutput.log; then
241
235
echo "Error: failed to generate .py tests from before the PR."
@@ -250,16 +244,16 @@ jobs:
250
244
echo "No tests affected from before the patch!"
251
245
fi
252
246
247
+ mkdir -p fixtures/blockchain_tests
248
+ mkdir -p fixtures/state_tests
253
249
filesBlock=$(find fixtures/blockchain_tests -type f -name "*.json")
254
250
filesState=$(find fixtures/state_tests -type f -name "*.json")
255
- filesEOF=$(find fixtures/eof_tests -type f -name "*.json")
256
251
257
252
BASE_TEST_PATH=${{ github.workspace }}/evmtest_coverage/coverage/BASE_TESTS
258
253
mkdir -p $BASE_TEST_PATH
259
254
260
255
find fixtures/blockchain_tests -type f -name "*.json" -exec cp {} $BASE_TEST_PATH \;
261
256
find fixtures/state_tests -type f -name "*.json" -exec cp {} $BASE_TEST_PATH \;
262
- find fixtures/eof_tests -type f -name "*.json" -exec cp {} $BASE_TEST_PATH \;
263
257
for file in $BASE_TEST_PATH/*.json; do
264
258
if [ -e "$file" ]; then
265
259
mv "$file" "${file%.json}_$PREV_COMMIT.json"
0 commit comments