Skip to content

Enable verbose output from CI debug environment variables.#56

Merged
samuel-williams-shopify merged 2 commits into
mainfrom
enable-verbose-from-ci-debug
Jul 1, 2026
Merged

Enable verbose output from CI debug environment variables.#56
samuel-williams-shopify merged 2 commits into
mainfrom
enable-verbose-from-ci-debug

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Summary

When a CI provider is re-run in debug/verbose mode, sus now automatically enables verbose output (equivalent to passing --verbose). The most common case is GitHub Actions: re-running a workflow with "Enable debug logging" sets RUNNER_DEBUG=1, which we now detect.

Supported environment variables

Variable Provider Value
SUS_VERBOSE (our own explicit toggle) true
RUNNER_DEBUG GitHub Actions 1
CI_DEBUG_TRACE GitLab CI true
BUILDKITE_AGENT_DEBUG Buildkite true
SYSTEM_DEBUG Azure Pipelines true

--verbose continues to work as before; the environment check is an additional trigger.

Tests

Added coverage for Config.verbose_from_environment? (each provider, defaults, unrelated values) and Config#verbose? (the --verbose argument). Full suite passes (287 tests).

Automatically enable verbose output when a CI provider is running in
debug mode, e.g. GitHub Actions re-run with "Enable debug logging"
(RUNNER_DEBUG=1). Also supports GitLab CI, Buildkite, Azure Pipelines,
and an explicit SUS_VERBOSE toggle.

Assisted-By: devx/0e90505d-10c5-4dfa-be04-c43abc87164a
Add an env: parameter to Config.load so tests can supply an isolated
environment, preventing failures when sus itself is run in CI debug mode.

Assisted-By: devx/0e90505d-10c5-4dfa-be04-c43abc87164a
@samuel-williams-shopify samuel-williams-shopify changed the title Enable verbose output from CI debug environment variables Enable verbose output from CI debug environment variables. Jul 1, 2026
@samuel-williams-shopify samuel-williams-shopify merged commit e38d2e4 into main Jul 1, 2026
40 checks passed
@samuel-williams-shopify samuel-williams-shopify deleted the enable-verbose-from-ci-debug branch July 1, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant