commit | 8fab014d343633828dc4df3c670def9c75fa4485 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Wed Mar 29 16:48:16 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Wed Mar 29 16:03:23 2023 +0000 |
tree | 178e3a4a95189e85e618fb966320e805961cb666 | |
parent | 3ac3a2ecfab884ff26939834578ce731ee1778ac [diff] |
m/pkg/logtree: fix exact backlog fetch, head/tail confusion This started off as 'hm, the backlog data returned seems wrong'. I realized we had no test for that, so I added one. It was indeed broken. This was because we had two simultaneous bugs: we confused head/tail between docs and different parts of the code, and we forgot to do a reverse operation when scanning/retrieving journal entries. With those two fixed, we also implement backlog retrieval in a optimized fashion, but not scanning/retrieving more entries that is necessary. Finally, we drive-by fix a massacred ASCII graphic in a comment. Change-Id: I2ec5dd9b5b58f66fbc015c142feb91bd92038e4f Reviewed-on: https://review.monogon.dev/c/monogon/+/1430 Tested-by: Jenkins CI Reviewed-by: Leopold Schabel <leo@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 -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 //...