Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1224129?usp=email )

Change subject: [CI] Exclude coverage for GraalPy 25 on Ubuntu
......................................................................

[CI] Exclude coverage for GraalPy 25 on Ubuntu

GraalPy 25 exhibits severe performance regressions with coverage enabled on
Linux runners, causing test jobs to be extremely slow or flaky. To keep
the CI practical, disable coverage only for GraalPy 25 on Ubuntu, while
retaining coverage for all other Python versions and platforms.

- Run pytest without coverage for GraalPy 25 on Ubuntu
- Keep coverage GraalPy 24.x and other os
- No change to test logic, only coverage collection

Bug: T413596
Change-Id: I446c0e087b785a30b890ba381c793370b7aadad3
---
M .github/workflows/graalpy_tests.yml
1 file changed, 9 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/.github/workflows/graalpy_tests.yml 
b/.github/workflows/graalpy_tests.yml
index 146e63f..8e4434e 100644
--- a/.github/workflows/graalpy_tests.yml
+++ b/.github/workflows/graalpy_tests.yml
@@ -50,7 +50,7 @@
       - name: Generate user files
         run: |
           python -Werror::UserWarning -m pwb generate_user_files 
-site:${{matrix.site}} -v -debug;
-      - name: Test with unittest or pytest
+      - name: Test with pytest
         id: ci_test
         continue-on-error: true
         timeout-minutes: 110
@@ -59,7 +59,14 @@
           PYWIKIBOT_TEST_NO_RC: 1
         run: |
           python pwb.py version
-          coverage run -m pytest -k "not TestDate" -a "not net" 
--ignore=tests/script_tests.py
+          TEST_CMD="pytest -k 'not TestDate' -a 'not net' 
--ignore=tests/script_tests.py"
+          if [[ "${{ matrix.python-version }}" == "graalpy-25.0" && "${{ 
matrix.os }}" == "ubuntu-latest" ]]; then
+            echo "Running tests without coverage (GraalPy 25 on Ubuntu)"
+            $TEST_CMD
+          else
+            echo "Running tests with coverage"
+            coverage run -m $TEST_CMD
+          fi
       - name: Show coverage statistics
         run: |
           coverage combine || true

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1224129?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I446c0e087b785a30b890ba381c793370b7aadad3
Gerrit-Change-Number: 1224129
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to