crossplane / crossplane/function-runtime-oci
XFN Runner: Show STDOUT of failed composition function (exit code >= 1)
- Langage dominant
- Go
- Étoiles
- 6
- Forks
- 2
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### What problem are you facing?
We've implemented a function similar to the example functions from [docs](https://docs.crossplane.io/master/concepts/composition-functions/#an-example-function). If this functions fails, it returns a exit code greater than 0 and prints the error message in STDOUT.
```
[..] "error": "cannot run Composition Function pipeline: cannot run function \"service-versioning\": cannot run container: rpc error: code = Unknown desc = exit status 1: xfn: error: spark.Command.Run(): OCI runtime error: exit status 1"
```
Currenty, I cannot debug a composition function that fails to execute. When the function in the OCI container fails, I see the exit code but no additional information printed in STDOUT.
### How could Crossplane help solve your problem?
Provide a way to see the STDOUT of functions that failed. That may be behind a flag/option like verbosity level/debug mode, etc.
Perhaps, also STDERR could be used, as it would be the more appropriate place for error messages.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Aucun fichier source ni test n’est nommé dans l’issue. Commencez par localiser le chemin d’exécution du conteneur OCI et reproduisez une fonction de composition qui se termine avec un code différent de zéro tout en écrivant sur STDOUT ; déterminez comment la sortie en échec doit être exposée, notamment si STDERR est géré, et ajoutez une couverture montrant que le texte de diagnostic est visible.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100