Git Product home page Git Product logo

Comments (2)

garethstockwell avatar garethstockwell commented on May 4, 2024

In addition to reboot events and workload iterations, it would also be useful for the dry run output to show configuration changes, for example writes to sysfiles.

from workload-automation.

setrofim avatar setrofim commented on May 4, 2024

Logging actual changes that would occur on a device may be tricky. It may be possible to implement this level of detail buy adding a "dry-run" Device interface, rather than a Runner; so the runner executes the workload as normal but all calls to execute(), set_sysfile_value(), push_file(), etc will just result in log output.

The problem is that some of these changes will occur depending on the information read from the device, so a live connection is not available, it would not be possible to log everything that would happend. Only way around it would be constrain the "dry run" option to only work if a live connection to the device is aviable. In addition, executing extensions may also result in changes on the host as well as on the device, and there is no straight forward way to shim that, as there is no unified interface for the host unlike the target device (extensions can use all the standard Python APIs to, e.g., kick off subprocess or create fils and directories etc).

On the other hand, if we're only talking about logging configuration that would be applied, rather than actual changes that would happen on the device, that would be straight forward to do with the DryRunner implmentation outlined in the OP.

from workload-automation.

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.