From d39e5d0bfb69a64a362ffc026f5fe01e196e4db2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 22 Aug 2026 09:44:46 +0200 Subject: [PATCH] Report slow tests by duration instead of by rank (#179792) Co-authored-by: Claude --- .github/workflows/ci.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6efa808ce194..0594c8bf983f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -861,9 +861,6 @@ jobs: - name: Register Python problem matcher run: | echo "::add-matcher::.github/workflows/matchers/python.json" - - name: Register pytest slow test problem matcher - run: | - echo "::add-matcher::.github/workflows/matchers/pytest-slow.json" - name: Download pytest_buckets uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: @@ -895,7 +892,8 @@ jobs: python3 -b -X dev -m pytest \ -qq \ --timeout=9 \ - --durations=10 \ + --durations=0 \ + --durations-min=1 \ --numprocesses auto \ --snapshot-details \ --dist=loadfile \ @@ -997,9 +995,6 @@ jobs: - name: Register Python problem matcher run: | echo "::add-matcher::.github/workflows/matchers/python.json" - - name: Register pytest slow test problem matcher - run: | - echo "::add-matcher::.github/workflows/matchers/pytest-slow.json" - name: Install SQL Python libraries run: | . venv/bin/activate @@ -1038,7 +1033,8 @@ jobs: --snapshot-details \ ${cov_params[@]} \ -o console_output_style=count \ - --durations=10 \ + --durations=0 \ + --durations-min=10 \ -p no:sugar \ --exclude-warning-annotations \ --dburl=mysql://root:password@127.0.0.1/homeassistant-test \ @@ -1150,9 +1146,6 @@ jobs: - name: Register Python problem matcher run: | echo "::add-matcher::.github/workflows/matchers/python.json" - - name: Register pytest slow test problem matcher - run: | - echo "::add-matcher::.github/workflows/matchers/pytest-slow.json" - name: Install SQL Python libraries run: | . venv/bin/activate