From 7bef614cbbc25f158785175f55c4f68718ec072e Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 16 Nov 2026 13:38:52 +0000 Subject: [PATCH 1/5] Add CI for MW 1.46 --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62be863..1074556 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,6 +45,13 @@ jobs: database_image: "mariadb:12.3" coverage: false experimental: false + - mediawiki_version: '1.46' + smw_version: dev-master + php_version: 8.4 + database_type: mysql + database_image: "mariadb:12.3" + coverage: false + experimental: false env: MW_VERSION: ${{ matrix.mediawiki_version }} From 826fe5502cf6bf10b6a0e3defd0f96b696c584f5 Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 16 Nov 2026 13:44:01 +0000 Subject: [PATCH 2/5] Refactor phpunit commands in composer.json --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 138b439..bf06bd9 100644 --- a/composer.json +++ b/composer.json @@ -63,8 +63,11 @@ "fix": [ "@phpcs-fix" ], - "phpunit": "php ${MW_INSTALL_PATH:-../..}/tests/phpunit/phpunit.php -c phpunit.xml.dist", - "phpunit-coverage": "php ${MW_INSTALL_PATH:-../..}/tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml", + "phpunit": [ + "Composer\\Config::disableProcessTimeout", + "cd ${MW_INSTALL_PATH:-../..} && { [ -f tests/phpunit/generatePHPUnitConfig.php ] && { php tests/phpunit/generatePHPUnitConfig.php >/dev/null 2>&1 || true; [ -f phpunit.xml ] || printf '%s' '' > phpunit.xml; } || true; } && MEDIAWIKI_HAS_INTEGRATION_TESTS=1 vendor/bin/phpunit -c extensions/SemanticExternalQueryLookup/phpunit.xml.dist --bootstrap tests/phpunit/bootstrap.php" + ], + "phpunit-coverage": "@phpunit --testdox --coverage-text --coverage-html extensions/SemanticExternalQueryLookup/coverage/php --coverage-clover extensions/SemanticExternalQueryLookup/coverage/php/coverage.xml", "post-test-coverage": [ "sed -i 's|/var/www/html/extensions/SemanticExternalQueryLookup/||g' coverage/php/coverage.xml", "find coverage/php -type f -name '*.html' -exec sed -i 's|/var/www/html/extensions/||g' {} +" From d30410abdfd3a5bc3391996c5dc0f238ccc0a779 Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 16 Nov 2026 13:44:44 +0000 Subject: [PATCH 3/5] Fix coverage file paths in CI workflow Update coverage file paths for Codecov action. --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1074556..6813839 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,5 +81,9 @@ jobs: uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} - files: coverage/php/coverage.xml + # Coverage files are written into the Docker volume mounted at + # build/coverage/ (see build/docker-compose-ci.yml), NOT at the + # repo root. Using the correct paths ensures Codecov applies the + # codecov.yml path fixes and resolves PHP paths correctly. + files: build/coverage/php/coverage.xml,build/coverage/js/clover.xml if: matrix.coverage == true From 4e28ab0324161bb362e9c4dc6969f964b2021c9c Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 16 Nov 2026 13:45:03 +0000 Subject: [PATCH 4/5] Update CI workflow to use Ubuntu 24.04 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6813839..846ee89 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 continue-on-error: ${{ matrix.experimental }} strategy: From 48d60c038887034d8855d0cef6abe304fc00d41f Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 16 Nov 2026 13:46:18 +0000 Subject: [PATCH 5/5] Update Codecov files in CI configuration Removed JavaScript coverage file from Codecov configuration. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 846ee89..411fed9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,5 +85,5 @@ jobs: # build/coverage/ (see build/docker-compose-ci.yml), NOT at the # repo root. Using the correct paths ensures Codecov applies the # codecov.yml path fixes and resolves PHP paths correctly. - files: build/coverage/php/coverage.xml,build/coverage/js/clover.xml + files: build/coverage/php/coverage.xml if: matrix.coverage == true