[
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 or compare the change → Fail: check could not finish.
├─ No change confirmed → Pass. Stop before looking for an RFC.
├─ Only removed deprecated declarations or experimental API changes → Pass with
a review warning.
└─ 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.
* *Deprecated or experimental API.* List each removed declaration that the
target branch marks as deprecated and each change to an API marked
{{@IgniteExperimental}}. The RFC process lets authors remove APIs deprecated
before it without an RFC. Experimental APIs may change in any release. The
reviewer decides whether such a change needs an RFC. Where it is cheap, show
when the deprecation was added, for example the commit and the first release
that contain it.
* *Check could not finish.* Show the cause and whether to fix the PR or rerun
the check. 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 RFC file is any Markdown file in
{{rfcs/}} except {{rfcs/TEMPLATE.md}}. Skip the PR title and RFC contents. The
reviewer checks that the plan covers the actual change and reviews
compatibility. The reviewer also checks that an RFC updated under a new ticket
keeps its original ticket number.
* *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,
callbacks and deprecation markers, 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, literal defaults and deprecation markers.|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 deprecated and experimental API warning, 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 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].
> 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 or compare the change → Fail: check could not finish.
> ├─ No change confirmed → Pass. Stop before looking for an RFC.
> ├─ Only removed deprecated declarations or experimental API changes → Pass
> with a review warning.
> └─ 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.
> * *Deprecated or experimental API.* List each removed declaration that the
> target branch marks as deprecated and each change to an API marked
> {{@IgniteExperimental}}. The RFC process lets authors remove APIs deprecated
> before it without an RFC. Experimental APIs may change in any release. The
> reviewer decides whether such a change needs an RFC. Where it is cheap, show
> when the deprecation was added, for example the commit and the first release
> that contain it.
> * *Check could not finish.* Show the cause and whether to fix the PR or rerun
> the check. 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 RFC file is any Markdown file in
> {{rfcs/}} except {{rfcs/TEMPLATE.md}}. Skip the PR title and RFC contents.
> The reviewer checks that the plan covers the actual change and reviews
> compatibility. The reviewer also checks that an RFC updated under a new
> ticket keeps its original ticket number.
> * *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,
> callbacks and deprecation markers, 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, literal defaults and deprecation markers.|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 deprecated and experimental API warning, 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)