ci: fix test results not commenting on PRs#2462
Merged
jbonofre merged 1 commit intoapache:mainfrom Mar 19, 2026
Merged
Conversation
The publish-unit-test-result-action in workflow_run mode needs the original event payload file to identify the associated PR. The CI workflow was not uploading it, and the test-results workflow was referencing a non-existent property (github.event.workflow_run.event_path). Upload the event file as a separate artifact in CI and download it in the test-results workflow so the action can correctly post PR comments.
9c0e640 to
6122da4
Compare
jbonofre
added a commit
to jbonofre/karaf
that referenced
this pull request
Mar 19, 2026
Backport of apache#2462 to karaf-4.4.x. The publish-unit-test-result-action in workflow_run mode needs the original event payload file to identify the associated PR. The CI workflow was not uploading it, and the test-results workflow was referencing a non-existent property (github.event.workflow_run.event_path). Upload the event file as a separate artifact in CI and download it in the test-results workflow so the action can correctly post PR comments.
3 tasks
jbonofre
added a commit
that referenced
this pull request
Mar 19, 2026
Backport of #2462 to karaf-4.4.x. The publish-unit-test-result-action in workflow_run mode needs the original event payload file to identify the associated PR. The CI workflow was not uploading it, and the test-results workflow was referencing a non-existent property (github.event.workflow_run.event_path). Upload the event file as a separate artifact in CI and download it in the test-results workflow so the action can correctly post PR comments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
publish-unit-test-result-actiongithub.event.workflow_run.event_pathpropertyThe
publish-unit-test-result-actioninworkflow_runmode needs the original event file to identify the associated PR and post comments. Without it, the action creates check runs but cannot comment on PRs.Test plan
event-fileartifact