Skip to content

Display feature flags that are set to a non-default status

Arran Walker requested to merge ajwalker/display-feature-flags into master

What does this MR do?

Displays a list of feature flags and their status (on, off) at the beginning of the job.

image

Only feature flags that have a non-default status set are shown to avoid how verbose this list could otherwise get. The runner version can always be used to determine which feature flags were on otherwise.

Why was this MR needed?

Feature flags can be set in a variety of ways, but it's sometimes difficult to know whether you've done it correctly.

What's the best way to test this MR?

Unit test:

go test -run TestBuild_getFeatureFlagInfo ./common

Manual test:

image: busybox:latest
variables:
  FF_USE_FASTZIP: "true"

showvars:
  stage: test
  script:
    - echo "hello"

Should print an introduction similar to the image above.

What are the relevant issue numbers?

closes #27288 (closed)

Edited by Arran Walker

Merge request reports

Loading