This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 67722e8ebec1 chore(ci): Show tested modules in GitHub Actions step
summary (#21926)
67722e8ebec1 is described below
commit 67722e8ebec1b3264bfe7587d1d55367ab4d4dee
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed Mar 11 09:28:06 2026 +0100
chore(ci): Show tested modules in GitHub Actions step summary (#21926)
Add the list of changed and tested modules to the step summary so
reviewers can see what was actually built and tested without digging
through log artifacts. Changed modules are shown directly, and the
full reactor list (including downstream dependents) is in a
collapsible details section.
---
.../actions/incremental-build/incremental-build.sh | 29 +++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/.github/actions/incremental-build/incremental-build.sh
b/.github/actions/incremental-build/incremental-build.sh
index 8b5858398866..681f73034c6c 100755
--- a/.github/actions/incremental-build/incremental-build.sh
+++ b/.github/actions/incremental-build/incremental-build.sh
@@ -168,9 +168,36 @@ function main() {
fi
fi
+ # Write the list of tested modules to the step summary
+ if [[ -n "$pl" && ${buildAll} != "true" ]] ; then
+ echo "### Changed modules" >> "$GITHUB_STEP_SUMMARY"
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ for w in $(echo "$pl" | tr ',' '\n'); do
+ echo "- \`$w\`" >> "$GITHUB_STEP_SUMMARY"
+ done
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ # Extract full reactor module list from the build log
+ if [[ -f "$log" ]] ; then
+ local reactor_modules
+ reactor_modules=$(grep '^\[INFO\] Camel ::' "$log" | sed 's/\[INFO\] //'
| sed 's/ \..*$//' | sort -u)
+ if [[ -n "$reactor_modules" ]] ; then
+ local count
+ count=$(echo "$reactor_modules" | wc -l | tr -d ' ')
+ echo "<details><summary><b>All tested modules ($count)</b></summary>"
>> "$GITHUB_STEP_SUMMARY"
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ echo "$reactor_modules" | while read -r m; do
+ echo "- $m" >> "$GITHUB_STEP_SUMMARY"
+ done
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ echo "</details>" >> "$GITHUB_STEP_SUMMARY"
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ fi
+ fi
+ fi
+
if [[ ${ret} -ne 0 ]] ; then
echo "Processing surefire and failsafe reports to create the summary"
- echo -e "| Failed Test | Duration | Failure Type |\n| --- | --- | --- |"
> "$GITHUB_STEP_SUMMARY"
+ echo -e "| Failed Test | Duration | Failure Type |\n| --- | --- | --- |"
>> "$GITHUB_STEP_SUMMARY"
find . -path '*target/*-reports*' -iname '*.txt' -exec
.github/actions/incremental-build/parse_errors.sh {} \;
fi