Skip to content

Commit e07cb8b

Browse files
committed
Update allowed errors
Signed-off-by: Uilian Ries <[email protected]>
1 parent 274c01e commit e07cb8b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/scripts/validate-cci-patch-ng.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,19 @@ for it in $RECIPES; do
6767
# Accept some errors as non-fatal
6868
if [ $? -ne 0 ]; then
6969
echo "WARNING: conan create failed for $recipe_dir"
70-
if echo "$output" | grep -q "ERROR: There are invalid packages"; then
71-
echo "WARNING: Invalid packages found, skipping the build."
72-
elif echo "$output" | grep -q "ERROR: Version conflict"; then
73-
echo "WARNING: Version conflict, skipping the build."
74-
elif echo "$output" | grep -q "ERROR: Missing binary"; then
75-
echo "WARNING: Missing binary, skipping the build."
70+
allowed_errors=(
71+
"ERROR: There are invalid packages"
72+
"ERROR: Version conflict"
73+
"ERROR: Missing binary"
74+
"Failed to establish a new connection"
75+
"ConanException: sha256 signature failed"
76+
"NotFoundException: Not found"
77+
)
78+
# check if any allowed error is in the output
79+
if printf '%s\n' "${allowed_errors[@]}" | grep -q -f - <(echo "$output"); then
80+
echo "WARNING: Could not apply patches, skipping build:"
81+
echo "$output" | tail -n 10
82+
echo "-------------------------------------------------------"
7683
else
7784
echo "ERROR: Fatal error during conan create command execution:"
7885
echo "$output"

0 commit comments

Comments
 (0)