Open eseliger opened 2 years ago
Note: batch changes today relies on these results to be streamed. This would need to be accounted for, or we will at least still need to read those from the logs before the job completes. Ideally this will drastically reduce the size of the logs as well.
Steps:
Artifacts []{Path string; Bucket string}
field to the DockerStep
executor Job interface typelib/uploader
Done ✨
Today, both executor queues (
codeintel
&batches
) push an artifact to Sourcegraph as the result of their execution.It would be great to have an abstraction here and to instead allow to provide a pattern of files that will be uploaded at the end of the execution to the blob store. These will then be available in the
OnCompletion
handler on the server side for further processing.Requires a working generic upload store implementation.
The ultimate goal of this is to reduce required special endpoints for executors that are non-generic and to break SSBCs dependency on keeping logs forever. Currently, the UI would break if the logs are gone.