Skip to content

[CI][CTS] Check if the cts_exclude_filter exists #17715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 31, 2025
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
14 changes: 8 additions & 6 deletions devops/actions/run-tests/cts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
# of test categories to be excluded from the build.
echo "::group::Excluded test categories"
cat $cts_exclude_filter
[ -f "$cts_exclude_filter" ] && cat "$cts_exclude_filter"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but when could it not exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for example when we test old branches:) - fresh example https://github.com/intel/llvm/actions/runs/14133470110/job/39601252637

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok

echo "::endgroup::"
fi

Expand Down Expand Up @@ -134,11 +134,13 @@ runs:
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
fi

while IFS= read -r line; do
if [[ $line != \#* ]]; then
rm "./build-cts/bin/test_$line"
fi
done < "$cts_exclude_filter"
if [ -f "$cts_exclude_filter" ]; then
while IFS= read -r line; do
if [[ $line != \#* ]]; then
rm "./build-cts/bin/test_$line"
fi
done < "$cts_exclude_filter"
fi

- name: Run SYCL CTS tests
# Proceed with execution even if the previous two steps did not succeed.
Expand Down
14 changes: 8 additions & 6 deletions devops/actions/run-tests/windows/cts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
# of test categories to be excluded from the build.
echo "::group::Excluded test categories"
cat $cts_exclude_filter
[ -f "$cts_exclude_filter" ] && cat "$cts_exclude_filter"
echo "::endgroup::"
fi

Expand Down Expand Up @@ -136,11 +136,13 @@ runs:
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
fi

while IFS= read -r line; do
if [[ $line != \#* ]]; then
rm "./build-cts/bin/test_$line"
fi
done < "$cts_exclude_filter"
if [ -f "$cts_exclude_filter" ]; then
while IFS= read -r line; do
if [[ $line != \#* ]]; then
rm "./build-cts/bin/test_$line"
fi
done < "$cts_exclude_filter"
fi

- name: Run SYCL CTS tests
# Proceed with execution even if the previous two steps did not succeed.
Expand Down
Loading