Skip to content

Make build_artifacts_size use efficient counters

Problem to solve

Resolving bug #23327 (closed) requires multiple steps and this issue is for one of them to make build_artifacts_size use efficient counters.

Proposal

The goal is to use CounterAttribute Rails concern to increment/decrement build_artifacts_size. Change must be done behind feature flag.

Intended users

How to measure success?

  • statistics for build artifacts size are update correctly
  • no more timeout errors occurring when updating statistics for that column
  • Redis usage to remain low
  • Sidekiq usage to remain low
Edited by Fabio Pitino