commit | 3e756907d9c769bc92efde5325cd965a4dacf5bd | [log] [tgz] |
---|---|---|
author | Tim Windelschmidt <tim@monogon.tech> | Fri Nov 24 23:12:06 2023 +0100 |
committer | Tim Windelschmidt <tim@monogon.tech> | Mon Nov 27 18:15:51 2023 +0000 |
tree | e6b11184fd17367cde826cc2f561d228c881f0ba | |
parent | 947c0267b97834c4538777426f1a657f118a3945 [diff] |
metropolis/node/core/metrics: build command inside runnable It is not allowed to reuse exec.Command. The command has to be rebuild every time the runnable restarts, because go does not allow command restarts. Change-Id: Ia0f7c8e598bbd0c275d0cb47c020099d1baa5865 Reviewed-on: https://review.monogon.dev/c/monogon/+/2368 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
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 //...