Skip to content

chore(deps): upgrade mpb from v4.12.2 to v8.12.0 - #21261

Draft
janisz wants to merge 1 commit into
backofffrom
mpb
Draft

janisz wants to merge 1 commit into
backofffrom
mpb

Conversation

@janisz

@janisz janisz commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Migrate from vbauerster/mpb/v4 to v8 with breaking API changes:

  • BarFiller.Fill() signature changed: Fill(w, width, *Statistics) → Fill(w, Statistics) error
  • Decorator.Decor() signature changed: Decor(*Statistics) string → Decor(Statistics) (string, int)
  • decor.UnitKiB constant removed, replaced with decor.SizeB1024(0) function
  • Updated WC embedding pattern - use WC.Format() instead of FormatMsg()/GetWidth()
  • WithManualRefresh/WithShutdownNotifier now require chan interface{} instead of specific types
  • Progress.Add() now returns (*Bar, error) instead of *Bar
  • Added Progress.AddBar() method for default bar style
  • Progress.New() for custom BarFiller implementations

Changes made:

  • roxctl/central/db/restore/statusline.go: Updated Fill() method signature and error handling
  • roxctl/central/db/restore/v2_restorer.go: Updated imports to v8
  • roxctl/central/db/transfer/progress_bar.go: Updated Decor() and Fill() signatures, replaced UnitKiB
  • roxctl/central/db/transfer/transfer.go: Updated imports to v8

All tests pass successfully.

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Description

change me!

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

change me!

@openshift-ci

openshift-ci Bot commented Jun 18, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Migrate from vbauerster/mpb/v4 to v8 with breaking API changes:
- BarFiller.Fill() signature changed: Fill(w, width, *Statistics) → Fill(w, Statistics) error
- Decorator.Decor() signature changed: Decor(*Statistics) string → Decor(Statistics) (string, int)
- decor.UnitKiB constant removed, replaced with decor.SizeB1024(0) function
- Updated WC embedding pattern - use WC.Format() instead of FormatMsg()/GetWidth()
- WithManualRefresh/WithShutdownNotifier now require chan interface{} instead of specific types
- Progress.Add() now returns (*Bar, error) instead of *Bar
- Added Progress.AddBar() method for default bar style
- Progress.New() for custom BarFiller implementations

Changes made:
- roxctl/central/db/restore/statusline.go: Updated Fill() method signature and error handling
- roxctl/central/db/restore/v2_restorer.go: Updated imports to v8
- roxctl/central/db/transfer/progress_bar.go: Updated Decor() and Fill() signatures, replaced UnitKiB
- roxctl/central/db/transfer/transfer.go: Updated imports to v8

All tests pass successfully.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit e03d0aa. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-630-ge03d0aa106

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.19%. Comparing base (a8489c7) to head (e03d0aa).

Files with missing lines Patch % Lines
roxctl/central/db/restore/v2_restorer.go 0.00% 4 Missing ⚠️
roxctl/central/db/restore/statusline.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           backoff   #21261   +/-   ##
========================================
  Coverage    51.19%   51.19%           
========================================
  Files         2865     2865           
  Lines       178822   178825    +3     
========================================
+ Hits         91541    91547    +6     
+ Misses       79216    79214    -2     
+ Partials      8065     8064    -1     
Flag Coverage Δ
go-unit-tests 51.19% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant