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

Fix split workflow when no comments can be posted #105

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

bwrsandman
Copy link
Contributor

There is an edge case in split workflow where the review does not create
a clang-tidy-review-output.json but the rest of the workflow expects the
file to be created even if there are no comments.

This causes cp or mv operations to fail and the post portion of the
workflow fails trying to open an expected file.

This change makes sure the output is created even if there is nothing to
report. The body also serves to debug why there are no comments.

@bwrsandman bwrsandman changed the title There is an edge case in split workflow where the review does not create a clang-tidy-review-output.json but the rest of the workflow expects the file to be created even if there are no comments. This causes cp or mv operations to fail and the post portion of the workflow fails trying to open an expected file. This change makes sure the output is created even if there is nothing to report. The body also serves to debug why there are no comments. Fix split workflow when no comments can be posted Jan 16, 2024
@bwrsandman bwrsandman force-pushed the multi-split-review-empty branch from 3bba35b to f7a179e Compare January 16, 2024 19:18
There is an edge case in split workflow where the `review` does not create
a `clang-tidy-review-output.json` but the rest of the workflow expects the
file to be created even if there are no comments.

This causes `cp` or `mv` operations to fail and the `post` portion of the
workflow fails trying to open an expected file.

This change makes sure the output is created even if there is nothing to
report. The body also serves to debug why there are no comments.
This prevents post from merging messages with no comments such as
`clang-tidy found no files to check` with messages with comments.
@bwrsandman bwrsandman force-pushed the multi-split-review-empty branch from f7a179e to 0b1bf4c Compare January 16, 2024 19:19
@ZedThree ZedThree merged commit 90f19b9 into ZedThree:master Jan 17, 2024
1 check passed
@bwrsandman bwrsandman deleted the multi-split-review-empty branch January 17, 2024 12:59
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.

2 participants