-
Notifications
You must be signed in to change notification settings - Fork 563
ci: fix integration tests errors with text file busy
#2674
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
The script has a fixed name to comply with `protoc` plugin naming requirements but it it always generated in the same temporary folder which means that concurrent calls would overwrite the `protoc-gen-ts_proto` file. This changeset generates the script in random temporary folders. This fix might help correcting "flaky" integration tests.
text file busy
text file busy
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.
Thanks for the hard investigation!
👏 |
Is it still a draft @jeronimoalbi ? |
Yes, I don't think the current change really fixes the issue. |
This allow calling Generate multiple times using a single protoc binary. Otherwise a protoc binary would be created each time Generate is called.
New changes were added to use a single |
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.
LGTM. I think this is a quality improvement to the code regardless of if it fixes the issue :)
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.
Hey, looks like some conflicts are appeared.
* fix: change `protoc-gen-ts_proto` to generate in random folders The script has a fixed name to comply with `protoc` plugin naming requirements but it it always generated in the same temporary folder which means that concurrent calls would overwrite the `protoc-gen-ts_proto` file. This changeset generates the script in random temporary folders. This fix might help correcting "flaky" integration tests. * refactor(pkg/protoc): add WithCommand option to Generate This allow calling Generate multiple times using a single protoc binary. Otherwise a protoc binary would be created each time Generate is called. * refactor(pkg/cosmosgen): change JS generator to reuse protoc binary * chore: simplify code Co-authored-by: Alex Johnson <alex@shmeeload.xyz> Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Related to #2657