Skip to content

add macros for tapir codegen #1281

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

hughsimpson
Copy link
Contributor

@hughsimpson hughsimpson commented May 18, 2025

The macros appear, almost magically, to be sufficient for test cases that were previously breaking under compilation (cf issue and reproduction) to successfully compile. I understand why the first two help, but I am somewhat more mystified as to why the ADT ones work where the default make macro call does not, since both still use eval. I am, however, not prepared to look the gift horse in the mouth, and if you're happy to have these in the codebase @plokhotnyuk that would really do some wonders for CI flakiness 😅

Even with 26 identical modules I get no compilation errors, and 8 was sufficient for 100% local failure rate without the changes. I am certain this is working around a Scala compiler bug, but how to solve that more generally within the make macro appears to be beyond me - and I have tried a lot of alternatives at this point.

@plokhotnyuk plokhotnyuk merged commit 12211f6 into plokhotnyuk:master May 18, 2025
@hughsimpson hughsimpson deleted the add_macros_to_fix_tapir_codegen_compilation_flakiness branch May 18, 2025 14:42
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.

2 participants