Skip to content

Commit

Permalink
luci-app-attendedsysupgrade: update status keys and messages
Browse files Browse the repository at this point in the history
The reported status values have changed on the ASU server several
times since the 'steps' list has been updated, so update it to
include all possible values.  Although some of the values in the
list are no longer presented by the official OpenWrt ASU server, they
may still be produced by other ASU servers, so leave them in for now.

Percentages have been adjusted based up on measurement of the build
phases for several build configurations (ath79 vs x86, few packages
vs many...).  The numbers are still (very) rough estimates, but
are more representative than the old values.

Signed-off-by: Eric Fahlgren <[email protected]>
  • Loading branch information
efahl committed Oct 16, 2024
1 parent bbb0819 commit 16d5a14
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ function get_revision_count(revision) {

return view.extend({
steps: {
init: [10, _('Received build request')],
download_imagebuilder: [20, _('Downloading ImageBuilder archive')],
unpack_imagebuilder: [40, _('Setting Up ImageBuilder')],
calculate_packages_hash: [60, _('Validate package selection')],
building_image: [80, _('Generating firmware image')],
init: [ 0, _('Received build request')],
container_setup: [ 10, _('Setting up ImageBuilder')],
validate_revision: [ 20, _('Validating revision')],
validate_manifest: [ 30, _('Validating package selection')],
calculate_packages_hash: [ 40, _('Calculating package hash')],
building_image: [ 50, _('Generating firmware image')],
signing_images: [ 95, _('Signing images')],
done: [100, _('Completed generating firmware image')],
failed: [100, _('Failed to generate firmware image')],

/* Obsolete status values, retained for backward compatibility. */
download_imagebuilder: [ 20, _('Downloading ImageBuilder archive')],
unpack_imagebuilder: [ 40, _('Setting Up ImageBuilder')],
},

request_hash: '',
Expand Down

0 comments on commit 16d5a14

Please sign in to comment.