codeintel: Make log contents structured (Step 1: Database)
Created by: efritz
This PR changes the dbworker store to require a execution_logs
column which subsumes the log_contents
column that was there before. This field is used to store an array of JSON-encoded log entries that contain the time the command was started, the command run in the executor, the exit code, and the stdout/stderr streams produced by the command.
This PR will be merged when the following pull requests are merged into it so we have a consistent main branch (these changes do not work on their own):
- https://github.com/sourcegraph/sourcegraph/pull/16245
- https://github.com/sourcegraph/sourcegraph/pull/16246
- https://github.com/sourcegraph/sourcegraph/pull/16247
This PR will close https://github.com/sourcegraph/sourcegraph/issues/15941.