Recipe will run the test in a deferred context which will create an env variable called FLUTTER_LOGS_DIR, the test runner can place any logs|artifacts to help debugging there and they will be automatically uploaded to GCS.
#74332 (comment)
Implement in the packages repo recipe.
See also #43124 and #74344