Skip to content

Fix pre-commit and label interaction#1237

Closed
berquist wants to merge 5 commits intosstsimulator:masterfrom
berquist:fix-pre-commit-and-label-interaction
Closed

Fix pre-commit and label interaction#1237
berquist wants to merge 5 commits intosstsimulator:masterfrom
berquist:fix-pre-commit-and-label-interaction

Conversation

@berquist
Copy link
Member

@berquist berquist commented Mar 7, 2025

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.

@berquist
Copy link
Member Author

berquist commented Mar 7, 2025

devel, not master...

@berquist berquist closed this Mar 7, 2025
@berquist berquist added this to the SST V15.0.0 milestone Apr 14, 2025
@berquist berquist deleted the fix-pre-commit-and-label-interaction branch July 8, 2025 14:24
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.

1 participant