[
https://issues.apache.org/jira/browse/IGNITE-29326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anton Vinogradov updated IGNITE-29326:
--------------------------------------
Description:
Add a GitHub Actions check called *Public behavior changes* for PRs to master.
Show authors and reviewers what changes for an Ignite user. Use the [public
contract|https://github.com/apache/ignite/blob/master/rfcs/IGNITE-29219-public-api-and-compatibility.md]
to decide what to compare. Follow the [RFC
process|https://issues.apache.org/jira/browse/IGNITE-29220], including
compatible additions and its exceptions.
h3. How the check decides
{noformat}
Does the diff show a public contract change that requires an RFC?
├─ Cannot read the diff → Fail: check could not finish.
├─ No change confirmed → Pass. Stop before looking for an RFC.
└─ Yes → Did this PR add or update an RFC file?
├─ Yes → Check the names of all added or updated RFC files.
│ ├─ Any invalid name → Fail: fix the filename.
│ └─ All names valid → Pass with a review warning.
└─ No → Does the PR description link directly to an existing RFC file on the
target branch?
├─ Yes → Pass with a review warning.
├─ No valid link or file missing → Fail: RFC needed.
└─ GitHub could not verify the link → Fail: check could not finish.
{noformat}
* *Fix the filename.* Show the offending path and a valid example, such as
{{rfcs/IGNITE-12345-cache-timeout.md}}. An updated RFC keeps its original
ticket number. A link in the description cannot fix a bad filename.
* *RFC needed.* Show what changed and where. Ask the author to add or update an
RFC, or link to an existing RFC file. A link to a PR does not identify the file.
* *Review warning.* In Checks and the PR comment, link to the RFC and list the
changes and their locations. The reviewer checks coverage, compatibility and
any required vote on the dev list.
* *Check could not finish.* Say what failed and how to retry. A read error does
not establish that an RFC is missing.
Keep a clean PR quiet, including an RFC-only PR. When the result changes,
replace the previous bot comment. When all reported issues are resolved, say so.
h3. What to compare statically
Work through every row. Start with declarations or formats that Ignite already
maintains. The middle column gives starting points. Use a rule only when it can
show a specific difference for users. Record any gap for reviewers. A file move
or internal rewrite alone should pass.
||Public contract||First comparison to try||What still needs review||
|Language and client APIs, plugins and SPIs|Compare exported types, signatures,
constants and callback declarations. Include internal-package types exposed by
a supported API.|Whether existing applications and plugins still compile and
run. When Ignite calls user code.|
|SQL|Compare registered keywords, types and function signatures.|Which queries
succeed and what results they return.|
|REST|Compare registered routes, commands, parameters and response fields
declared in a public schema.|Dynamic routes, validation and the meaning of
responses.|
|CLI|Compare registered commands and subcommands, option names, types, required
arguments and exit codes. Compare declared machine-readable output
fields.|Custom argument parsing and output built at runtime.|
|Configuration|Compare supported keys, system properties, environment
variables, accepted values and literal defaults in settings or
launchers.|Effective defaults that depend on other settings or the environment.|
|Monitoring|Compare metric names and units, JMX attributes, structured event
fields, and system view column names, types and positions as users see
them.|Metric meaning, when events fire, and columns chosen at runtime.|
|Client protocols and external serialization|Compare wire operation IDs,
feature bits, field tags, types and format versions in the client
protocol.|Version negotiation and which client/server pairs still work.|
|Stored data, WAL and snapshots|Compare format identifiers, versions and field
layouts that are actually written to disk.|Reading older data, migration,
recovery and durability.|
|Distribution and runtime|Compare published artifact coordinates and package
names. Check explicit JDK or OS requirements in shipped launchers or package
metadata.|Supported build and deployment combinations and upgrade paths.|
|Errors across interfaces|Compare public error codes, SQLState values and
direct mappings between them.|Which conditions produce each error.|
|Results, side effects and operation guarantees|Compare explicitly declared
result schemas, accepted inputs and public modes or defaults for transactions,
retries or cancellation.|Returned values, side effects, ordering, timeout and
callback behavior inside method bodies.|
h3. How to verify it
For each rule, try a real contract change and a refactoring that preserves it.
A new CLI flag should be reported. Editing its help text should pass. Moving an
existing system view column should be reported. Renumbering its sort priorities
while preserving every position should pass.
Test both RFC paths and all failure messages, including unreadable data. Verify
the author and reviewer reports on a fork PR before making the check required
on master. Document actual coverage and link DEVNOTES to the [development
processes|https://github.com/apache/ignite/tree/master/rfcs].
was:
Add a GitHub Actions check called *Public behavior changes* for pull requests
to master. Help authors see when they need an RFC and reviewers see what
changed. [Public behavior and
compatibility|https://github.com/apache/ignite/blob/master/rfcs/IGNITE-29219-public-api-and-compatibility.md]
defines the contract. The [RFC
process|https://issues.apache.org/jira/browse/IGNITE-29220] covers compatible
additions and explains when a change can go through normal review.
Across the areas in the public contract, compare what users can call, pass or
read before and after a change. Prefer public declarations or formats that
Ignite already maintains. For example, adding a CLI option or moving an
existing system view column changes the contract. Editing help text leaves the
option unchanged. Renumbering sort priorities can leave every column in its
original position. Each finding must identify a difference that users can
observe. A changed file path is not enough. Leave behavior that depends on
runtime logic to code review.
* *No confirmed change.* Pass and skip the RFC check. This also covers an
RFC-only PR.
* *RFC missing or named incorrectly.* When the process requires an RFC, fail
and show what changed and where. Ask the author to add or update an RFC in the
PR, or link directly to an existing RFC file on the target branch from the PR
description. For an invalid filename, show the path and an example such as
{{rfcs/IGNITE-12345-cache-timeout.md}}. An updated RFC keeps its original
ticket number.
* *RFC found.* Pass with a review warning. In Checks and in the PR comment,
link to the file and list the detected changes. The reviewer checks that the
RFC covers them, reviews compatibility and verifies any required vote on the
dev list.
Keep clean PRs quiet. When the result changes, replace the previous bot
comment. If all issues are fixed, say so. Report a technical failure separately
so the author knows whether to fix the PR or rerun the check.
Document what the check covers and what needs review. Link DEVNOTES to the
[development processes|https://github.com/apache/ignite/tree/master/rfcs]. Test
the three outcomes on a fork PR before making the check required on master.
> Check public behavior changes on pull requests
> ----------------------------------------------
>
> Key: IGNITE-29326
> URL: https://issues.apache.org/jira/browse/IGNITE-29326
> Project: Ignite
> Issue Type: Task
> Reporter: Anton Vinogradov
> Assignee: Anton Vinogradov
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Add a GitHub Actions check called *Public behavior changes* for PRs to
> master. Show authors and reviewers what changes for an Ignite user. Use the
> [public
> contract|https://github.com/apache/ignite/blob/master/rfcs/IGNITE-29219-public-api-and-compatibility.md]
> to decide what to compare. Follow the [RFC
> process|https://issues.apache.org/jira/browse/IGNITE-29220], including
> compatible additions and its exceptions.
> h3. How the check decides
> {noformat}
> Does the diff show a public contract change that requires an RFC?
> ├─ Cannot read the diff → Fail: check could not finish.
> ├─ No change confirmed → Pass. Stop before looking for an RFC.
> └─ Yes → Did this PR add or update an RFC file?
> ├─ Yes → Check the names of all added or updated RFC files.
> │ ├─ Any invalid name → Fail: fix the filename.
> │ └─ All names valid → Pass with a review warning.
> └─ No → Does the PR description link directly to an existing RFC file on
> the target branch?
> ├─ Yes → Pass with a review warning.
> ├─ No valid link or file missing → Fail: RFC needed.
> └─ GitHub could not verify the link → Fail: check could not finish.
> {noformat}
> * *Fix the filename.* Show the offending path and a valid example, such as
> {{rfcs/IGNITE-12345-cache-timeout.md}}. An updated RFC keeps its original
> ticket number. A link in the description cannot fix a bad filename.
> * *RFC needed.* Show what changed and where. Ask the author to add or update
> an RFC, or link to an existing RFC file. A link to a PR does not identify the
> file.
> * *Review warning.* In Checks and the PR comment, link to the RFC and list
> the changes and their locations. The reviewer checks coverage, compatibility
> and any required vote on the dev list.
> * *Check could not finish.* Say what failed and how to retry. A read error
> does not establish that an RFC is missing.
> Keep a clean PR quiet, including an RFC-only PR. When the result changes,
> replace the previous bot comment. When all reported issues are resolved, say
> so.
> h3. What to compare statically
> Work through every row. Start with declarations or formats that Ignite
> already maintains. The middle column gives starting points. Use a rule only
> when it can show a specific difference for users. Record any gap for
> reviewers. A file move or internal rewrite alone should pass.
> ||Public contract||First comparison to try||What still needs review||
> |Language and client APIs, plugins and SPIs|Compare exported types,
> signatures, constants and callback declarations. Include internal-package
> types exposed by a supported API.|Whether existing applications and plugins
> still compile and run. When Ignite calls user code.|
> |SQL|Compare registered keywords, types and function signatures.|Which
> queries succeed and what results they return.|
> |REST|Compare registered routes, commands, parameters and response fields
> declared in a public schema.|Dynamic routes, validation and the meaning of
> responses.|
> |CLI|Compare registered commands and subcommands, option names, types,
> required arguments and exit codes. Compare declared machine-readable output
> fields.|Custom argument parsing and output built at runtime.|
> |Configuration|Compare supported keys, system properties, environment
> variables, accepted values and literal defaults in settings or
> launchers.|Effective defaults that depend on other settings or the
> environment.|
> |Monitoring|Compare metric names and units, JMX attributes, structured event
> fields, and system view column names, types and positions as users see
> them.|Metric meaning, when events fire, and columns chosen at runtime.|
> |Client protocols and external serialization|Compare wire operation IDs,
> feature bits, field tags, types and format versions in the client
> protocol.|Version negotiation and which client/server pairs still work.|
> |Stored data, WAL and snapshots|Compare format identifiers, versions and
> field layouts that are actually written to disk.|Reading older data,
> migration, recovery and durability.|
> |Distribution and runtime|Compare published artifact coordinates and package
> names. Check explicit JDK or OS requirements in shipped launchers or package
> metadata.|Supported build and deployment combinations and upgrade paths.|
> |Errors across interfaces|Compare public error codes, SQLState values and
> direct mappings between them.|Which conditions produce each error.|
> |Results, side effects and operation guarantees|Compare explicitly declared
> result schemas, accepted inputs and public modes or defaults for
> transactions, retries or cancellation.|Returned values, side effects,
> ordering, timeout and callback behavior inside method bodies.|
> h3. How to verify it
> For each rule, try a real contract change and a refactoring that preserves
> it. A new CLI flag should be reported. Editing its help text should pass.
> Moving an existing system view column should be reported. Renumbering its
> sort priorities while preserving every position should pass.
> Test both RFC paths and all failure messages, including unreadable data.
> Verify the author and reviewer reports on a fork PR before making the check
> required on master. Document actual coverage and link DEVNOTES to the
> [development processes|https://github.com/apache/ignite/tree/master/rfcs].
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)