Skip to content

Conversation

@sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Aug 27, 2024

This was reported by @wfchandler -- not sure why I missed these originally.

Also move the step index display logic out into its own displayer -- I need
this (including the padded logic) in a couple of spots.

This can be landed separately from #6444.

Some example output:

[00:00:00]   Running (1/7) Downloading component: https://www.example.org
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 12.50% ( 131072/1048576 bytes) after 101.22ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 25.00% ( 262144/1048576 bytes) after 201.49ms
[00:00:00]     Retry (1/7) Downloading component: https://www.example.org: after 302.77ms (at attempt 1) with message: Simulated failure at 25%
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org:  0.00% (      0/1048576 bytes) after 101.37ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 10.00% ( 104857/1048576 bytes) after 201.61ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 20.00% ( 209715/1048576 bytes) after 302.86ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 30.00% ( 314572/1048576 bytes) after 404.14ms

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers sunshowers changed the base branch from main to sunshowers/spr/main.update-engine-add-to-the-beginning-of-step-indexes-in-the-line-displayer August 27, 2024 04:48
@sunshowers sunshowers changed the base branch from sunshowers/spr/main.update-engine-add-to-the-beginning-of-step-indexes-in-the-line-displayer to main August 27, 2024 04:49
Created using spr 1.3.6-beta.1
@sunshowers sunshowers changed the title [update-engine] add ( to the beginning of step indexes in the line displayer [2/n] [update-engine] add ( to the beginning of step indexes in the line displayer Aug 27, 2024
@sunshowers sunshowers requested a review from jgallagher August 27, 2024 05:39
Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@sunshowers sunshowers enabled auto-merge (squash) August 30, 2024 01:00
@sunshowers sunshowers merged commit 330f4bc into main Aug 30, 2024
@sunshowers sunshowers deleted the sunshowers/spr/update-engine-add-to-the-beginning-of-step-indexes-in-the-line-displayer branch August 30, 2024 02:25
hawkw pushed a commit that referenced this pull request Aug 31, 2024
… line displayer (#6447)

This was reported by @wfchandler -- not sure why I missed these
originally.

Also move the step index display logic out into its own displayer -- I need
this (including the padded logic) in a couple of spots.

This can be landed separately from #6444.

Some example output from `cargo run --example update-engine-basic -- -s line`:

```
[00:00:00]   Running (1/7) Downloading component: https://www.example.org
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 12.50% ( 131072/1048576 bytes) after 101.22ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 25.00% ( 262144/1048576 bytes) after 201.49ms
[00:00:00]     Retry (1/7) Downloading component: https://www.example.org: after 302.77ms (at attempt 1) with message: Simulated failure at 25%
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org:  0.00% (      0/1048576 bytes) after 101.37ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 10.00% ( 104857/1048576 bytes) after 201.61ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 20.00% ( 209715/1048576 bytes) after 302.86ms
[00:00:00]  Progress (1/7) Downloading component: https://www.example.org: 30.00% ( 314572/1048576 bytes) after 404.14ms
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants