From f4273fe26910c61682561bb5d7ca2f89b2558c06 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 22:45:24 +0500 Subject: [PATCH 1/4] Upd. Codecov #2 - do not forget revert tests! --- .github/workflows/tests.yml | 10 ++++++---- composer.json | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 97fd16f1e..469e8e23e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,7 +58,7 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Wait for Codecov status + - name: Wait for Codecov patch status uses: actions/github-script@v7 id: codecov_check with: @@ -71,8 +71,8 @@ jobs: return new Promise(resolve => setTimeout(resolve, ms)); } - for (let i = 0; i < 20; i++) { - const { data } = await github.repos.getCombinedStatusForRef({ + for (let i = 0; i < 30; i++) { + const { data } = await github.rest.repos.getCombinedStatusForRef({ owner, repo, ref, @@ -83,11 +83,13 @@ jobs: ); if (codecov) { + core.info(`Codecov state: ${codecov.state}`); core.setOutput("state", codecov.state); return; } - await wait(10000); // ждём 10 сек + core.info("Codecov status not ready yet..."); + await wait(10000); } core.setOutput("state", "not_found"); diff --git a/composer.json b/composer.json index 2fe71d17e..cc17a9796 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,9 @@ "test": [ "vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml", "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", - "vendor/bin/phpcs --standard=tests/.phpcs.xml", - "vendor/bin/psalm --no-cache --config=psalm.xml", - "vendor/bin/psalm --no-cache --config=psalm.xml --taint-analysis" +// "vendor/bin/phpcs --standard=tests/.phpcs.xml", +// "vendor/bin/psalm --no-cache --config=psalm.xml", +// "vendor/bin/psalm --no-cache --config=psalm.xml --taint-analysis" ], "psalm_l1": [ "vendor/bin/psalm --no-cache --config=psalm.xml" From 4a44f869a66fdefd0ac770fa4285dcfcc4971f02 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 22:47:13 +0500 Subject: [PATCH 2/4] Upd. Codecov #3 - do not forget revert tests! --- composer.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/composer.json b/composer.json index cc17a9796..c69b48824 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,6 @@ "test": [ "vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml", "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", -// "vendor/bin/phpcs --standard=tests/.phpcs.xml", -// "vendor/bin/psalm --no-cache --config=psalm.xml", -// "vendor/bin/psalm --no-cache --config=psalm.xml --taint-analysis" ], "psalm_l1": [ "vendor/bin/psalm --no-cache --config=psalm.xml" From 97894ce636c14ff235474b8ef81e73c6a3daac47 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 22:49:10 +0500 Subject: [PATCH 3/4] Upd. Codecov #4 - do not forget revert tests! --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c69b48824..298f4b998 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "scripts": { "test": [ "vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml", - "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", + "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility" ], "psalm_l1": [ "vendor/bin/psalm --no-cache --config=psalm.xml" From 8826b0ee6853ded041fb5a67e57ac2eeb82c6698 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 22:56:38 +0500 Subject: [PATCH 4/4] Test. Coverage #2 --- cleantalk.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cleantalk.php b/cleantalk.php index 9053519bb..ede531be2 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -1210,6 +1210,9 @@ function apbct_sfw_update__init($delay = 0) function apbct_sfw_update__check_requirements() { global $apbct; + $something = 'nothing';// just a change to make sure patch failed. + $something = 'allornothing';// just a change to make sure patch failed. + return $something ?: true; $result = true; try { // The Access key is empty