Track branch name in our rspec_profiling_results table
We're now storing profiling data about our RSpec suite, thanks to @nick.thomas (https://gitlab.com/gitlab-com/infrastructure/issues/976), for all the commits that have a pipeline run. As a usage example, here is a dashboard that uses it: http://redash.gitlab.com/dashboard/test-suite-statistics
One of the goal of this was to be able to track the progress we make on reducing our test suite duration over time. The progress should be checked against the master
branch but we don't currently store the branch for which a specific pipeline was run in the rspec_profiling_results
table.
We're using them rspec_profiling
gem and adding this data is pretty straitforward:
- Add a
branch
column in therspec_profiling_results
table: https://github.com/foraker/rspec_profiling/blob/master/lib/rspec_profiling/collectors/psql.rb - Store the branch name in it: https://github.com/foraker/rspec_profiling/blob/master/lib/rspec_profiling/run.rb#L29-L42 /cc @rspeicher @nick.thomas