Skip to content

Fix pre commit and label interaction#1239

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

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

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
@github-actions
Copy link

github-actions bot commented Mar 7, 2025

CLANG-FORMAT TEST - PASSED

@github-actions
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
@berquist
Copy link
Member Author

berquist commented Jul 8, 2025

A better version of this fix will appear as part of the AT2 rework.

@berquist berquist closed this Jul 8, 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

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