GithubHelp home page GithubHelp logo

Comments (3)

cgwalters avatar cgwalters commented on August 13, 2024

This would allow us to pipe the status into applications such as Steam & Topgrade

Pipe? Not the DBus API?

These are pretty different things right now.

I know the DBus API is...unfriendly.

from rpm-ostree.

KyleGospo avatar KyleGospo commented on August 13, 2024

This would allow us to pipe the status into applications such as Steam & Topgrade

Pipe? Not the DBus API?

These are pretty different things right now.

I know the DBus API is...unfriendly.

Ah sorry, that was pipe in the metaphorical sense rather than me explicitly requesting it be pipe-able. I think either way is fine, whatever you believe to be most correct for ostree. I just need a way to get a 0-100 number from it.

from rpm-ostree.

antheas avatar antheas commented on August 13, 2024

Ideally jsonl (JSON line) output that includes:

  • total image size
  • download size
  • currently downloaded size
  • total ostree layer number
  • total custom layer number
  • download ostree layer number
  • download custom ostree layer number
  • downloaded ostree layer number
  • downloaded custom ostree layer number

OR a dictionary with a mapping of layer keys to:

  • layer size
  • whether the layer is custom
  • whether the layer exists in cache
  • how % of the layer is downloaded

Latter is preferable, especially if parallel layer pulls are implemented*. But either work and give great flexibility in presentation.

These three attrs are especially important and should probably be included regardless, esp. to assist naive implementations (e.g., bash with jq):

  • total image size
  • download size
  • currently downloaded size

As they allow for proper download time estimation while showing a two-stage slider that begins e.g., at 60% if 60% of the image is already downloaded.

Can either be through e.g., a dbus signal or rpm-ostree update --json. Since it will be wrapped it does not really matter.

*after benchmarking I found that the current single threaded implementation saturates an internet connection of 70mbps-100mps, not so quite at 1gbps.

from rpm-ostree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.