Skip to content

ci: check for fields potentially missing from structs in pyo3-ffi definitions#5918

Open
davidhewitt wants to merge 4 commits intoPyO3:mainfrom
davidhewitt:ffi-check-type-object
Open

ci: check for fields potentially missing from structs in pyo3-ffi definitions#5918
davidhewitt wants to merge 4 commits intoPyO3:mainfrom
davidhewitt:ffi-check-type-object

Conversation

@davidhewitt
Copy link
Copy Markdown
Member

@davidhewitt davidhewitt commented Mar 27, 2026

This PR adjusts pyo3-ffi-check to also be able to inspect the bindgen fields and test the full set of them, having done this I found no cases other than other than #5916 of structs having a correct size but missing a trailing field in the padding.

@davidhewitt davidhewitt changed the title fix tp_versions_used missing field in PyTypeObject check for fields potentially missing from structs in pyo3-ffi definitions Mar 27, 2026
@davidhewitt davidhewitt changed the title check for fields potentially missing from structs in pyo3-ffi definitions ci: check for fields potentially missing from structs in pyo3-ffi definitions Mar 27, 2026
pyo3-ffi = { path = "../../pyo3-ffi" }

[build-dependencies]
bindgen = "0.69.4"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While we're here perhaps we also want to bump this to the lastest version.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good idea, will do so.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I managed to run dependabot, not sure why that had been broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants