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

Revise check_clang_format workflow to report all errors #86

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

ffoulkes
Copy link
Contributor

@ffoulkes ffoulkes commented Mar 4, 2024

The clang-format checker processes changed files one at a time. It fails after processing a file that has format errors, leaving any subsequent files unchecked. This means that it takes multiple commits to find and fix all the errors.

This CL updates the workflow to process all the changed files in a single invocation of clang-format, which should solve the problem.

@ffoulkes ffoulkes requested a review from 5abeel March 4, 2024 05:18
@ffoulkes ffoulkes force-pushed the improve-clang-check branch from dde54a6 to b5db7f4 Compare March 4, 2024 05:21
@ffoulkes ffoulkes added trivial effort Almost no effort required github_actions Pull requests that update GitHub Actions code labels Mar 4, 2024
Copy link
Collaborator

@5abeel 5abeel left a comment

Choose a reason for hiding this comment

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

LGTM

- The checker fails after finding a file with a format error,
  requiring multiple commits to find all the errors. This CL
  updates the workflow to process all changed files in a single
  invocation of clang-format, which should solve the problem.

Signed-off-by: Derek G Foster <[email protected]>
@ffoulkes ffoulkes force-pushed the improve-clang-check branch from b5db7f4 to 5ded5d7 Compare March 5, 2024 18:24
Copy link
Contributor

@nupuruttarwar nupuruttarwar left a comment

Choose a reason for hiding this comment

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

LGTM

@ffoulkes ffoulkes merged commit 927be8e into main Mar 5, 2024
4 checks passed
@ffoulkes ffoulkes deleted the improve-clang-check branch March 5, 2024 18:52
ffoulkes added a commit that referenced this pull request Mar 5, 2024
The clang-format checker fails after finding a file with a
format error, requiring multiple commits to find all the errors.
This CL updates the workflow to process all changed files in a
single invocation, which should solve the problem.

Signed-off-by: Derek G Foster <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code trivial effort Almost no effort required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants