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

CI: Compare API compatibility against both 4.0 and 4.1 #80354

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

RedworkDE
Copy link
Member

Allows running the API compat checks against multiple Godot versions without having to duplicate a bunch of entries by using a scheme were, if the basename of an expected file contains an _ it will be compared against the version indicated by the part before the _ but the expected errors will be concatenated to those of the version after the underscore (possibly recursively).

This changes prevents accidentally breaking APIs that there newly added in 4.1.

@RedworkDE RedworkDE added this to the 4.2 milestone Aug 6, 2023
@RedworkDE RedworkDE requested a review from a team as a code owner August 6, 2023 22:15
@dsnopek
Copy link
Contributor

dsnopek commented Aug 8, 2023

This approach seems good to me!

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good to me. Needs a rebase.

@RedworkDE RedworkDE requested review from a team as code owners August 30, 2023 16:51
Comment on lines +115 to +116
Validate extension JSON: API was removed: classes/GLTFDocumentExtensionPhysics
Validate extension JSON: API was removed: classes/GLTFDocumentExtensionTextureWebP
Copy link
Member Author

Choose a reason for hiding this comment

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

These two entries are new, but they are mentioned in this PR as being removed from the export, so this is correct and exactly the kind of thing that could slip through before this.

Copy link
Member

Choose a reason for hiding this comment

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

The GitHub action still raises a warning for those but on the wrong file:
image

Copy link
Member Author

Choose a reason for hiding this comment

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

I have hidden warnings from prior versions (as I originally intended), as it is kinda unavoidable that they happen (unless editing the expected files for old versions). (tho thinking about it there may still be some issues when changing a value in multiple versions, potentially still requiring changes to old expected files)

@akien-mga akien-mga merged commit 79e87ee into godotengine:master Aug 31, 2023
@akien-mga
Copy link
Member

Thanks!

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.

3 participants