diff options
author | Eric Fahlgren <ericfahlgren@gmail.com> | 2024-10-16 09:14:23 -0700 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2024-10-17 01:38:08 +0200 |
commit | 46fb56000f21731d403f302f79f238cde4edc9b9 (patch) | |
tree | 2df179d0e7c5f2b3cc57ce5c65a2cba8d5b994de | |
parent | 773fad2d89b2490df983ec206c8bd6f6bfa96e98 (diff) |
luci-app-attendedsysupgrade: update status keys and messages
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 <ericfahlgren@gmail.com>
-rw-r--r-- | applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index 011215ca3c..110b241be9 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -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: '', |