Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,16 @@ runs:

# Count total tests by unique test names (not file extensions)
# Get base test names by removing extensions and extracting just the test name
test_names=$(find "$wpath/results/last-run" -type f -name "*" | \
total_tests=$(find "$wpath/results/last-run" -type f -name "*" | \
grep -E '/[^/]*$' | \
sed 's|.*/||' | \
sed 's/\.\(full\|out\|runtime\|dmesg\)$//' | \
sort -u)
total_tests=$(echo "$test_names" | grep -v '^$' | wc -l)
sort -u | \
grep -v '^$' | \
wc -l)

bad_files=$(find "$wpath/results/last-run" -name "*.out.bad" -type f)
if [[ -n "$bad_files" ]]; then
failed_tests=$(echo "$bad_files" | wc -l)
else
failed_tests=0
fi
# Count failed tests directly from find output
failed_tests=$(find "$wpath/results/last-run" -name "*.out.bad" -type f | wc -l)

passed_tests=$((total_tests - failed_tests))

Expand All @@ -149,8 +146,8 @@ runs:
# Show sample test status files for passed tests
if [ $passed_tests -gt 0 ]; then
echo -e "\nSample passed test:" >> ci.commit_extra
sample_files=$(find "$wpath/results/last-run" -type f -name "*" ! -name "*.out.bad" ! -name "*.dmesg")
sample_file=$(echo "$sample_files" | head -1)
# Get first sample file directly without echo pipe to avoid SIGPIPE with set -o pipefail
sample_file=$(find "$wpath/results/last-run" -type f -name "*" ! -name "*.out.bad" ! -name "*.dmesg" | head -1)
if [ -n "$sample_file" ] && [ -f "$sample_file" ]; then
cat "$sample_file" >> ci.commit_extra || echo "Failed to read sample file" >> ci.commit_extra
else
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/kdevops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ on:
- linux
- linux-next
- linux-stable
- kdevops-linus
kernel_ref:
description: "Linux tree git reference (branch/tag/commit-id)"
required: true
Expand Down Expand Up @@ -271,7 +272,14 @@ jobs:
|| 'kdevops-ci'
}}
tests: ${{ github.event.inputs.tests || '' }}
timeout-minutes: 120
# Timeout: linux-ci runs full test suite (24 hours),
# kdevops-ci runs single test (2 hours)
timeout-minutes: >-
${{
(github.event_name == 'schedule' && 1440)
|| (github.event.inputs.test_mode == 'linux-ci' && 1440)
|| 120
}}

- name: Archive results
uses: ./.github/actions/archive
Expand Down
Loading