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
Add standardized program-gen reporting helpers #11032
Conversation
Changelog[uncommitted] (2022-10-18)Features
|
pkg/codegen/report/report.go
Outdated
} | ||
|
||
// Report a new call to GenerateProgram. Every call should be reported. | ||
func (r *reporter) Report(title, language string, files []*syntax.File, f GenerateProgramFn) GenerateProgramFn { |
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.
Include a unit test of the output?
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.
Would make sense to add a test, even if just to show an example of how to use the reporter
1cb5a41
to
7785f31
Compare
Initial Report CL Fix timestamps Add files Add example
7785f31
to
b3a38cc
Compare
Examples have been added. |
bors r+ |
Build succeeded: |
This PR introduces a shared format for reporting codegen problems.
Description
Fixes #10988
Checklist
make changelog
and committed thechangelog/pending/<file>
documenting my change