Release Mode¶
Added in version 3.1.
Users can invoke releng-tool in a „release mode“. It can be used to sanity
check a run is using a runtime configuration appropriate for a release. This
mode can be enabled using the --release argument. For example:
releng-tool --release
What a release means for developers may vary, but there are some options releng-tool can determine that should not be applied for a typical release. A series of checks are performed. In the event that a check detects a runtime configuration state that should not be used for a release, releng-tool will stop.
Checks performed include:
Verify no actions are being used (e.g. running only
libfoo-build).Verify not running in a development mode.
Verify not running in a local-sources mode.
Verify
LIBFOO_FORCE_REVISIONis not used.
When running in a release mode, releng-tool will also set the
RELENG_RELEASE variable. Developers can utilize this
in their own projects for additional checks. For example:
if RELENG_RELEASE:
if <some-condition>:
releng_exit('failed a release pre-check')