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] Style checks are broken #91831

Closed
AThousandShips opened this issue May 11, 2024 · 4 comments · Fixed by #91835
Closed

[CI] Style checks are broken #91831

AThousandShips opened this issue May 11, 2024 · 4 comments · Fixed by #91835

Comments

@AThousandShips
Copy link
Member

Tested versions

N/A

System information

N/A

Issue description

Code style checks are no longer being applied, see for example:
82f5bd6

Seems to be a regression from:

All checks are now marked as skipped and claims there are no files to check

Steps to reproduce

N/A

Minimal reproduction project (MRP)

N/A

@AThousandShips
Copy link
Member Author

CC @Repiteo @akien-mga

@akien-mga akien-mga added this to the 4.3 milestone May 11, 2024
@akien-mga
Copy link
Member

Indeed the new code run pre-commit run --verbose, and by default pre-commit run only affects files which have been staged in Git. In a PR or merge CI run, there's no staged files, as the commit was already made. So we still need a way to pass the list of files changed in the commit(s) compared to the base branch.

So we should probably restore the --files ${{ env.CHANGED_FILES }} logic, unless the pre-commit action provides a facility for this. (I suppose it doesn't, the action repo says it's in maintenance mode and they encourage us to use their own hosted CI system.)

@fire
Copy link
Member

fire commented May 11, 2024

Do we need to fork our own https://github.com/pre-commit/action that avoids a hosted ci system?

@akien-mga
Copy link
Member

Do we need to fork our own https://github.com/pre-commit/action that avoids a hosted ci system?

No, that action is a GitHub Action and is therefore "hosted"/run by GitHub in the runners they provide us.
The "pre-commit CI" they mention is a separate, bespoke product that they offer. We don't have to use it is the basic GH action works for us.

dimitry- pushed a commit to AndroidWasm/godot that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants