anton-vinogradov commented on PR #13884:
URL: https://github.com/apache/ignite/pull/13884#issuecomment-7280204117

   This PR adds the `Public behavior changes` check for PRs to `master`. It 
starts with the system properties listed by `ignite.sh -systemProps`. For 
example, if a PR changes the declared default of `IGNITE_QUIET` from `true` to 
`false`, the reviewer sees both values and the source line. Moving the same 
declaration to another line or rewording its help text leaves the check green.
   
   **How the check works**
   
   1. **Build the two versions** (108 lines of workflow). When relevant files 
change, the workflow builds the target branch and the PR merged into it. Each 
version uses its own collector so a PR can refactor Ignite and update the 
collector together. If the target branch has no working extractor, the workflow 
tries the PR’s extractor on the same target code. 
[Workflow](https://github.com/apache/ignite/blob/010dc2c036715ef14ac408037107d1ba1489d241/.github/workflows/public-behavior-changes.yml)
   2. **Describe what users see** (373 lines in `describe/`, including the 
build script). The Java collector reads the compiled declarations that the 
command uses. For each property it records its name, type, declared default and 
deprecation status. The shared code writes a sorted list with source locations. 
Later collectors can write the same format and reuse the comparison, RFC rules 
and report. [System property 
collector](https://github.com/apache/ignite/blob/010dc2c036715ef14ac408037107d1ba1489d241/.github/public-behavior/describe/src/collectors/SystemProperties.java)
   3. **Compare the lists and report the result** (476 lines in `check/` before 
tests). The JavaScript code finds added, changed and removed declarations. For 
the default change above, it first checks the names of RFC files added or 
updated in the PR. If there are none, it looks in the PR description for a 
direct link to an existing RFC on the target branch. A missing RFC or a bad 
filename fails the check. With a valid file or link, the check passes with a 
warning. The reviewer checks that the RFC covers the change, reviews 
compatibility and verifies any required vote. A PR that only removes deprecated 
properties also passes with a review warning. [Decision 
rules](https://github.com/apache/ignite/blob/010dc2c036715ef14ac408037107d1ba1489d241/.github/public-behavior/check/outcome.js)
   
   **Where the lines go.** Of the 1,631 added lines, 541 are tests and test 
fixtures, and 133 are documentation. The system property collector itself is 75 
lines. The tests cover cases such as a valid link alongside a wrongly named 
file, a change to the check itself, and a failed build. Results appear in 
GitHub Checks. Additional collectors and bot comments on PRs have separate 
tickets. [Follow-up tasks](https://issues.apache.org/jira/browse/IGNITE-29326)
   


-- 
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]

Reply via email to