commit | 2fd37ea54317f23add3b8baa37ce3eaf33253479 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Thu Apr 06 14:48:53 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Thu Apr 06 12:53:31 2023 +0000 |
tree | 71087f9d9690bc8e47a31edd2688053b87eb2c53 | |
parent | 739f1d2cad73be305c54366a1f593a81c900120e [diff] |
cloud/lib/component: don't fail when there's no migrations to run Currently we always migrate the database schema up on every startup. However, the go-migrate API returns an error if Up() is called when everything is up to date. Change-Id: I245d3985719c5baee7d483c0cd9dc21c142b49af Reviewed-on: https://review.monogon.dev/c/monogon/+/1502 Tested-by: Jenkins CI Reviewed-by: Tim Windelschmidt <tim@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 //...