Skip to content

ci: add clang-tidy github action#13401

Merged
ploxiln merged 23 commits into
apple:mainfrom
ploxiln:gha_clang_tidy
Jun 30, 2026
Merged

ci: add clang-tidy github action#13401
ploxiln merged 23 commits into
apple:mainfrom
ploxiln:gha_clang_tidy

Conversation

@ploxiln

@ploxiln ploxiln commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

using the foundationdb/build:rockylinux9-latest container image


I'll shortly push up a change that should fail the clang-tidy check, to test whether this action is fully working ...

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as outdated.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

continue # actor syntax is not plain c++
fi
# only c++ source files
if [[ $FILE =~ \.[ch](pp)?$ ]] ; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The rules can be applied to generated files as well, but I'm not sure if that's clean currently

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this skips the input actor files (not compatible), and the output generated cpp files (which we may want some clang-tidy rules to check) ... but hopefully as your work lands, they will all be gone soon enough :)

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@gxglass gxglass left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It seems fine either way. Agent wants to know if it's supposed to be advisory only for now: If the intent is to enforce the .clang-tidy checks on PRs, add --warnings-as-errors='*' (or a curated subset) to the invocation. If the intent is advisory-only for now, that's fine — but it's worth a comment in the file saying so, because the job name and PR trigger strongly imply enforcement

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@foundationdb-ci

This comment was marked as duplicate.

@ploxiln

ploxiln commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

If the intent is advisory-only for now, that's fine — but it's worth a comment in the file saying so

Comment added to the workflow file, hopefully that helps if someone goes into adjust things later.

Thanks, both, for the reviews 🙏

@ploxiln ploxiln merged commit b302aef into apple:main Jun 30, 2026
10 checks passed
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.

4 participants