Skip to content

Fix flaky E2E test in specs/modules/tagmanager/setup.test.js. #10111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
techanvil opened this issue Jan 23, 2025 · 2 comments
Closed
1 task done

Fix flaky E2E test in specs/modules/tagmanager/setup.test.js. #10111

techanvil opened this issue Jan 23, 2025 · 2 comments
Labels
P0 High priority QA: Eng Requires specialized QA by an engineer Team S Issues for Squad 1 Type: Infrastructure Engineering infrastructure & tooling

Comments

@techanvil
Copy link
Collaborator

techanvil commented Jan 23, 2025

Feature Description

We still have a number of E2E tests failing with some regularity in our CI test runs. The task of fixing them has been split into four issues in order to make it easier to investigate and fix. See #10108, #10109, #10110.

Tag Manager module setup › Setup with AMP active › with Secondary AMP › when validating › validates homepage AMP for non-logged-in users

Example: https://github.com/google/site-kit-wp/actions/runs/12871930956/job/35886293222#step:11:245

Details
FAIL specs/modules/tagmanager/setup.test.js (47.115 s)
  ● Tag Manager module setup › Setup with AMP active › with Secondary AMP › when validating › validates homepage AMP for non-logged-in users

    TimeoutError: Navigation timeout of 5000 ms exceeded

      at ../../node_modules/puppeteer/src/common/LifecycleWatcher.ts:204:18

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The test listed in the Feature Description should pass every time in CI.

Implementation Brief

Looking at the failures of these runs the other tests in this file pass and this failing test is failing with a call to fetch page and the AMP validator. Draft PR here where I have rerun the E2Es multiple times without the issue recurring.

  • Update allowed timeout for toHaveValidAMPForUser and toHaveValidAMPForVisitor to 10000 and test repeatidly to confirm the issue is resolve, otherwise increase the timeout until the issue no longer occurs over multiple CR runs:

Test Coverage

  • N/A

QA Brief

  • QA:Eng, validate results of CR/MR.

Changelog entry

  • N/A
@eugene-manuilov
Copy link
Collaborator

IB ✔

@eugene-manuilov eugene-manuilov removed their assignment Mar 20, 2025
@binnieshah binnieshah removed the Next Up Issues to prioritize for definition label Mar 21, 2025
@benbowler benbowler self-assigned this Mar 24, 2025
@benbowler benbowler reopened this Mar 24, 2025
@benbowler benbowler removed their assignment Mar 24, 2025
@zutigrm zutigrm assigned zutigrm and unassigned zutigrm Mar 24, 2025
@zutigrm zutigrm self-assigned this Mar 26, 2025
@zutigrm
Copy link
Collaborator

zutigrm commented Mar 26, 2025

QA:Eng ✅

@zutigrm zutigrm removed their assignment Mar 26, 2025
@tofumatt tofumatt closed this as completed Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 High priority QA: Eng Requires specialized QA by an engineer Team S Issues for Squad 1 Type: Infrastructure Engineering infrastructure & tooling
Projects
None yet
Development

No branches or pull requests

6 participants