commit | 5cd7ddf9b4f0b3f1bbc588af5d3c47d232385520 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Thu Apr 13 12:09:53 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Mon Apr 17 09:14:47 2023 +0000 |
tree | 5592f7c4f59d0a860335d1e9dbf9df85397fd43b | |
parent | 2cfafc9a4c34152dd93b58aa82df1720fb4dd6d6 [diff] |
cloud/bmdb/reflection: copy byte slices The pq driver doesn't allocate unique backing buffers for each slice handed out as part of scanning, so we need to do a copy. Otherwise we end up with junk being written to the reflected field data if another SQL operation is performed later. Change-Id: I8f5a135ef3c5a3bb365098e1727e26572ddedcce Reviewed-on: https://review.monogon.dev/c/monogon/+/1537 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 //...