From 90e55d2c9cc4ea1b4cb48ef3b3343abfbd0757ca Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:59:24 -0400 Subject: [PATCH 1/5] Improve Slack cancellation notifications. This changes the logic for cancellation notifications in Slack to only send a cancellation notice only when the run is cancelled on the second attempt. Because a `cancelled` status can represent several different outcomes (manually cancelled, timeout value reached, etc.), this notification type is often unnecessarily noisy. --- .github/workflows/slack-notifications.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index bf9dca7dbf362..1303b0ea1e15d 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -218,7 +218,7 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 20 needs: [ prepare ] - if: ${{ inputs.calling_status == 'cancelled' || cancelled() }} + if: ${{ ( inputs.calling_status == 'cancelled' && github.run_attempt == 2 ) || cancelled() }} steps: - name: Post cancelled notifications to Slack From 140ad0dc1f5b522553faeba436a3a26e331215e3 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:59:55 -0400 Subject: [PATCH 2/5] Distinguish truly cancelled runs from time outs. --- .github/workflows/coding-standards.yml | 1 + .github/workflows/end-to-end-tests.yml | 1 + .github/workflows/install-testing.yml | 1 + .github/workflows/javascript-tests.yml | 1 + .../workflows/javascript-type-checking.yml | 1 + .../workflows/local-docker-environment.yml | 1 + .github/workflows/performance.yml | 1 + .github/workflows/php-compatibility.yml | 1 + .github/workflows/phpstan-static-analysis.yml | 1 + .github/workflows/phpunit-tests.yml | 1 + .github/workflows/slack-notifications.yml | 57 ++++++++++++++++++- .../workflows/test-and-zip-default-themes.yml | 1 + .github/workflows/test-build-processes.yml | 1 + .github/workflows/test-coverage.yml | 1 + .github/workflows/test-old-branches.yml | 1 + .github/workflows/upgrade-develop-testing.yml | 1 + .github/workflows/upgrade-testing.yml | 1 + .github/workflows/workflow-lint.yml | 1 + 18 files changed, 73 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 6f9fc831df92f..a8405ec9588ae 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -80,6 +80,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 4375091546dd7..de7e178fb3217 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -87,6 +87,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/install-testing.yml b/.github/workflows/install-testing.yml index 440c2ee842149..e46b26c2bf727 100644 --- a/.github/workflows/install-testing.yml +++ b/.github/workflows/install-testing.yml @@ -152,6 +152,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 4ebb1fd17b499..f5aff4e504562 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -75,6 +75,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/javascript-type-checking.yml b/.github/workflows/javascript-type-checking.yml index b8a10da5465bd..261947aeee75e 100644 --- a/.github/workflows/javascript-type-checking.yml +++ b/.github/workflows/javascript-type-checking.yml @@ -66,6 +66,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/local-docker-environment.yml b/.github/workflows/local-docker-environment.yml index b786cc2419c03..68fccaddb0475 100644 --- a/.github/workflows/local-docker-environment.yml +++ b/.github/workflows/local-docker-environment.yml @@ -135,6 +135,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 87832b1c52ca2..167aeb1defc30 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -148,6 +148,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index bd81c8958daa6..da6bc2e5c7930 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -64,6 +64,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/phpstan-static-analysis.yml b/.github/workflows/phpstan-static-analysis.yml index a479e8e371214..3905a6f5056a9 100644 --- a/.github/workflows/phpstan-static-analysis.yml +++ b/.github/workflows/phpstan-static-analysis.yml @@ -62,6 +62,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index b387ebacd0874..21441543815e6 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -336,6 +336,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 1303b0ea1e15d..5adf3187b1274 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -25,6 +25,9 @@ on: SLACK_GHA_FAILURE_WEBHOOK: description: 'The Slack webhook URL for a failed build.' required: true + SLACK_GHA_TIMEOUT_WEBHOOK: + description: 'The Slack webhook URL for a timed out build.' + required: true # Disable permissions for all available scopes by default. # Any needed permissions should be configured at the job level. @@ -55,6 +58,7 @@ jobs: if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event.workflow_run.event != 'pull_request' }} outputs: previous_conclusion: ${{ steps.previous-attempt-result.outputs.result }} + timed_out: ${{ steps.timeout-check.outputs.result }} payload: ${{ steps.create-payload.outputs.payload }} steps: @@ -128,6 +132,27 @@ jobs: env: CALLING_STATUS: ${{ inputs.calling_status }} + - name: Determine whether the workflow timed out + id: timeout-check + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + if: ${{ inputs.calling_status == 'cancelled' }} + with: + retries: 2 + retry-exempt-status-codes: 418 + result-encoding: string + script: | + // A job that exceeds its `timeout-minutes` is reported as a cancellation at the + // workflow expression level, but the REST API exposes a distinct `timed_out` job + // conclusion. Inspect the jobs for the current run attempt to tell the two apart. + const jobs = await github.paginate( github.rest.actions.listJobsForWorkflowRunAttempt, { + owner: context.repo.owner, + repo: context.repo.repo, + run_id: `${context.runId}`, + attempt_number: Number( process.env.GITHUB_RUN_ATTEMPT ), + }); + + return jobs.some( ( job ) => job.conclusion === 'timed_out' ) ? 'true' : 'false'; + - name: Get the commit message id: current-commit-message uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -212,13 +237,21 @@ jobs: payload: ${{ needs.prepare.outputs.payload }} # Posts notifications when a workflow is cancelled. + # + # A cancellation is only reported on the second run attempt. The first attempt is + # considered transient because failed-workflow.yml automatically reruns it, and a + # cancellation that persists into the second attempt is the actionable signal. + # Restricting to the second attempt also avoids re-notifying on later manual reruns. + # + # A timed out workflow is also reported as a cancellation at the expression level, so + # it is excluded here and handled by the dedicated timeout job below. cancelled: name: Cancelled notifications permissions: {} runs-on: ubuntu-24.04 timeout-minutes: 20 needs: [ prepare ] - if: ${{ ( inputs.calling_status == 'cancelled' && github.run_attempt == 2 ) || cancelled() }} + if: ${{ ( inputs.calling_status == 'cancelled' && github.run_attempt == 2 && needs.prepare.outputs.timed_out != 'true' ) || cancelled() }} steps: - name: Post cancelled notifications to Slack @@ -227,3 +260,25 @@ jobs: webhook-type: webhook-trigger webhook: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} payload: ${{ needs.prepare.outputs.payload }} + + # Posts notifications when a workflow times out. + # + # A timeout surfaces as a cancellation at the workflow expression level, so it is + # detected separately in the prepare job via the REST API. As with cancellations, a + # timeout is only reported on the second run attempt because the first attempt is + # transient and automatically rerun by failed-workflow.yml. + timeout: + name: Timeout notifications + permissions: {} + runs-on: ubuntu-24.04 + timeout-minutes: 20 + needs: [ prepare ] + if: ${{ inputs.calling_status == 'cancelled' && github.run_attempt == 2 && needs.prepare.outputs.timed_out == 'true' }} + + steps: + - name: Post timeout notifications to Slack + uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3 + with: + webhook-type: webhook-trigger + webhook: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} + payload: ${{ needs.prepare.outputs.payload }} diff --git a/.github/workflows/test-and-zip-default-themes.yml b/.github/workflows/test-and-zip-default-themes.yml index 1a44a8ff12e3a..1dc0f62677265 100644 --- a/.github/workflows/test-and-zip-default-themes.yml +++ b/.github/workflows/test-and-zip-default-themes.yml @@ -270,6 +270,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/test-build-processes.yml b/.github/workflows/test-build-processes.yml index 184f85a323993..ac75cdbbf1870 100644 --- a/.github/workflows/test-build-processes.yml +++ b/.github/workflows/test-build-processes.yml @@ -114,6 +114,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index e1c3dd3be2f59..fa34d5916f0d3 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -78,6 +78,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/test-old-branches.yml b/.github/workflows/test-old-branches.yml index ae651290d9cd8..42fe6482fa2a2 100644 --- a/.github/workflows/test-old-branches.yml +++ b/.github/workflows/test-old-branches.yml @@ -154,3 +154,4 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} diff --git a/.github/workflows/upgrade-develop-testing.yml b/.github/workflows/upgrade-develop-testing.yml index 6d4abe304ecfb..27146209a6277 100644 --- a/.github/workflows/upgrade-develop-testing.yml +++ b/.github/workflows/upgrade-develop-testing.yml @@ -127,6 +127,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/upgrade-testing.yml b/.github/workflows/upgrade-testing.yml index 8a74e5ae614c5..558884258a178 100644 --- a/.github/workflows/upgrade-testing.yml +++ b/.github/workflows/upgrade-testing.yml @@ -206,6 +206,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml index 0aae098543e21..bce521837c49e 100644 --- a/.github/workflows/workflow-lint.yml +++ b/.github/workflows/workflow-lint.yml @@ -54,6 +54,7 @@ jobs: SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} + SLACK_GHA_TIMEOUT_WEBHOOK: ${{ secrets.SLACK_GHA_TIMEOUT_WEBHOOK }} failed-workflow: name: Failed workflow tasks From d1f84d9e8c58a110d1b632bcb199697fa300e171 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Sun, 16 Aug 2026 14:10:57 -0700 Subject: [PATCH 3/5] Inline documentation changes. --- .github/workflows/slack-notifications.yml | 19 +- test-deprecations.txt | 321 ++++++++++++++++++++++ 2 files changed, 322 insertions(+), 18 deletions(-) create mode 100644 test-deprecations.txt diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index ae09954b44485..3011a1581afbf 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -132,6 +132,7 @@ jobs: env: CALLING_STATUS: ${{ inputs.calling_status }} + # The REST API exposes a distinct `timed_out` job conclusion that is unavailable through workflow contexts. - name: Determine whether the workflow timed out id: timeout-check uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -141,9 +142,6 @@ jobs: retry-exempt-status-codes: 418 result-encoding: string script: | - // A job that exceeds its `timeout-minutes` is reported as a cancellation at the - // workflow expression level, but the REST API exposes a distinct `timed_out` job - // conclusion. Inspect the jobs for the current run attempt to tell the two apart. const jobs = await github.paginate( github.rest.actions.listJobsForWorkflowRunAttempt, { owner: context.repo.owner, repo: context.repo.repo, @@ -236,15 +234,6 @@ jobs: webhook: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} payload: ${{ needs.prepare.outputs.payload }} - # Posts notifications when a workflow is cancelled. - # - # A cancellation is only reported on the second run attempt. The first attempt is - # considered transient because failed-workflow.yml automatically reruns it, and a - # cancellation that persists into the second attempt is the actionable signal. - # Restricting to the second attempt also avoids re-notifying on later manual reruns. - # - # A timed out workflow is also reported as a cancellation at the expression level, so - # it is excluded here and handled by the dedicated timeout job below. cancelled: name: Cancelled notifications permissions: {} @@ -261,12 +250,6 @@ jobs: webhook: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} payload: ${{ needs.prepare.outputs.payload }} - # Posts notifications when a workflow times out. - # - # A timeout surfaces as a cancellation at the workflow expression level, so it is - # detected separately in the prepare job via the REST API. As with cancellations, a - # timeout is only reported on the second run attempt because the first attempt is - # transient and automatically rerun by failed-workflow.yml. timeout: name: Timeout notifications permissions: {} diff --git a/test-deprecations.txt b/test-deprecations.txt new file mode 100644 index 0000000000000..1fac9a053bd7a --- /dev/null +++ b/test-deprecations.txt @@ -0,0 +1,321 @@ +There were 86 warnings: + +1) Tests_Actions::test_priority_callback_order with data set "float DESC" (array(10.0, 9.5), array('action2', 'action'), 'Implicit conversion from floa...cision') +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +2) Tests_Actions::test_priority_callback_order with data set "float ASC" (array(9.5, 10.0), array('action', 'action2'), 'Implicit conversion from floa...cision') +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +3) Tests_Admin_IncludesPost::test_post_exists_should_support_post_type +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +4) Tests_Admin_IncludesPost::test_post_exists_should_not_match_a_page_for_post +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +5) Tests_Admin_IncludesPost::test_post_exists_should_support_post_status +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +6) Tests_Admin_IncludesPost::test_post_exists_should_support_post_type_status_combined +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +7) Tests_Admin_IncludesPost::test_post_exists_should_only_match_correct_post_status +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +8) Tests_Admin_IncludesPost::test_post_exists_should_not_match_invalid_post_type_and_status_combined +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +9) Tests_Admin_WpListTable::test_should_throw_deprecation_when_getting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +10) Tests_Admin_WpListTable::test_should_throw_deprecation_when_setting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +11) Tests_Admin_WpListTable::test_should_throw_deprecation_when_isset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +12) Tests_Admin_WpListTable::test_should_throw_deprecation_when_unset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +13) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_getting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +14) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_setting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +15) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_isset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +16) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_unset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +17) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty string" ('') +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +18) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with spaces" (' ') +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +19) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with tabs" (' ') +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +20) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with new lines" ('\n') +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +21) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with carriage returns" ('\r') +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +22) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int -1" (-1) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +23) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int 0" (0) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +24) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int 1" (1) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +25) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float -1.0" (-1.0) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +26) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float 0.0" (0.0) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +27) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float 1.0" (1.0) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +28) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "false" (false) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +29) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "true" (true) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +30) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "null" (null) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +31) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty array" (array()) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +32) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a non-empty array" (array('directory_path')) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +33) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty object" (stdClass Object ()) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +34) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a non-empty object" (stdClass Object (...)) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +35) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "INF" (INF) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +36) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "NAN" (NAN) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +37) Tests_Filters::test_priority_callback_order with data set "float DESC" (array(10.0, 9.5), array('filter2', 'filter'), 'Implicit conversion from floa...cision') +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +38) Tests_Filters::test_priority_callback_order with data set "float ASC" (array(9.5, 10.0), array('filter', 'filter2'), 'Implicit conversion from floa...cision') +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +39) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "an empty array" (array()) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +40) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "a non-empty array" (array('a string')) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +41) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "an empty object" (stdClass Object ()) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +42) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "a non-empty object" (stdClass Object (...)) +Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +43) Tests_Formatting_wpTrimExcerpt::test_should_generate_excerpt_for_empty_values +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +44) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "null" (null, 'clean_dirsize_cache().') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +45) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "bool false" (false, 'clean_dirsize_cache().') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +46) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "empty string" ('', 'clean_dirsize_cache().') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +47) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "array" (array('.', './second/path/'), 'clean_dirsize_cache().') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +48) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "function name and message are given" ('some_function', 'expected the function name and message', 'some_function(): expected the...essage') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +49) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "message is given" ('', 'expect only the message', 'expect only the message') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +50) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "function name is given" ('some_function', '', 'some_function(): ') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +51) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "allowed HTML elements are present in message" ('some_function', 'expected the...essage', 'some_function(): expe...essage') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +52) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "HTML links are present in message" ('some_function', '', 'some_function(): alert("expected the f...cript>', 'some_function(): alert("expec...sage")') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +54) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "function name and message are given" ('some_function', 'expected the function name and message', 'some_function(): expected the...essage') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +55) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "message is given" ('', 'expect only the message', 'expect only the message') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +56) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "function name is given" ('some_function', '', 'some_function(): ') +Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +57) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "allowed HTML elements are present in message" ('some_function', 'expected the...essage', 'some_function(): expe...essage') +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +80) WP_Test_REST_Schema_Sanitization::test_format_validation_is_applied_if_missing_type +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +81) WP_Test_REST_Schema_Validation::test_format_validation_is_applied_if_missing_type +Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +82) Tests_WP_Generate_Tag_Cloud::test_should_include_tag_link_position_class +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +83) Tests_User_Query::test_should_throw_deprecation_when_getting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +84) Tests_User_Query::test_should_throw_deprecation_when_setting_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +85) Tests_User_Query::test_should_throw_deprecation_when_isset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 + +86) Tests_User_Query::test_should_throw_deprecation_when_unset_of_dynamic_property +Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. + +/var/www/vendor/bin/phpunit:122 From 9e8b22f9278a4ab4da4723c2e0ea177835896f41 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Sun, 16 Aug 2026 14:12:12 -0700 Subject: [PATCH 4/5] Remove text file. --- test-deprecations.txt | 321 ------------------------------------------ 1 file changed, 321 deletions(-) delete mode 100644 test-deprecations.txt diff --git a/test-deprecations.txt b/test-deprecations.txt deleted file mode 100644 index 1fac9a053bd7a..0000000000000 --- a/test-deprecations.txt +++ /dev/null @@ -1,321 +0,0 @@ -There were 86 warnings: - -1) Tests_Actions::test_priority_callback_order with data set "float DESC" (array(10.0, 9.5), array('action2', 'action'), 'Implicit conversion from floa...cision') -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -2) Tests_Actions::test_priority_callback_order with data set "float ASC" (array(9.5, 10.0), array('action', 'action2'), 'Implicit conversion from floa...cision') -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -3) Tests_Admin_IncludesPost::test_post_exists_should_support_post_type -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -4) Tests_Admin_IncludesPost::test_post_exists_should_not_match_a_page_for_post -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -5) Tests_Admin_IncludesPost::test_post_exists_should_support_post_status -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -6) Tests_Admin_IncludesPost::test_post_exists_should_support_post_type_status_combined -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -7) Tests_Admin_IncludesPost::test_post_exists_should_only_match_correct_post_status -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -8) Tests_Admin_IncludesPost::test_post_exists_should_not_match_invalid_post_type_and_status_combined -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -9) Tests_Admin_WpListTable::test_should_throw_deprecation_when_getting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -10) Tests_Admin_WpListTable::test_should_throw_deprecation_when_setting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -11) Tests_Admin_WpListTable::test_should_throw_deprecation_when_isset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -12) Tests_Admin_WpListTable::test_should_throw_deprecation_when_unset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -13) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_getting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -14) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_setting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -15) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_isset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -16) Tests_Diff_WpTextDiffRendererTable::test_should_throw_deprecation_when_unset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -17) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty string" ('') -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -18) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with spaces" (' ') -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -19) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with tabs" (' ') -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -20) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with new lines" ('\n') -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -21) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a string with carriage returns" ('\r') -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -22) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int -1" (-1) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -23) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int 0" (0) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -24) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "int 1" (1) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -25) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float -1.0" (-1.0) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -26) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float 0.0" (0.0) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -27) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "float 1.0" (1.0) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -28) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "false" (false) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -29) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "true" (true) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -30) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "null" (null) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -31) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty array" (array()) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -32) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a non-empty array" (array('directory_path')) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -33) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "an empty object" (stdClass Object ()) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -34) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "a non-empty object" (stdClass Object (...)) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -35) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "INF" (INF) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -36) Tests_Filesystem_WpOpcacheInvalidateDirectory::test_should_trigger_error_with_invalid_dir with data set "NAN" (NAN) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -37) Tests_Filters::test_priority_callback_order with data set "float DESC" (array(10.0, 9.5), array('filter2', 'filter'), 'Implicit conversion from floa...cision') -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -38) Tests_Filters::test_priority_callback_order with data set "float ASC" (array(9.5, 10.0), array('filter', 'filter2'), 'Implicit conversion from floa...cision') -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -39) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "an empty array" (array()) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -40) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "a non-empty array" (array('a string')) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -41) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "an empty object" (stdClass Object ()) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -42) Tests_Formatting_wpStripAllTags::test_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg with data set "a non-empty object" (stdClass Object (...)) -Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -43) Tests_Formatting_wpTrimExcerpt::test_should_generate_excerpt_for_empty_values -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -44) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "null" (null, 'clean_dirsize_cache().') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -45) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "bool false" (false, 'clean_dirsize_cache().') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -46) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "empty string" ('', 'clean_dirsize_cache().') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -47) Tests_Functions_CleanDirsizeCache::test_clean_dirsize_cache_with_invalid_inputs with data set "array" (array('.', './second/path/'), 'clean_dirsize_cache().') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -48) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "function name and message are given" ('some_function', 'expected the function name and message', 'some_function(): expected the...essage') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -49) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "message is given" ('', 'expect only the message', 'expect only the message') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -50) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "function name is given" ('some_function', '', 'some_function(): ') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -51) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "allowed HTML elements are present in message" ('some_function', 'expected the...essage', 'some_function(): expe...essage') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -52) Tests_Functions_WpTriggerError::test_should_trigger_warning with data set "HTML links are present in message" ('some_function', '', 'some_function(): alert("expected the f...cript>', 'some_function(): alert("expec...sage")') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -54) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "function name and message are given" ('some_function', 'expected the function name and message', 'some_function(): expected the...essage') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -55) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "message is given" ('', 'expect only the message', 'expect only the message') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -56) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "function name is given" ('some_function', '', 'some_function(): ') -Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -57) Tests_Functions_WpTriggerError::test_should_trigger_notice with data set "allowed HTML elements are present in message" ('some_function', 'expected the...essage', 'some_function(): expe...essage') -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -80) WP_Test_REST_Schema_Sanitization::test_format_validation_is_applied_if_missing_type -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -81) WP_Test_REST_Schema_Validation::test_format_validation_is_applied_if_missing_type -Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -82) Tests_WP_Generate_Tag_Cloud::test_should_include_tag_link_position_class -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -83) Tests_User_Query::test_should_throw_deprecation_when_getting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -84) Tests_User_Query::test_should_throw_deprecation_when_setting_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -85) Tests_User_Query::test_should_throw_deprecation_when_isset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 - -86) Tests_User_Query::test_should_throw_deprecation_when_unset_of_dynamic_property -Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10. - -/var/www/vendor/bin/phpunit:122 From e17fcb9c091f18bbab0e32d7142af380bc3f3812 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Sun, 16 Aug 2026 14:22:31 -0700 Subject: [PATCH 5/5] Apply code review suggestions. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/slack-notifications.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 3011a1581afbf..4b4dfc831aaeb 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -135,7 +135,7 @@ jobs: # The REST API exposes a distinct `timed_out` job conclusion that is unavailable through workflow contexts. - name: Determine whether the workflow timed out id: timeout-check - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 if: ${{ inputs.calling_status == 'cancelled' }} with: retries: 2 @@ -147,7 +147,7 @@ jobs: repo: context.repo.repo, run_id: `${context.runId}`, attempt_number: Number( process.env.GITHUB_RUN_ATTEMPT ), - }); + }, ( response ) => response.data.jobs ); return jobs.some( ( job ) => job.conclusion === 'timed_out' ) ? 'true' : 'false';