Open kfcampbell opened 8 months ago
Most likely related to this https://github.com/microsoft/kiota/issues/3339 Can you provide the OpenAPI description for the type? Do you know how often it's referenced? Which version of kiota are you using at the moment?
Can you try to set the KIOTA_GENERATION_MAXDEGREEOFPARALLELISM environment variable to 0 before you run kiota and see if you get better results? (expect significant performance reduction)
Can you provide the OpenAPI description for the type?
Our schema makes this pretty difficult with its large size unfortunately. My best guess is it's:
Though it's difficult for me to see how the starred items line up with the property of starred_url
.
Do you know how often it's referenced?
Between nullable-user
and simple-user
, there are 183 references in our schema.
Which version of kiota are you using at the moment?
sh$ kiota --version
1.8.1+c93d90721f5ff6e0af6c2f41babbf5f2e7bbae61
Can you try to set the KIOTA_GENERATION_MAXDEGREEOFPARALLELISM environment variable to 0 before you run kiota and see if you get better results? (expect significant performance reduction)
I removed the hack to fix this and ran generation five times each with the env variable set and without it set. The error occurred on 3/5 runs without the environment variable but only 1/5 runs with the environment variable. Interestingly, the performance degradation was not noticeable; perhaps we should be conducting all of our runs like that?
Before you lock your generation workflow to a single thread, I'd like us to look into fixing the underlying issue since you experience it even on a single thread. Can you create an issue in kiota for this one please?
Related to #15 and #27.
For some reason, in the file
generated/go/users/item_starred_repository.go
, Kiota occasionally generates a file that includeswhen it otherwise generates (correctly)
We should take this to the Kiota team and see if they can point us in the right direction.