-
Notifications
You must be signed in to change notification settings - Fork 0
501: feat: Use macrotest to test the expanded macro code
#62
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
base: main
Are you sure you want to change the base?
Changes from all commits
bd4bf03
bdac65d
1d7572d
5dd3e98
01cb0af
b0f1f60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,15 +46,14 @@ pub fn schema_def( | |
| }; | ||
| symbols.push(name); | ||
| } | ||
| let full_schema_name = &container_attrs.name; | ||
| Ok(quote! { | ||
| ::apache_avro::schema::Schema::Enum(apache_avro::schema::EnumSchema { | ||
| name: ::apache_avro::schema::Name::new(#full_schema_name).expect(&format!("Unable to parse enum name for schema {}", #full_schema_name)[..]), | ||
| ::apache_avro::schema::Schema::Enum(::apache_avro::schema::EnumSchema { | ||
| name, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enum schema name now differs from record schema name behaviorMedium Severity The Additional Locations (1)
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:annoying; category:bug; feedback: The Bugbot AI reviewer is not correct! The new way of constructing the Name is similar to the old one - it still passes the |
||
| aliases: #enum_aliases, | ||
| doc: #doc, | ||
| symbols: vec![#(#symbols.to_owned()),*], | ||
| default: #default, | ||
| attributes: Default::default(), | ||
| attributes: ::std::collections::BTreeMap::new(), | ||
| }) | ||
| }) | ||
| } else { | ||
|
|
||


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.
macrotestcomparisons are sensitive tocargo expandoutput; installing an unpinnedcargo-expandversion can make nightly CI fail whencargo-expandchanges its formatting even if your code hasn’t. Consider pinning a specificcargo-expandversion (asmacrotestrecommends) to reduce test flakiness.Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
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.
value:good-to-have; category:bug; feedback: The Augment AI reviewer is correct! Both macrotest and cargo-expand recommend using a pinned version to prevent random build failures when a new version is released. Prevents test failures when unrelated code changes are made.