[roll] Roll fuchsia [ffx][component] Clean up instance on resolve failure

When `ffx component run` fails to resolve a component (e.g. due to a
missing package server), it used to leave the component instance in the
collection. This caused subsequent runs to fail with "already exists"
error.

This change ensures that the component instance is destroyed if
resolution fails, leaving the system in a clean state.

Original-Fixed: 498753221
Test: Added unit test `test_resolve_fail_cleanup` in `run.rs` and verified it passes.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1598808
Original-Revision: 59974de00555ec8e2ca16d2525322c81086dd281
GitOrigin-RevId: ce767f90c26c2d529d997c061c63b20ba4fbd423
Change-Id: Ic6d2974490529bf14312b90936ef708f05329197
1 file changed
tree: 554876adb34aca6dd6d75b434c42e4b9e22bd024
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
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.