Skip to content

Fix pre commit and label interaction #1239

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

Draft
wants to merge 5 commits into
base: devel
Choose a base branch
from

Conversation

berquist
Copy link
Member

@berquist berquist commented Mar 7, 2025

(Redo of #1237)

We've discussed on and off that there is a race condition with setting the labels between the script-based format checks for C++ and CMake. There will soon be an addition problem that Autotester 2 will not play properly with these two isolated GHA workflows that currently only interact via labels. Instead, AT2 will run via a hierarchical set of GHA workflows at the currently mostly unused entry point https://github.com/sstsimulator/sst-core/blob/e992a3fd54178adf2ba9018c35335d32ac8d9f7f/.github/workflows/ci.yml (#1053).

In preparation for this, some time ago (#1055) I added this driver that calls instead https://pre-commit.com/ which has been running simultaneously. It properly pins linter/hook versions, without the extra isolated workflows and shell scripts, and it failing will prevent any following tests or workflows from running.

Since AT1 still needs to work with labels, I modified the pre-commit workflow to just set the clang-format ones when it passes or fails, with updated status messages.

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Mar 7, 2025
Copy link

github-actions bot commented Mar 7, 2025

CLANG-FORMAT TEST - PASSED

Copy link

github-actions bot commented Mar 7, 2025

CMAKE-FORMAT TEST - PASSED

@berquist
Copy link
Member Author

berquist commented Mar 7, 2025

Draft while I figure out why this workflow can't access labels but the standalone ones can.

@berquist berquist added the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT: CLANG-FORMAT PASS AT: CMAKE-FORMAT PASS AT: WIP Mark PR as a Work in Progress (No Autotesting Performed)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant