sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.11k stars 1.28k forks source link

executors: Native uploadstore support for artifacts #42476

Open eseliger opened 2 years ago

eseliger commented 2 years ago

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.

eseliger commented 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.

eseliger commented 1 year ago

Steps:

Done ✨