-
Notifications
You must be signed in to change notification settings - Fork 454
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
Address compilation issues with auto generated amqp files #1820
Address compilation issues with auto generated amqp files #1820
Conversation
7cc8b80
to
ba67f2d
Compare
Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
ba67f2d
to
f4f68f9
Compare
Signed-off-by: Dom Del Nano <[email protected]>
990ad0f
to
8a4b0db
Compare
This seems like a good candidate to implement using diff_test and write_file from bazel_skylib. This will ensure that these files will never fall out of sync. A typical impl looks like follows:
This generates a "test" that fails if the generated file differs from the file in the repo and a See https://github.com/bazelbuild/rules_go/blob/30099a6add3c43706b4eec82b773b78310874935/docs/doc_helpers.bzl#L19 if you want an idea for how someone strings this together. |
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.
Merging to unblock but IMO it's probably worth spending the time to write the diff_test
at the very least.
Thanks for the suggestion. I have a work in progress change that is close to what you've described. One of the challenges is that our non I'm in the process of working through that and will have a PR open once that's addressed. |
Summary: Address compilation issues with auto generated amqp files
When reviewing #1816, I realized that there was drift from the amqp template files and the resulting code. The updated stitcher interface was propagated to the auto generated files, but not the template itself. As for the other changes, I wasn't able to track down why they didn't exist in the template file but these changes were necessary to get the code compiling again.
Once this is merged, #1816 should be easy to merge afterwards.
Relevant Issues: #1816
Type of change: /kind cleanup
Test Plan: amqp trace bpf test passes