Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter events the env exposes in test snapshots to contracts to contract events #1361

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Oct 4, 2024

What

Filter events the env exposes in test snapshots to contracts to contract events.

Why

The main thing we need to test in test snapshots is that non-diagnostic events are consistent and captured.

Diagnostic events are noise here.

Notes

There's no good time to make this change.

Ideally the change is made at a major version because it's breaking.

But at a major version is the ideal time to avoid the change so that people see only meaningful diffs on their test snapshots.

@leighmcculloch
Copy link
Member Author

@dmkozh Maybe we should also retain system events. I don't actually remember what system events exist though...

@dmkozh
Copy link
Contributor

dmkozh commented Oct 4, 2024

Maybe we should also retain system events. I don't actually remember what system events exist though...

Yeah, let's retain system events. They're underutilized, but we do currently emit a system event for the contract updates.

@leighmcculloch leighmcculloch marked this pull request as ready for review October 9, 2024 13:59
@leighmcculloch
Copy link
Member Author

@dmkozh I've updated it to retain system events. Ready for review.

@graydon graydon self-requested a review October 11, 2024 04:02
Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly about this as a feature/change either way; but practically it looks like a correct implementation so approving.

@leighmcculloch leighmcculloch added this pull request to the merge queue Oct 11, 2024
Merged via the queue into main with commit b924717 Oct 11, 2024
16 checks passed
@leighmcculloch leighmcculloch deleted the events-env-filter branch October 11, 2024 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants