Giter VIP home page Giter VIP logo

charm-logdump-action's Introduction

charm-logdump-action

GitHub Action for dumping logs and metadata related to a charm deployment. Currently only works with the microk8s provider.

Usage

      - name: Dump logs
        uses: canonical/charm-logdump-action@HEAD
        if: failure()
        with:
          app: hello-kubecon

Configuration

Configuration is supplied through the with keyword.

Property Description
app Name of the app you are testing. Required
model Name of the model you are deploying to. Defaults to testing.
operator Name of the deployed operator. Defaults to modeloperator.

charm-logdump-action's People

Contributors

simskij avatar thanhphan1147 avatar ca-scribner avatar mthaddon avatar

Watchers

James Cloos avatar  avatar  avatar

charm-logdump-action's Issues

Enable a wildcard input for `model`

Requiring a model input kind of runs contrary to how pytest-operator works, especially for cases where we have multiple pytest files (each of which should run in a separate model). For example, if we have:

tests
- integration
- - test_something.py
- - test_something_else.py

Those tests will be run in parallel and likely need separate models. It would be great to be able to dump logs from that style test whenever we have a failure, too.

Perhaps we can do one of:

  • enable * (or make model optional, with empty meaning *), and have the logdump dump logs for all models
  • enable patterns (eg: test-charm-*), and dump logs from matching models

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.