anton-vinogradov commented on PR #13901:
URL: https://github.com/apache/ignite/pull/13901#issuecomment-7356777325
### What authors and reviewers will see
After this PR is merged, the **Public behavior changes** check can post its
result in the PR conversation. For example, if a PR changes the default of
`IGNITE_QUIET` without an RFC, the bot shows the old and new values and asks
the author to supply an RFC. If the author adds a link to an existing RFC in
the PR description, the check runs again on the same commit. The new comment
links the RFC and tells the reviewer what to check.
```mermaid
flowchart TD
check["PR workflow · read-only token"] --> summary["Detailed report in
Checks"]
check --> file["Upload result.json for this run and attempt"]
file --> publish["Comment workflow · runs code from master"]
publish --> current{"Does this result still apply to the open PR?"}
current -->|No| keep["Keep the current result"]
current -->|Yes| use["Validate the file and update the conversation"]
```
Only the workflow on `master` has permission to post. It checks the PR's
current commit and looks for a newer completed result, including previous
attempts of a rerun. It treats the file from the PR as data and validates it
before writing the comment. A missing or invalid file produces `Check could not
finish` with a log link. [PR
job](https://github.com/apache/ignite/blob/f9550816d5bc81dbb1ba90ab8754649588875321/.github/public-behavior/check/jobs/evaluate-pr.js)
· [Comment
job](https://github.com/apache/ignite/blob/f9550816d5bc81dbb1ba90ab8754649588875321/.github/public-behavior/check/jobs/publish-pr-comment.js)
| Result | What the bot does |
|---|---|
| Clean from the start | Leaves the conversation empty. |
| Findings or advice change | Posts the new comment, then removes its
previous one. |
| Same result, new run link | Updates the existing comment in place. |
| Earlier issues are resolved | Replaces the old comment with `All earlier
issues are resolved.` |
A review warning still shows a green check. The comment tells the reviewer
what needs attention. Showing that distinction directly in the checks list is
tracked in [IGNITE-29372](https://issues.apache.org/jira/browse/IGNITE-29372).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]