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

cli: Render both mismatches and violations in the same table #126

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

nicholasjng
Copy link
Contributor

Previously, when violations were found (i.e. non-ABI3 symbols in an ABI3-tagged extension), any subsequent version mismatches (i.e. using symbols that were made part of the stable ABI, but in later versions than the provided wheel was built for), were left unreported.

This is now fixed, by changing the audit rendering hook to include all offending symbols and their ABI versions. In case of a violation, the "not ABI3" value is given as ABI version, to clearly signal that the found symbol is not part of any version of the stable ABI.


Hey! I saw the open issue and took a stab, since I also ran into this in a C++ bindings project build.
No new code, just some reorg - the changes in observable behavior are the rendering of both "thumbs down" messages in the case of violations + mismatches, and the "not ABI3" version placeholder for non-SABI symbols. In either case, a single table containing all problems (and their nature, as evidenced by the "Version" column) is rendered to the console.

Of course, please let me know if you are unhappy with these choices. Thanks!

Previously, when violations were found (i.e. non-ABI3 symbols in an ABI3-tagged
extension), any subsequent version mismatches (i.e. using symbols that were made
part of the stable ABI, but in later versions than the provided wheel was built for),
were left unreported.

This is now fixed, by changing the audit rendering hook to include all offending
symbols and their ABI versions. In case of a violation, the "not ABI3" value is
given as ABI version, to clearly signal that the found symbol is not part of any
version of the stable ABI.
@woodruffw
Copy link
Member

Thanks @nicholasjng, I'll review this later today!

@nicholasjng
Copy link
Contributor Author

Thanks. Are you interested in a patch for the "--verbose should imply --summary" story as well (#115)?

@woodruffw
Copy link
Member

Thanks. Are you interested in a patch for the "--verbose should imply --summary" story as well (#115)?

Yes, thank you!

Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

LGTM structurally, nice work @nicholasjng! I'll give this a test run tonight as well.

Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

Tested locally and confirms this works the way I expected. Thanks a ton @nicholasjng!

@woodruffw woodruffw merged commit 87af74c into pypa:main Jan 6, 2025
12 checks passed
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