The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Fix error in Summarize test wall times (#80876)
Ben Grabow0a3659ea3db9
diff --git a/.github/actions/collect-profile/action.yml b/.github/actions/collect-profile/action.ymlindex 6c1acf02923..18c139ae3bc 100644--- a/.github/actions/collect-profile/action.yml+++ b/.github/actions/collect-profile/action.yml@@ -18,6 +18,10 @@ runs:steps:# Unlike a JUnit failure report, these run on a green build too — a suite that passes slowly is# exactly what profiling is for.+ #+ # `awk 'NR<=25'` rather than `head -25`: the runner ignores SIGPIPE, so `head` exiting early+ # leaves `sort` with an EPIPE write error and `pipefail` fails the step. `|| true` covers `grep`+ # finding no junit files.- name: Summarize test wall timesif: ${{ inputs.profiled == 'true' }}continue-on-error: true@@ -28,13 +32,13 @@ runs:echo '```'grep -h '<testsuite' target/junit/*.xml 2>/dev/null \| sed -E 's|.*<testsuite name="([^"]*)" time="([^"]*)".*|\2 \1|' \- | sort -rn | head -25+ | sort -rn | awk 'NR<=25' || trueecho '```'echo "### Slowest tests (seconds)"echo '```'grep -h '<testcase' target/junit/*.xml 2>/dev/null \| sed -E 's|.*classname="([^"]*)" name="([^"]*)" time="([^"]*)".*|\3 \1/\2|' \- | sort -rn | head -25+ | sort -rn | awk 'NR<=25' || trueecho '```'} >> "$GITHUB_STEP_SUMMARY"