philo-he opened a new pull request, #13762:
URL: https://github.com/apache/gluten/pull/13762
## What changes are proposed in this pull request?
A fork pull request that changes only Flink files
(`.github/workflows/flink.yml`,
`gluten-flink/**`) gets three red statuses: `Velox Backend (x86) in fork`,
`Velox Backend (ARM) in fork` and `Velox Kafka in fork`, each saying
"No run in your fork for this commit...". Examples: #13558, #13670.
These workflows don't cover any of those files and run no tests for them.
The errors come from `update-fork-build-status.js`, which posts them on every
fork pull request without checking what it changes.
1. `update-fork-build-status.js` matches the pull request's changed files
against
the `paths`/`paths-ignore` inputs each workflow passes to
`squash-merge-upstream`,
read from the workflow file. A workflow that covers none of them gets a
passing
`Not needed` status instead of the error. Errors already posted by the old
script are rechecked once, so open Flink pull requests such as the
following one
will no longer show them.
#13558
2. `detect-changes` in `velox_backend_x86.yml` and `velox_backend_arm.yml`
sets
`java=true` only for that workflow's own files, not for any file under
`.github/workflows/`. A pull request that changes `flink.yml` together with
Gluten's native code under `cpp/` then runs only the jobs a `cpp/` change
needs,
not every Spark test job.
## How was this patch tested?
Ran the script locally under Node with a mocked GitHub API:
- Flink-only pull request, with no statuses yet or with the old errors: all
three statuses become `Not needed`.
- `cpp/` change with no fork run: the error is posted as before.
- `gluten-kafka/` only: x86 and ARM become `Not needed`, and Kafka gets the
error.
- Second pass: no writes and no file-list requests.
Also checked the new `detect-changes` regexes against sample paths, and
checked
that all modified workflow files parse.
## Was this patch authored or co-authored using generative AI tooling?
Yes
<!--
If generative AI tooling has been used in the process of authoring this
patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]