[SPARK-58852][INFRA] Replace archived test report action - #58098
[SPARK-58852][INFRA] Replace archived test report action#58098gaogaotiantian wants to merge 10 commits into
Conversation
|
Thank you for working on this, and the motivation is valid: the However, I believe there are two blockers in the current diff that would leave us with no test report at all. 1. From name:
description: Name of the check run
required: trueThere is no default, and readonly name = core.getInput('name', {required: true})So 2. In v3,
if (this.useActionsSummary) {
...
await core.summary.addRaw(summary).write()
} else {
core.info(`Creating check run ${name}`)
const createResp = await this.octokit.rest.checks.create({...})
...
const annotations = getAnnotations(results, this.maxAnnotations)
...
}With the default ( Putting both together: - name: Publish test report
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2
with:
name: Report test results
reporter: java-junit
token: ${{ secrets.GITHUB_TOKEN }}
path: "**/target/test-reports/*.xml"
use-actions-summary: false
fail-on-empty: falseOne note on verification: since |
|
I pushed the code to my own master as @dongjoon-hyun suggested, and the test report worked fine - https://github.com/gaogaotiantian/spark/runs/96371809832 . The job itself is https://github.com/gaogaotiantian/spark/actions/runs/32351605789/job/96371761596 . |
|
After some investigation, I realized that |
|
The new action looks promising - https://github.com/gaogaotiantian/spark/runs/96782026558 I will update the description and revert the intentional test failure later, but this action seems to be a good alternative for our old one. Also it's listed on ASF's allowlist already. |
This reverts commit fd5a58a.
|
Hi all, I've updated the description and made the PR ready for review. The example report is listed above, which I obtained by changing my |
### What changes were proposed in this pull request? Replace `scacap/action-surefire-report` with `EnricoMi/publish-unit-test-result-action` for test reporting. ### Why are the changes needed? `scacap/action-surefire-report` is [archived](https://github.com/ScaCap/action-surefire-report) and removed from apache's allowlist. It has a [descendent](https://github.com/ScaCap/action-surefire-report) but none of them are used as much as `EnricoMi/publish-unit-test-result-action` , which is already listed on apache's allowlist. We should use the popular projects which is better maintained and tested. Also it saves us trouble to create a new entry for the allowed action. We considered `dorny/test-reporter` but we realized that the latest released version (v3.0.0) does not have the `list-files` options, which means it will always list **all** the files in the test suite and it will always overflow the buffer github allows. ### Does this PR introduce _any_ user-facing change? No, CI only. ### How was this patch tested? CI should show this report. `test report` action on `apache/spark` has been failing for a while. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #58098 from gaogaotiantian/replace-report-action. Authored-by: Tian Gao <gaogaotiantian@hotmail.com> Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com> (cherry picked from commit 05c2c12) Signed-off-by: Tian Gao <gaogaotiantian@hotmail.com>
What changes were proposed in this pull request?
Replace
scacap/action-surefire-reportwithEnricoMi/publish-unit-test-result-actionfor test reporting.Why are the changes needed?
scacap/action-surefire-reportis archived and removed from apache's allowlist. It has a descendent but none of them are used as much asEnricoMi/publish-unit-test-result-action, which is already listed on apache's allowlist. We should use the popular projects which is better maintained and tested. Also it saves us trouble to create a new entry for the allowed action.We considered
dorny/test-reporterbut we realized that the latest released version (v3.0.0) does not have thelist-filesoptions, which means it will always list all the files in the test suite and it will always overflow the buffer github allows.Does this PR introduce any user-facing change?
No, CI only.
How was this patch tested?
CI should show this report.
test reportaction onapache/sparkhas been failing for a while.Was this patch authored or co-authored using generative AI tooling?
No.