Fix invalid ci_finished_builds.started_at values
What does this MR do and why?
This MR:
- fixes
ci_finished_builds.started_at
default value to use eitherfinished_at
or 0 instead ofnow()
, so that NULLstarted_at
values yield records that make sense or are easily distinguishable. - updates existing invalid records so that
started_at = finished_at
, and thereforeduration
is 0.
EE: true
Closes #433983 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Step | SHOW TABLE ci_finished_builds |
---|---|
. | |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
bundle exec rake gitlab:clickhouse:migrate
bundle exec rake gitlab:clickhouse:rollback STEP=2
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.