Skip to content
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 issues where the VRT test fails in CI before the tests have all completed #9528

Open
2 tasks
techanvil opened this issue Oct 17, 2024 · 3 comments
Open
2 tasks
Assignees
Labels
P0 High priority Team S Issues for Squad 1 Type: Bug Something isn't working Type: Infrastructure Engineering infrastructure & tooling

Comments

@techanvil
Copy link
Collaborator

techanvil commented Oct 17, 2024

Bug Description

Unfortunately, the VRT workflow is still failing before all the tests have completed with some regularity.

Examining some recent failures, nearly all of them are failing with following error in one of two permutations:

      COMMAND | Command "test" ended with an error after [450.482s]
      COMMAND | Error: Failed to launch the browser process!

Some of these are followed by the following line, while others are not:

                [1016/142508.119062:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

In the sample of test runs there's also one instance where it's failing without the "Failed to launch the browser" error:

      COMMAND | Command "test" ended with an error after [551.962s]
      COMMAND | [object Object]

Example test failures:

Steps to reproduce

  • Watch for failing VRT test runs in CI.
  • They will intermittently fail with the above errors.

Screenshots

Failed to launch browser, with dbus error:

Image

Failed to launch browser, without dbus error:

Image

Other error:

Image

Additional Context

See the previous issue #9406 for the most recently applied fix, and the Additional Context section on #9211 for some relevant avenues that could yet be explored for the fix.

@benbowler please can you update this section if there are avenues you explored from the issue linked above that we don't need to revisit?


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

Acceptance criteria

  • VRT test runs should not fail with an error before all the screenshots are captured and the test has run to completion.

Note, additional issues should be raised if needed to follow up on separate avenues of investigation.

Implementation Brief

Test Coverage

  • Approve VRT images as this change of browser version will cause most existing images to fail with minor rendering changes.

QA Brief

  • No QA needed after Code Review, but the Code Reviewer should run the test suite several times to ensure it reliably passes.

Changelog entry

  • N/A
@techanvil techanvil added P0 High priority Type: Bug Something isn't working Type: Infrastructure Engineering infrastructure & tooling labels Oct 17, 2024
@techanvil techanvil changed the title Fix issue(s) where the VRT test fails in CI before the tests have all completed Fix issues where the VRT test fails in CI before the tests have all completed Oct 17, 2024
@benbowler
Copy link
Collaborator

Thanks @techanvil, I noticed the reappearance of the browser failed to launch error. It was a little surprising, as in the batch testing the previous fix appeared to prevent this error. I can take a look.

@techanvil
Copy link
Collaborator Author

Thanks @benbowler, yes it's a bit of a shame to see this pop up again as it did seem to have improved for a bit. Thanks for taking a look!

@benbowler benbowler assigned techanvil and unassigned benbowler Oct 21, 2024
@techanvil techanvil removed their assignment Oct 21, 2024
@tofumatt tofumatt self-assigned this Oct 22, 2024
@tofumatt
Copy link
Collaborator

tofumatt commented Oct 22, 2024

(This one was missing an estimate, but since it'll involve running VRT tests, manually approving a lot of changes, and testing the CI runs a few times to verify, I'm marking it as a 7 even though it shouldn't take too long to make the changes.)

IB ✅

@tofumatt tofumatt removed their assignment Oct 22, 2024
@eclarke1 eclarke1 added the Team S Issues for Squad 1 label Oct 23, 2024
@tofumatt tofumatt self-assigned this Oct 23, 2024
@tofumatt tofumatt mentioned this issue Oct 24, 2024
19 tasks
@tofumatt tofumatt removed their assignment Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 High priority Team S Issues for Squad 1 Type: Bug Something isn't working Type: Infrastructure Engineering infrastructure & tooling
Projects
None yet
Development

No branches or pull requests

5 participants