File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,18 +76,20 @@ jobs:
7676 echo ""
7777
7878 # Extract the EP Summary section from the terminal output (now multi-line)
79- EP_SUMMARY_SECTION=$(grep -A 10 "EP Summary |" test_output.log 2>/dev/null || echo "")
79+ # First get the header line, then get the following lines with agg_score
80+ EP_SUMMARY_HEADER=$(grep "EP Summary |" test_output.log 2>/dev/null || echo "")
81+ EP_SUMMARY_SECTION=$(grep -A 5 "EP Summary |" test_output.log 2>/dev/null || echo "")
8082
8183 if [ -n "$EP_SUMMARY_SECTION" ]; then
8284 echo "Found EP Summary section:"
8385 echo "$EP_SUMMARY_SECTION"
8486
8587 # Parse the agg_score from the multi-line format: " agg_score=0.420 (valid scores only)"
86- SUCCESS_RATE=$(echo "$EP_SUMMARY_SECTION" | grep -o "agg_score=[0-9.]*" | cut -d= -f2 2>/dev/null || echo "0")
88+ SUCCESS_RATE=$(echo "$EP_SUMMARY_SECTION" | grep "agg_score=" | grep -o "agg_score=[0-9.]*" | cut -d= -f2 2>/dev/null || echo "0")
8789
8890 # Extract other info from the header line
89- NUM_RUNS=$(echo "$EP_SUMMARY_SECTION " | grep -o "runs=[0-9]*" | cut -d= -f2 2>/dev/null || echo "0")
90- NUM_ROWS=$(echo "$EP_SUMMARY_SECTION " | grep -o "rows=[0-9]*" | cut -d= -f2 2>/dev/null || echo "0")
91+ NUM_RUNS=$(echo "$EP_SUMMARY_HEADER " | grep -o "runs=[0-9]*" | cut -d= -f2 2>/dev/null || echo "0")
92+ NUM_ROWS=$(echo "$EP_SUMMARY_HEADER " | grep -o "rows=[0-9]*" | cut -d= -f2 2>/dev/null || echo "0")
9193
9294 echo "success_rate=$SUCCESS_RATE" >> $GITHUB_OUTPUT
9395
You can’t perform that action at this time.
0 commit comments