-
Notifications
You must be signed in to change notification settings - Fork 234
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
Escaped models are randomly failing at generation #2676
Comments
@sebastienlevert we're going to start enforcing fines for issues like these. |
We can reproduce in Typescript, pretty much on every generation with Graph. @koros please share some background. |
Is that issue for the smoke test in kiota typescript that has been falling for a while now? |
I don't know for the smoke test, but we can reproduce on every run of v1 for graph. Seems to be a race condition when going from classes to interfaces, where we generate some interfaces and some classes. |
After a long investigation on the subject we have a race condition happening which either results:
In both cases the code interface declaration writer is being called, in the former after, in the later before the code class declaration writer. We effectively have BOTH the class and the interface in the DOM as the TypeScript transformation from class to interface is not cleanly pulling the classes. Why is that more present on classes that have been escaped, I'm not sure yet. This is due to multiple factors:
This issue manifests itself much more often on larger descriptions. Here is what I have started:
Although the problem isn't solved yet, we're getting closer. |
No description provided.
The text was updated successfully, but these errors were encountered: