Skip to content

Commit

Permalink
fix(eofwrap): fixture_format and auxiliary logging (#1258)
Browse files Browse the repository at this point in the history
* fix(eofwrap): Add generation error logging

* fix(eofwrap): Ensure fixture_format is present
  • Loading branch information
pdobacz authored Feb 25, 2025
1 parent 2c4d277 commit 1115574
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/eofwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool):
self.metrics[self.FIXTURES_CANT_GENERATE] += 1
self.metrics[self.ACCOUNTS_CANT_GENERATE] += len(fixture_eof_codes)

print(f"Exception {e} occurred during generation of {in_path}: {fixture_id}")

if len(out_fixtures) == 0:
self.metrics[self.FILES_SKIPPED] += 1
return
Expand Down Expand Up @@ -311,6 +313,7 @@ def _wrap_fixture(self, fixture: BlockchainFixture, traces: bool):
fork=Osaka,
fixture_format=BlockchainFixture,
)
result.info["fixture_format"] = "blockchain_test"
if traces:
print_traces(t8n.get_traces())
return result
Expand Down

0 comments on commit 1115574

Please sign in to comment.