Skip to content
Snippets Groups Projects
Commit cfeb01a8 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Florian Uhlig
Browse files

BugFix: OnlineRecoCanProcessTimeslice could not succeed in...

BugFix: OnlineRecoCanProcessTimeslice could not succeed in Nightly/Profile/Weekly test due to broken logic

Multiple problems with the ensure_gt_zero method and the test in general
1) running on more than 1 TS w/ the original sed cmd returns multiple values (1/TS) and crash the if condition next line
=> For now change search to exit after first match (as 1st TS present in CI, Nightly and Weekly tests)
2) Many of the checks "greater than 0" work only for in-spill TS and there is no insurance it will the case
=> For now only the currently tested run 2391 from 2022 can be used
parent 75ab7fbf
No related branches found
No related tags found
1 merge request!2102CI/CDASH: tune nightlies to avoid failing tests every night
......@@ -51,7 +51,11 @@ function ensure_gt_zero {
# Use sed to extract the value for the current placeholder
# echo "Searching for $placeholder..."
id=$(echo "$placeholder" | grep -o '[0-9]\+')
value=$(echo "$output" | sed -n "s/.*$sed_pattern.*/\\$id/p")
# FIXME, PAL 23/05/2025: multiple problems with this method and test
# 1) running on more than 1 TS w/ original sed cmd returns multiple values (1/TS) and crash test next line
# 2) Many of the checks "greater than 0" work only for in-spill TS and there is no insurance it is the case
# => For now change search to exit after first match (as 1st TS present in CI, Nightly and Weekly tests)
value=$(echo "$output" | sed -n "s/.*$sed_pattern.*/\\$id/p" | head -n1)
if [ -n "$value" ] && [ "$value" -gt 0 ]; then
continue
else
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment