Feature: Reduce build log verbosity #88
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
migrated from uselagoon/lagoon#3243
Checklist
The main goal is to reduce the entirety of the
set +x/-x
usage and only display useful information. Previously there was too much debugging information which with all theset +x/-x
usage would obscure a lot of the warnings. A lot of YAML is also dumped straight into stdout for no real reason beyond being able to see what is created, for most users this is unused or just causes bulk on build logs for no reason.This PR introduces a new flag though which can be set in the controller or as an environment variable to expose the created YAML files if required:
LAGOON_FEATURE_FLAG_FORCE_BUILD_VERBOSITY=enabled
(controller)LAGOON_FEATURE_FLAG_BUILD_VERBOSITY=enabled
(environment variable)LAGOON_FEATURE_FLAG_DEFAULT_BUILD_VERBOSITY=enabled
(controller)An example build log is available here: https://gist.github.com/shreddedbacon/2ebb0f5cbc0ab524813959de1436ea2c