You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Dockerfile for boe create for cshared libs, configure test.short to skip long runing tests and other tech debt (#445)
This PR contains several build and test-related fixes and tech debt
addressing. I did them incrementally in this PR as many were tightly
related, but I'm happy to split up into different PRs if that's
preferred.
* The `Dockerfile` generated for the Go plugins was for the `goplugin`
build, but the Makefile main build is now cshared. This PR provides a
Dockerfile for each case, switches the default one to `cshared`, and
adds the needed Makefile targets.
* Related to #442: The
Dockerfile for `cshared` in this PR may need to be updated if that PR is
merged first. cc @codefromthecrypt
* Adds the `config.schema.json` to the extension images along with the
manifest and adds missing tests for verifying the contents of
extensions.
* For Go extensions, adds the `cshared` bool to the OCI annotations.
CShared extensions and plugin extensions are downloaded to different
locations, and knowing the "flavor" is needed by `boe download` before
it can inspect the package contents. cc @wbpcode
* Adds `make help` support for all the generated Makefiles to help users
easily understand what is available.
* Adds support for the `-test.short` flag when running Go tests. By
default, PR e2e tests will run with the "short" flag to skip
long-running tests, but e2e tests for `main` and release branches will
run all tests. Added a helper `internaltesting.MaybeSkipLongRunningTest`
to easily mark tests as long running and to have them skipped easily.
* Prints the boe logs upon e2e test failures.
* Logs command execution errors to the boe log file (previously, only
normal info/debug messages were logged).
* Unify Go verison for Dockerfiles and generated files to reduce the
number of places it needs to be updated.
---------
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Copy file name to clipboardExpand all lines: cli/cmd/root.go
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ type CLI struct {
50
50
StateHomestring`name:"state-home" env:"BOE_STATE_HOME" help:"Persistent state and logs directory. Defaults to ~/.local/state/boe" type:"path" default:"~/.local/state/boe"`
51
51
RuntimeDirstring`name:"runtime-dir" env:"BOE_RUNTIME_DIR" help:"Ephemeral runtime files directory. Defaults to /tmp/boe-$UID" type:"path"`
52
52
BoeLogLevelstring`name:"boe-log-level" env:"BOE_LOG_LEVEL" help:"Log level for the CLI. Defaults to debug" enum:"debug,info,warn,error" default:"debug"`
53
+
54
+
Logger*slog.Logger`kong:"-"`// Internal field for the logger
53
55
}
54
56
55
57
// BeforeApply is called by Kong before applying defaults to set XDG directory defaults.
0 commit comments