commit | f0ae33180b59b25d236199e1b874f0dce7aa1e41 | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Tue Sep 12 13:40:30 2023 +0200 |
committer | Lorenz Brun <lorenz@monogon.tech> | Mon Sep 18 13:56:28 2023 +0000 |
tree | 0d3ffd008695edc1a4b9afde63ac8f149d7d6d94 | |
parent | 65b1c682edc6237dbb50efa7a08475d56a97a7ae [diff] |
m/p/watchdog: add watchdog package This adds the watchdog package for interfacing with devices implementing the Linux watchdog API. There is one alternative implementation at github.com/mdlayher/watchdog but it is too minimal for our use case. The kernel API contains a bunch of weird status bits only relevant for physical watchdog cards which are not made accessible through the Go package. Sadly there are no integration tests for this package as ktest wouldn't work for this because a) no watchdog HW and b) the test success depends on a condition outside the kernel. Change-Id: If138a97bc655025da4426665f8cbf1f093cc3bb1 Reviewed-on: https://review.monogon.dev/c/monogon/+/2142 Reviewed-by: Serge Bazanski <serge@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch --config dbg
Launch an ephemeral test node:
bazel test //:launch --config dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test --config dbg //...