-
Notifications
You must be signed in to change notification settings - Fork 296
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
Fix flaky E2E tests #8229
Comments
I resolved APi cache and initial write scope requests issues, but new one pops up, which is common for remaining tests - response is not a valid JSON thing. Couldn't replicate this locally in numerous tests, seems to be present only in CI. Weirdly even when the survey endpoint is mocked and response delivered, it still fails for the same reason. I included the debug log for REST, but it never reaches the point of output what the response is, so it either does not log response that it fails on, or perhaps there is timing issue where reset happens earlier and prevent the request from executing which might cause this weird error. But couldn't get to the bottom of it. This is the output of one of the tests, which failed, it can be seen that request to the survey timeout endpoint is sent, but not debugged/outputted: Details
console.debug
console.debug
console.debug
console.debug
console.debug
My attempts and fixes so far are in this PoC Unassigning myself as I am out of ideas |
I was also unable to replicate this locally, and am not going to be of much use attempting to identify a fix given my lack of E2E test knowledge within the codebase. Will un-assign myself. |
QA ❌Hi @aaemnnosttv, it pains me to say it as I did think/hope they were all fixed, but we are still seeing E2E failures with regularity since the PR for this issue was merged. I've seen four of the five identified tests failing, here are some example CI runs:
I'm also seeing a couple of additional failures that weren't captured in the spec for this issue. These are failing due to Puppeteer timeouts; maybe they are generic failures or they could be specific to these test cases, it's hard to know at this point. We should probably raise a separate issue to tackle these, WDYT?
|
@techanvil I've opened a PR for an update to the api cache test we modified in this issue, but we'll need to iterate on this more in one or more follow up issues, which I'm happy to do. |
Moving directly to Approval as no explicit QA is needed. |
Thanks @aaemnnosttv! Hopefully that's got the API cache test sorted out then, we'll no doubt find out soon enough if not but 🤞. I've created four issues to follow up on the remaining tests, one per failing spec file:
|
Feature Description
The following E2E tests are failing with regularity in our CI test runs:
Here's an example failing test run for each of the suites listed above:
https://github.com/google/site-kit-wp/actions/runs/11914120844/job/33201319873#step:11:280
https://github.com/google/site-kit-wp/actions/runs/11912971962/job/33197691525#step:11:244
https://github.com/google/site-kit-wp/actions/runs/11875312956/job/33092351004#step:11:248
https://github.com/google/site-kit-wp/actions/runs/11871934579/job/33085039750#step:11:258
These were easy to find looking through a current list of E2E test failures on
develop
: https://github.com/google/site-kit-wp/actions/workflows/e2e-tests.yml?query=branch%3AdevelopDo not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: