[diagnostics][persistence] v2 integration test

Port of the v1 Persistence integration test to v2. As part of this,

In Persistence:
 - After publishing the persisted data, Persistence adds a property
    "published" at inspect root with a value of monotonic now().
    This helps avoid race conditions from partially published data.
 - Now uses Structured Config

In SamplerTestController:
 - Make IncrementInt synchronous
 - Add SetOptional and RemoveOptional to support more test cases

In iquery:
 - Delete src/diagnostics/iquery/test/test_component/meta/test_component.cmx

PS1 of this CL is the same as fxr/691602 which flaked and was reverted.
PS2 of this CL fixes the race condition.

Multiply: fuchsia-pkg://fuchsia.com/persistence-integration-tests#meta/persistence-integration-test.cm
Fixed: 84283
Fixed: 102672
Change-Id: Ifc16aa694df2ec5432ad577c3a4bc8ac93144004
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/693488
Reviewed-by: Miguel Flores <miguelfrde@google.com>
Commit-Queue: Chris Phoenix <cphoenix@google.com>
25 files changed
tree: 6e919985a4e76e7bf074f8018cbe828565db34c2
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.