[
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 what changed for an Ignite user and where. The [public
contract|https://github.com/apache/ignite/blob/master/rfcs/IGNITE-29219-public-api-and-compatibility.md]
sets the scope. The [RFC
process|https://issues.apache.org/jira/browse/IGNITE-29220] covers compatible
additions as well as breaking changes and defines the exceptions.
h3. Agreed behavior
{noformat}
Can the check confirm a change covered by the public RFC process?
├─ Cannot read the diff → Fail: check could not finish.
├─ No change confirmed → Pass. Stop before looking for an RFC.
└─ Yes → Did the 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, the expected form
{{rfcs/IGNITE-<ticket>-<short-title>.md}} and a valid example.
* *RFC needed.* Show what changed and where. Ask the author to add or update an
RFC file, or link to an existing one.
* *Review warning.* In Checks and the PR comment, list the changes and their
locations. Link directly to the RFC for the reviewer.
* *Check could not finish.* Show the cause and how to retry. If GitHub cannot
verify a file, its existence is unknown.
h3. Finding an existing RFC
One approved RFC can cover several tickets. Only when the diff has no new or
updated RFC, look for a direct file URL in the PR description. Accept a plain
URL or a Markdown link anywhere in the text. Verify that the RFC exists on the
target branch of this repository. Recheck when the author edits the
description, even without a new commit.
A link to another PR does not identify the RFC file. Searching old PRs or
comments is unnecessary. A link in the description cannot override an invalid
filename in the diff.
h3. What to leave out and why
* *Check the RFC file and its name only.* An existing RFC keeps its original
ticket number when updated under a new ticket. Skip the PR title and RFC
contents. The reviewer checks that the plan covers the actual change and
reviews compatibility.
* *Keep approval with the reviewer.* The reviewer checks exceptions and any
required dev-list vote. The bot does not read dev@, count votes, require a vote
URL or track PR approvals. Skip labels and approval overrides. Normal PR review
already covers implementation approval.
* *Require evidence from the diff.* A file path can help locate a declaration.
A path match, a changed test or a method-body edit alone cannot show that the
contract changed. Leave uncertain runtime effects to code review. The public
contract excludes node-to-node traffic and diagnostic wording with no external
guarantee.
* *Keep clean PRs quiet.* This includes RFC-only PRs. When the findings or
advice change, delete the previous bot comment and post the current result. If
all earlier issues are resolved, say so.
h3. Draft ideas for static checks
Consider every area below. Each comparison and example is a draft for review.
Prefer declarations or formats that Ignite already maintains. The reviewer can
accept, simplify, replace or drop any of these ideas. Document areas where only
code review can establish the effect.
||Public contract||Draft comparison to try||What needs human review||
|Language and client APIs, plugins and SPIs|Exported signatures, constants and
callbacks, including types exposed from internal packages.|Whether existing
code still builds and runs. When callbacks run.|
|SQL|Registered keywords, types and function signatures.|Which queries succeed
and what they return.|
|REST|Registered routes, commands, parameters and response schemas.|Dynamic
routes, validation and response meaning.|
|CLI|Registered commands and subcommands, argument names, types and required
flags, exit codes and declared output fields.|Custom parsing and output built
at runtime.|
|Configuration|Public keys, system properties, environment variables, allowed
values and literal defaults.|Defaults that depend on other settings.|
|Monitoring|Registered metric names and units, JMX attributes, event fields and
the column names, types and positions exposed by system views.|Metric meaning,
when events fire and columns chosen at runtime.|
|Client protocols and external serialization|Operation IDs, feature bits, field
tags and format versions used on the client connection.|Negotiation and
supported client/server combinations.|
|Stored data, WAL and snapshots|Format IDs, versions and field layouts used on
disk.|Reading old data, migration, recovery and durability.|
|Distribution and runtime|Published artifact coordinates, package names and
explicit JDK or OS requirements in shipped files.|Supported build and
deployment combinations and upgrade paths.|
|Errors across interfaces|Public error codes, SQLState values and direct
mappings.|Which conditions cause each error.|
|Results, effects and operations|Declared result schemas, accepted inputs and
public modes or defaults for transactions, retries and cancellation.|Returned
values, side effects, ordering and timeout behavior.|
h3. Reviewing the implementation
Review each proposed rule and its implementation against the public contract.
Use a change it should report and a similar edit it should let through. Example
pairs to review include adding a CLI flag versus editing its help, and moving a
system view column versus renumbering priorities without moving it.
Verify both RFC paths, the filename error and the technical failure. Test the
reports and comment updates 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 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].
> 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 what changed for an Ignite user and where. The [public
> contract|https://github.com/apache/ignite/blob/master/rfcs/IGNITE-29219-public-api-and-compatibility.md]
> sets the scope. The [RFC
> process|https://issues.apache.org/jira/browse/IGNITE-29220] covers compatible
> additions as well as breaking changes and defines the exceptions.
> h3. Agreed behavior
> {noformat}
> Can the check confirm a change covered by the public RFC process?
> ├─ Cannot read the diff → Fail: check could not finish.
> ├─ No change confirmed → Pass. Stop before looking for an RFC.
> └─ Yes → Did the 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, the expected form
> {{rfcs/IGNITE-<ticket>-<short-title>.md}} and a valid example.
> * *RFC needed.* Show what changed and where. Ask the author to add or update
> an RFC file, or link to an existing one.
> * *Review warning.* In Checks and the PR comment, list the changes and their
> locations. Link directly to the RFC for the reviewer.
> * *Check could not finish.* Show the cause and how to retry. If GitHub cannot
> verify a file, its existence is unknown.
> h3. Finding an existing RFC
> One approved RFC can cover several tickets. Only when the diff has no new or
> updated RFC, look for a direct file URL in the PR description. Accept a plain
> URL or a Markdown link anywhere in the text. Verify that the RFC exists on
> the target branch of this repository. Recheck when the author edits the
> description, even without a new commit.
> A link to another PR does not identify the RFC file. Searching old PRs or
> comments is unnecessary. A link in the description cannot override an invalid
> filename in the diff.
> h3. What to leave out and why
> * *Check the RFC file and its name only.* An existing RFC keeps its original
> ticket number when updated under a new ticket. Skip the PR title and RFC
> contents. The reviewer checks that the plan covers the actual change and
> reviews compatibility.
> * *Keep approval with the reviewer.* The reviewer checks exceptions and any
> required dev-list vote. The bot does not read dev@, count votes, require a
> vote URL or track PR approvals. Skip labels and approval overrides. Normal PR
> review already covers implementation approval.
> * *Require evidence from the diff.* A file path can help locate a
> declaration. A path match, a changed test or a method-body edit alone cannot
> show that the contract changed. Leave uncertain runtime effects to code
> review. The public contract excludes node-to-node traffic and diagnostic
> wording with no external guarantee.
> * *Keep clean PRs quiet.* This includes RFC-only PRs. When the findings or
> advice change, delete the previous bot comment and post the current result.
> If all earlier issues are resolved, say so.
> h3. Draft ideas for static checks
> Consider every area below. Each comparison and example is a draft for review.
> Prefer declarations or formats that Ignite already maintains. The reviewer
> can accept, simplify, replace or drop any of these ideas. Document areas
> where only code review can establish the effect.
> ||Public contract||Draft comparison to try||What needs human review||
> |Language and client APIs, plugins and SPIs|Exported signatures, constants
> and callbacks, including types exposed from internal packages.|Whether
> existing code still builds and runs. When callbacks run.|
> |SQL|Registered keywords, types and function signatures.|Which queries
> succeed and what they return.|
> |REST|Registered routes, commands, parameters and response schemas.|Dynamic
> routes, validation and response meaning.|
> |CLI|Registered commands and subcommands, argument names, types and required
> flags, exit codes and declared output fields.|Custom parsing and output built
> at runtime.|
> |Configuration|Public keys, system properties, environment variables, allowed
> values and literal defaults.|Defaults that depend on other settings.|
> |Monitoring|Registered metric names and units, JMX attributes, event fields
> and the column names, types and positions exposed by system views.|Metric
> meaning, when events fire and columns chosen at runtime.|
> |Client protocols and external serialization|Operation IDs, feature bits,
> field tags and format versions used on the client connection.|Negotiation and
> supported client/server combinations.|
> |Stored data, WAL and snapshots|Format IDs, versions and field layouts used
> on disk.|Reading old data, migration, recovery and durability.|
> |Distribution and runtime|Published artifact coordinates, package names and
> explicit JDK or OS requirements in shipped files.|Supported build and
> deployment combinations and upgrade paths.|
> |Errors across interfaces|Public error codes, SQLState values and direct
> mappings.|Which conditions cause each error.|
> |Results, effects and operations|Declared result schemas, accepted inputs and
> public modes or defaults for transactions, retries and cancellation.|Returned
> values, side effects, ordering and timeout behavior.|
> h3. Reviewing the implementation
> Review each proposed rule and its implementation against the public contract.
> Use a change it should report and a similar edit it should let through.
> Example pairs to review include adding a CLI flag versus editing its help,
> and moving a system view column versus renumbering priorities without moving
> it.
> Verify both RFC paths, the filename error and the technical failure. Test the
> reports and comment updates 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)