diff --git a/.azure-pipelines-templates/common.yml b/.azure-pipelines-templates/common.yml index 3ebbb24bac..0b75c34f0c 100644 --- a/.azure-pipelines-templates/common.yml +++ b/.azure-pipelines-templates/common.yml @@ -39,6 +39,10 @@ jobs: suite_name_suffix: "${{ parameters.target }} ${{ parameters.suffix }}" ctest_timeout: ${{ parameters.ctest_timeout }} + - template: misc.yml + parameters: + suite_name_suffix: "${{ parameters.target }}_${{ parameters.suffix }}" + - ${{ if eq(parameters.suffix, 'Instrumented') }}: - template: scan_build.yml diff --git a/.azure-pipelines-templates/misc.yml b/.azure-pipelines-templates/misc.yml new file mode 100644 index 0000000000..842b795b62 --- /dev/null +++ b/.azure-pipelines-templates/misc.yml @@ -0,0 +1,18 @@ +parameters: + suite_name_suffix: "" + +steps: + # Whether tests pass or fail, print out a per-logfile, and total number of I/O operations that + # exceeded our opinion of "too long". + - script: | + sudo apt install ripgrep > /dev/null + echo "TOOK TOO LONG " + echo "-------------------------------------" + rg "Took too long" --count + echo "-------------------------------------" + echo "TOOK TOO LONG TOTAL" + echo "-------------------------------------" + rg "Took too long" --count | cut -d : -f 2 | awk '{ sum += $1 } END { print sum }' + workingDirectory: build + displayName: "Took too long metrics" + condition: succeededOrFailed()