commit | 367ee27b50654bc37358d9172aed7c3d19a32dac | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Thu Mar 16 17:50:39 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Thu Mar 16 20:52:16 2023 +0000 |
tree | 354e4e01616adbf92be250eacd28e66e2e97dd4e | |
parent | ce4af2b7dbae61a81c791c30fe0a161b3ff8b7d9 [diff] |
m/pkg/logtree: implement concise stringification This adds a new method on LogEntry: ConciseString(). It's designed to be used in cases where we want to display the log line on some limited-width (and likely non-interactive) log console, like TTY consoles in Metropolis. This is a bit too Metropolis-specific to my liking (we hardcode some logic related to the layout of root.role.*), but it'll do for now. Change-Id: I1079b8b19a3c304fcc5077ce6b4c69887a34d7ae Reviewed-on: https://review.monogon.dev/c/monogon/+/1359 Reviewed-by: Leopold Schabel <leo@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 -c dbg
Launch an ephemeral test node:
bazel test //:launch -c 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 -c dbg //...