You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2026/09/10 15:54:00 UTC
[jira] [Commented] (CAMEL-23318) /component/test command on GitHub PR is broken
[ https://issues.apache.org/jira/browse/CAMEL-23318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113923#comment-18113923 ]
Guillaume Nodet commented on CAMEL-23318:
-----------------------------------------
This issue is being investigated by a coding agent (on behalf of gnodet).
Analysis: The breakage was introduced by commit 959c7e87610e which refactored pr-manual-component-test.yml to dispatch the "Build and test" workflow instead of running tests directly. The bug: the workflow extracts head.ref from the GitHub API and passes it as pr_ref to the dispatched workflow. For fork PRs, head.ref is the branch name in the *fork* (e.g., "myFeatureBranch"), which does not exist in apache/camel. The dispatched workflow then fails to checkout because the ref cannot be found in the base repo. The fix is to use refs/pull/${PR_NUMBER}/head instead of head.ref, since GitHub makes fork commit SHAs accessible through PR merge refs.
_Note: This comment was generated by an AI coding agent and requires manual verification._
> /component/test command on GitHub PR is broken
> ----------------------------------------------
>
> Key: CAMEL-23318
> URL: https://issues.apache.org/jira/browse/CAMEL-23318
> Project: Camel
> Issue Type: Test
> Components: build system
> Affects Versions: 4.19.0
> Reporter: Aurélien Pupier
> Assignee: Guillaume Nodet
> Priority: Minor
>
> a little thumbs up is added but no build is triggered, see for instance https://github.com/apache/camel/pull/22581#issuecomment-4235931940
--
This message was sent by Atlassian Jira
(v8.20.10#820010)