Skip to content

Use build_stubbed in CH tests

Pedro Pombeiro requested to merge pedropombeiro/improve-test-perf into master

What does this MR do and why?

This MR changes the code that sets up builds that are meant to ClickHouseHelpers#insert_ci_builds_to_click_house, from using build(:ci_build) to using build_stubbed(:ci_build). One doubt I had was what would happen to build IDs. It seems that build_stubbed creates them with increments of 5, which is fine for what we need.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Pedro Pombeiro

Merge request reports

Loading