← Back to team overview

touch-packages team mailing list archive

[Bug 1466124] [NEW] Please provide a way to get the progress in used from a plugin

 

Public bug reported:

For snappy we use a plugin to apply the upgrade.  I.e. we set:
"""
[hooks]
apply: ubuntucoreupgrader.apply.ApplyUpgrade
"""

We also send progress data in the form of spinner json progress
data. In our system-image-snappy-cli  fork we set what progress
into the config and query it later from the plugin to know if
it should send progress reporting or not. It would be nice if
s-i 3.0 could do the same.

I hope this bugreport is not too confused, if it is, please let me know.

It might be as simple as in main.py:
"""
config.progress += meter
"""

** Affects: system-image (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to system-image in Ubuntu.
https://bugs.launchpad.net/bugs/1466124

Title:
  Please provide a way to get the progress in used from a plugin

Status in system-image package in Ubuntu:
  New

Bug description:
  For snappy we use a plugin to apply the upgrade.  I.e. we set:
  """
  [hooks]
  apply: ubuntucoreupgrader.apply.ApplyUpgrade
  """

  We also send progress data in the form of spinner json progress
  data. In our system-image-snappy-cli  fork we set what progress
  into the config and query it later from the plugin to know if
  it should send progress reporting or not. It would be nice if
  s-i 3.0 could do the same.

  I hope this bugreport is not too confused, if it is, please let me
  know.

  It might be as simple as in main.py:
  """
  config.progress += meter
  """

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-image/+bug/1466124/+subscriptions


Follow ups

References