Skip to content
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

fix: avoid interference from rust tests during IDL generation #3058

Merged

Conversation

losman0s
Copy link
Contributor

Problem

The test result/summary line from cargo test is used as delimiter to assign the content of the different IDL sections to the final idl variable.
However that delimiter check is currently too loose and leads to some of the IDL sections being wiped when rust tests are present in the program crate.

Solution

This PR tightens the delimiter check to exclude other test results from wiping those sections.

Copy link

vercel bot commented Jun 27, 2024

@losman0s is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added idl related to the IDL, either program or client side fix Bug fix PR labels Jun 27, 2024
Copy link
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you note this fix in the CHANGELOG?

@losman0s
Copy link
Contributor Author

Thanks! Could you note this fix in the CHANGELOG?

Done

Copy link
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@acheroncrypto acheroncrypto merged commit 5f1f72c into coral-xyz:master Jun 27, 2024
32 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PR idl related to the IDL, either program or client side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants