зеркало из https://github.com/microsoft/CCF.git
Log instances of excessive I/O waits (#4287)
This commit is contained in:
Родитель
fa5304ef9e
Коммит
10613ecfb3
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
Загрузка…
Ссылка в новой задаче