Loading
Remove unused scope Packages::BuildInfo.pluck_pipeline_ids
Summary
Removes the unused scope Packages::BuildInfo.pluck_pipeline_ids from app/models/packages/build_info.rb.
Related to #542966 (closed)
Verification
This scope was verified as unused by:
-
keela --type scopesflagged it as unused - Grep search found no callers (only a single spec example referenced it)
- Not used in scope chaining
- Not used in merge() calls
- Not used as default_scope or association scope
Cascade Removals
None - this was a standalone removal.
Metrics
Source File Complexity (flog)
| Metric | Before | After | Improvement |
|---|---|---|---|
| File flog total | 22.8 | 20.3 | -2.5 (11%) |
| Scope flog score | 2.5 | N/A | -2.5 removed |
Spec File Complexity (flog)
| Metric | Before | After | Improvement |
|---|---|---|---|
| Spec file flog total | 175.9 | 149.5 | -26.4 (15%) |
| Spec block flog score | 26.4 | N/A | -26.4 removed |
Combined Flog Summary
| File | Flog Removed |
|---|---|
app/models/packages/build_info.rb |
2.5 |
spec/models/packages/build_info_spec.rb |
26.4 |
| Total | 28.9 |
Test Suite Impact
- Specs removed: 1 example
- Spec file:
spec/models/packages/build_info_spec.rb - Time saved per run: 0.04544 seconds
Estimated CI Savings
| Estimate | Pipelines/Month | Time Saved | Cost Saved/Month | Cost Saved/Year |
|---|---|---|---|---|
| Pessimistic | 15,000 | 0.19 hrs/month | $0.34 | $4.09 |
| Moderate | 30,000 | 0.38 hrs/month | $0.68 | $8.18 |
| Optimistic | 50,000 | 0.63 hrs/month | $1.14 | $13.63 |
Based on 0.04544 seconds saved per pipeline × $0.03/minute (large runners: 3x cost factor on $10/1000 base minutes)
Files Modified
app/models/packages/build_info.rb(scope removed - 1 line)spec/models/packages/build_info_spec.rb(specs removed - 6 lines, 1 example)scripts/lint/keela_baseline.yml(entry removed - 2 lines)
Related
- Related to #542966 (closed) (Improve unused code workflow)
- Part of dead code cleanup effort
- Scope was listed in
scripts/lint/keela_baseline.yml