Skip to content

Use posts member of WP_Query instead of get_posts method #11439

Use posts member of WP_Query instead of get_posts method

Use posts member of WP_Query instead of get_posts method #11439

Triggered via pull request April 30, 2024 16:17
Status Failure
Total duration 9m 1s
Artifacts 3

build-test-measure.yml

on: pull_request
Pre run
4s
Pre run
Matrix: build-zip
Lint: CSS
0s
Lint: CSS
Lint: JS
0s
Lint: JS
Lint: PHP
47s
Lint: PHP
Static Analysis: PHP
45s
Static Analysis: PHP
Unit test: JS
0s
Unit test: JS
Matrix: E2E test: JS
Matrix: feature-test-php
Matrix: unit-test-php
Upload plugin ZIPs to Google Cloud Storage
26s
Upload plugin ZIPs to Google Cloud Storage
Comment on PR with links to plugin ZIPs
5s
Comment on PR with links to plugin ZIPs
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 2 warnings, and 2 notices
Upload plugin ZIPs to Google Cloud Storage
The v0 series of google-github-actions/setup-gcloud is no longer maintained. It will not receive updates, improvements, or security patches. Please upgrade to the latest supported versions: https://github.com/google-github-actions/setup-gcloud
E2E test: JS (2, 2): tests/e2e/specs/block-editor/amp-preview-button.js#L196
Error: expect(received).toPassAxeTests(expected) Expected page to pass Axe accessibility tests. Violations found: Rule: "aria-required-children" (Certain ARIA roles must contain particular children) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer Affected Nodes: #wp-admin-bar-root-default Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader #wp-admin-bar-top-secondary Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer Affected Nodes: #wp-admin-bar-wp-logo > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group :root Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-comments > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-new-content > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-my-account > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
E2E test: JS (2, 2): tests/e2e/specs/block-editor/amp-preview-button.js#L813
TimeoutError: waiting for selector `.components-button.editor-post-preview` failed: timeout 60000ms exceeded at new WaitTask (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForSelectorInPage (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:656:22) at Object.internalHandler.waitFor (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19) at DOMWorld.waitForSelector (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:511:25) at Frame.waitForSelector (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/FrameManager.ts:1290:47) at Page.waitForSelector (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/Page.ts:3222:29) at Object.waitForSelector (/home/runner/work/amp-wp/amp-wp/tests/e2e/specs/block-editor/amp-preview-button.js:35:14) at processTicksAndRejections (node:internal/process/task_queues:95:5)
E2E test: JS (2, 2): tests/e2e/specs/block-editor/amp-preview-button.js#L196
Error: expect(received).toPassAxeTests(expected) Expected page to pass Axe accessibility tests. Violations found: Rule: "aria-required-children" (Certain ARIA roles must contain particular children) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer Affected Nodes: #wp-admin-bar-root-default Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader #wp-admin-bar-top-secondary Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer Affected Nodes: #wp-admin-bar-wp-logo > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group :root Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-comments > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-new-content > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-my-account > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
E2E test: JS (2, 2): tests/e2e/specs/block-editor/amp-preview-button.js#L196
Error: expect(received).toPassAxeTests(expected) Expected page to pass Axe accessibility tests. Violations found: Rule: "aria-required-children" (Certain ARIA roles must contain particular children) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer Affected Nodes: #wp-admin-bar-root-default Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader #wp-admin-bar-top-secondary Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer Affected Nodes: #wp-admin-bar-wp-logo > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group :root Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-comments > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-new-content > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-my-account > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
E2E test: JS (2, 2)
Process completed with exit code 1.
E2E test: JS (1, 2): tests/e2e/specs/block-editor/featured-image-notice.js#L813
TimeoutError: waiting for XPath `//button[contains(text(), 'Featured image')]` failed: timeout 60000ms exceeded at new WaitTask (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:702:22) at Frame.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/FrameManager.ts:1320:47) at Page.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/Page.ts:3281:29) at waitForXPath (/home/runner/work/amp-wp/amp-wp/tests/e2e/utils/click-button.js:9:28) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/specs/block-editor/featured-image-notice.js:25:20) at processTicksAndRejections (node:internal/process/task_queues:95:5)
E2E test: JS (1, 2): tests/e2e/specs/block-editor/featured-image-notice.js#L196
Error: expect(received).toPassAxeTests(expected) Expected page to pass Axe accessibility tests. Violations found: Rule: "aria-required-children" (Certain ARIA roles must contain particular children) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer Affected Nodes: #wp-admin-bar-root-default Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader #wp-admin-bar-top-secondary Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer Affected Nodes: #wp-admin-bar-wp-logo > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group :root Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-comments > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-new-content > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-my-account > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
E2E test: JS (1, 2): tests/e2e/specs/block-editor/featured-image-notice.js#L813
TimeoutError: waiting for XPath `//button[contains(text(), 'Featured image')]` failed: timeout 60000ms exceeded at new WaitTask (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:702:22) at Frame.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/FrameManager.ts:1320:47) at Page.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/Page.ts:3281:29) at waitForXPath (/home/runner/work/amp-wp/amp-wp/tests/e2e/utils/click-button.js:9:28) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/specs/block-editor/featured-image-notice.js:25:20) at processTicksAndRejections (node:internal/process/task_queues:95:5)
E2E test: JS (1, 2): tests/e2e/specs/block-editor/featured-image-notice.js#L196
Error: expect(received).toPassAxeTests(expected) Expected page to pass Axe accessibility tests. Violations found: Rule: "aria-required-children" (Certain ARIA roles must contain particular children) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer Affected Nodes: #wp-admin-bar-root-default Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader #wp-admin-bar-top-secondary Fix ANY of the following: - Element has children which are not allowed: li[tabindex] - Element uses aria-busy="true" while showing a loader Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents) Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer Affected Nodes: #wp-admin-bar-wp-logo > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group :root Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-comments > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-new-content > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group #wp-admin-bar-my-account > .ab-item[role="menuitem"] Fix ANY of the following: - Required ARIA parents role not present: menu, menubar, group at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
E2E test: JS (1, 2)
Process completed with exit code 1.
E2E test: JS (2, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-122.0.6261.111/chrome-linux64/chrome
E2E test: JS (1, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-122.0.6261.111/chrome-linux64/chrome
Upload plugin ZIPs to Google Cloud Storage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: google-github-actions/setup-gcloud@20c93dacc1d70ddbce76c63ab32c35595345bdd1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Upload plugin ZIPs to Google Cloud Storage
"service_account_key" has been deprecated. Please switch to using google-github-actions/auth which supports both Workload Identity Federation and Service Account Key JSON authentication. For more details, see https://github.com/google-github-actions/setup-gcloud#authorization

Artifacts

Produced during runtime
Name Size
amp-fix-query-get-posts-a66ebfc7-dev
5.9 MB
amp-fix-query-get-posts-a66ebfc7-prod
2.5 MB
e2e-failure-artifacts
102 KB