Previously dry-run was spewing weird logs (as if there were no records) logging. Unfortunately, our linter warned us against duplicated code so we had to create an abstract class for the record handlers (app data and order rewards).
Old Logs:
INFO root Global Log Level configured as INFO
INFO dune_client.file.interface creating write path data/order_rewards
WARNING src.sync.common last sync file sync_block.csv not found, using genesis block 15719994
INFO src.sync.order_rewards Handling 46096 new records
INFO src.sync.order_rewards No new Order Rewards for block range BlockRange(from=15719994, to=16096809): no sync necessary
INFO src.sync.order_rewards order_rewards sync run completed successfully
Test Plan
Run Dry Run Mode and see new logic via the logs:
$ python -m src.main --sync-table order_rewards --dry-run True
INFO root Global Log Level configured as INFO
INFO src.sync.order_rewards Handling 35 new records
INFO src.sync.record_handler attempting to post 35 new order_rewards records for block range BlockRange(from=16096809, to=16096994)
INFO src.sync.record_handler DRY-RUN-ENABLED: New records written to volume, but not posted to AWS.
INFO src.sync.order_rewards order_rewards sync run completed successfully
Previously dry-run was spewing weird logs (as if there were no records) logging. Unfortunately, our linter warned us against duplicated code so we had to create an abstract class for the record handlers (app data and order rewards).
Old Logs:
Test Plan
Run Dry Run Mode and see new logic via the logs: