commit | 3a3c517696210f23f2c1d74d766ddf5750a3f4b8 | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Thu Jun 01 19:54:17 2023 +0200 |
committer | Lorenz Brun <lorenz@monogon.tech> | Tue Jun 06 01:46:23 2023 +0000 |
tree | f20c99b0329b5895948e1cef5991dde8e5483a79 | |
parent | fd6d4ebffd699ed87cd8bb41dd7a74e40cbe519c [diff] |
m/c/metroctl/test: deflake test This test was flaky as the node picked to run takeownership against was dependent on map key order. Only the first node runs the relevant control plane services, thus if the second node was iterated over first, the test broke. Fix this by using the NodeIDs slice to get deterministic ordering and always pick the first node. Change-Id: Id4ac162a8295be4e84ad439ac5b70ff5a968af04 Reviewed-on: https://review.monogon.dev/c/monogon/+/1784 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 -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 //...