[roll] Roll fuchsia [fidl][python] Add support for framework errors and empty success structs

Some FIDL protocol methods don't return a value. In Python, the usual
way to represent this is to return None, but this is complicated by the
FIDL IR providing empty success structs for those cases.

To ensure these empty structs are not present in bindings, this
implementations runs an initial pass through all structs in the IR to
compile all empty success structs into the type None. After this pass,
subsequent compilation will skip empty success structs.

This change also introduces complication of ExternalStructs from
fidlgen.Root. This is because ExternalStructs is known to contain empty
success structs from fuchsia.unknown.

Test: Add a surface level test suite for the response and result types
for protocol methods. A later change will actually implement protocol
methods.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1231244
Original-Revision: fa2bbf43a8ddc98cf0ef3464883e7375a1e3cf2a
GitOrigin-RevId: e3ba946174c2f7b84b7d8c16a5ee305bc6bf8e28
Change-Id: I997ab69278a38302e6a3c73a2eb1920e764106a6
1 file changed
tree: 73bc29c6504e15b8f648556f7d3dbd92d4812e77
  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 in one of the communication channels documented at get involved.

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.