Page MenuHomeSoftware Heritage

git_bare: Send progress updates while cooking
ClosedPublic

Authored by vlorentz on Tue, Nov 16, 2:00 PM.

Details

Summary

It can be confusing to just have 'Processing...' in the UI for hours.
With this change, a new progress update should be sent every few minutes.

In the swh-web UI, it will show only 'Processing... %d objects processed'
in the main table, but 'Over %d remaining' will be shown when hovering
the progress bar (using a future diff to swh-web).
This does not show 'Processing... %d/%d' or a percentage, because the
number of remaining objects is not always known.

Resolves T3727

Diff Detail

Repository
rDVAU Software Heritage Vault
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6642 (id=24144)

Rebasing onto e2d3f274fb...

Current branch diff-target is up to date.
Changes applied before test
commit bd649ccb9793d1abaaad6455e7f25b48167a1c59
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Nov 16 13:59:45 2021 +0100

    git_bare: Send progress updates while cooking
    
    It can be confusing to just have 'Processing...' in the UI for hours.
    With this change, a new progress update should be sent every few minutes.
    
    In the swh-web UI, it will show only 'Processing... %d objects processed'
    in the main table, but 'Over %d remaining' will be shown when hovering
    the progress bar.
    This does not show 'Processing... %d/%d' or a percentage, because the
    number of remaining objects is not always known.

See https://jenkins.softwareheritage.org/job/DVAU/job/tests-on-diff/185/ for more details.

anlambert added a subscriber: anlambert.

Looks good to me.

This revision is now accepted and ready to land.Tue, Nov 16, 2:57 PM