<#5444 Return non-0 exit code from copilot upload ...
# flyte-github
c
#5444 Return non-0 exit code from copilot upload failure Pull request opened by ddl-ebrown Tracking issue Why are the changes needed? • The current copilot behavior is to: • try to upload the specified file • if an error occurs, try to write an error file instead • if the error file write succeeds, return success -- otherwise error This behavior is not ideal, because it suppresses real issues like the inability to find the expected output file. While a case can be made that the sidecar succeeded in handling its responsibility, important information is lost in the process that is useful to other containers in the job. Generallyk, it's better to consider the inability to find the original file a failure of the job to produce the expected file in the expected location (useful especially for container tasks). That means that a failure to upload the file should also return a non-0 exit code. • The new behavior is therefore: • try to upload the specified file • if an error occurs, try to write an error file instead • if the error file write succeeds, return the original error • if the error file write fails, return a joined version of the errors What changes were proposed in this pull request? How was this patch tested? Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Docs link flyteorg/flyte