Coder Social home page Coder Social logo

the_zuul_watcher's Introduction

The Zuul Watcher

The Zuul Watcher connects to a Zuul instance and record the job output of all the jobs (websocket).

The application will that:

  1. poll the status page to list the ongoing jobs (every 10s)
  2. open a Websocket for reach of these jobs
  3. redirect the Websocket content to a local file in the ./results directory
  4. expose the log over HTTP, (e.g: http://my-host:3000/$build_uuid)

Requirements

sudo dnf install -y erlang erlang-xmerl elixir

Run

Edit config/config.exs to adjust your Zuul instance location.

Run the app with:

mix deps.get
ZUUL=sf iex -S mix  # for ansible.softwarefactory-project.io

The logs are stored in the ./results directory by default. The application listen on port 3000. You can download the log using an URL with the following format http://my-host:3000/$build_uuid.

the_zuul_watcher's People

Contributors

goneri avatar tristancacqueray avatar

Stargazers

 avatar

Watchers

 avatar  avatar

the_zuul_watcher's Issues

Add negative regexp support to report when upload-log fails

I think a really good use case for the zuul watcher is to provide access to the console log when the upload-log phase fails (or is not being run). Thus it would be good to add a regexp match for:

TASK [upload-logs : Ensure logs are readable before uploading]
.* | ok: .*

And report the build when the regexp is not found.

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.