-
Notifications
You must be signed in to change notification settings - Fork 334
In R CMD check, only notify about snapshots once #2213
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
Conversation
Claude finished @hadley's task —— View job ReviewIssues found:
Otherwise the implementation looks correct - snapshot hints are now only shown in the check reporter when there are actual snapshot failures, which addresses the goal of notifying once. |
@gaborcsardi can you take a look at this? Mostly so you know about it as you work on the next version of the CheckReporter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement! Left a comment.
} else { | ||
"* Locate check directory." | ||
}, | ||
"* Copy 'tests/testthat/_snaps' to local package." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the wording here can be misleading. Not just this line, the whole copy
part. A failing snapshot does not necessarily mean that you need to update the snapshots, maybe it is a genuine test failure. (If I understand correctly when this is invoked.) Or it is a problem of platform dependent snapshots, in which case you can't simply update the snapshot files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, yeah the advice is supposed to more about how to diagnose the failure locally. I'll tweak.
Fixes #2207