[roll] Roll fuchsia [display][coordinator] Remove flaky pattern from IntegrationTest.

The Display Coordinator integration tests use an anti-pattern that has
consistently proven to result in flaky tests. The anti-pattern is using
a polling mechanism to check whether a different thread has completed
some work, combined with a timeout. The timeout is an inevitable source
of flakiness due to false negatives (tests failing despite the
implementation being correct), because tests are typically ran on shared
infrastructure ("cloud") with no worst-case performance guarantees.

Fortunately, most instances of this anti-pattern use the timeout as an
early failure mechanism -- the test is considered to have failed if a
predicate does not become true within the timeout. This CL removes the
timeout altogether in these instances. The test framework's timeout
mechanism will flag the test failures that were previously caught by the
polling timeout.

There are a couple of instances where the anti-pattern is used in the
opposite way, where tests verify that a certain condition does not
become true within some amount of time. This usage can introduce
flakiness as well, due to false positives (tests passing despite an
incorrect implementation), because the timeout may occur before the
implementation performs the undesired action. Fixing this usage is
deferred, and this CL adds clear comments where this is the case.
Deferring is considered acceptable because a correct implementation will
not exhibit the test flakiness.

This CL reimplements the polling mechanism described above. The new
implementation uses patterns that are easier to reason about. Manual
lifecycle management is replaced by smart pointers. Atomics and C-style
completion signals are replaced by a mutex and a condition variable.

This CL disables IntegrationTest.EmptyConfigIsNotApplied, which now
fails somewhat consistently. Re-enabling will happen in a follow-up.

Original-Bug: 338379402
Test: fx test display-coordinator-unittests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/884090
Original-Revision: 59dd257fb748d90232aee5c8f471ba9f6a08a7fd
GitOrigin-RevId: 7e33e4cd775af4892ead75f606dda30860f6d3c3
Change-Id: I953dadc5dbb36ec9169d93b677b99bebd7b85bca
1 file changed
tree: 19f01783056db395a528be67e6d058054ec6b6e0
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.