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:

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')