Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ set -o nounset
set -o errexit
set -o pipefail

# Support both OTEL_TESTS_BRANCH and MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH
# The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for Gangway API overrides
if [[ -n "${MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH:-}" ]]; then
OTEL_TESTS_BRANCH="${MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH}"
fi

if [[ -z "${OTEL_TESTS_BRANCH:-}" ]]; then
echo "ERROR: OTEL_TESTS_BRANCH is not set. Provide it via steps.env in the job config or via Gangway API pod_spec_options."
echo "ERROR: OTEL_TESTS_BRANCH is not set. Provide it via steps.env in the job config or via Gangway API pod_spec_options (use MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH for Gangway)."
exit 1
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ ref:
The branch to checkout from os-observability/opentelemetry-operator for running stage tests.
This parameter must be set either in the job config steps.env or via Gangway API pod_spec_options.
The job will fail if left empty.
- name: MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH
default: ""
documentation: |-
Alternative to OTEL_TESTS_BRANCH for Gangway API. Pass via pod_spec_options.envs:
"pod_spec_options": {
"envs": {
"MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH": "rhosdt-3.10"
}
}
If both are set, MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH takes precedence.
documentation: |-
The distributed-tracing-tests-opentelemetry-stage step executes the OpenTelemetry Operator Stage tests.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ export GOCACHE=/tmp/.cache/go-build
mkdir -p /tmp/go/bin $GOCACHE \
&& chmod -R 777 /tmp/go/bin $GOPATH $GOCACHE

# Support both TEMPO_TESTS_BRANCH and MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH
# The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for Gangway API overrides
if [[ -n "${MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH:-}" ]]; then
TEMPO_TESTS_BRANCH="${MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH}"
fi

if [[ -z "${TEMPO_TESTS_BRANCH:-}" ]]; then
echo "ERROR: TEMPO_TESTS_BRANCH is not set. Provide it via steps.env in the job config or via Gangway API pod_spec_options."
echo "ERROR: TEMPO_TESTS_BRANCH is not set. Provide it via steps.env in the job config or via Gangway API pod_spec_options (use MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH for Gangway)."
exit 1
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ ref:
The branch to checkout from os-observability/tempo-operator for running stage tests.
This parameter must be set either in the job config steps.env or via Gangway API pod_spec_options.
The job will fail if left empty.
- name: MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH
default: ""
documentation: |-
Alternative to TEMPO_TESTS_BRANCH for Gangway API. Pass via pod_spec_options.envs:
"pod_spec_options": {
"envs": {
"MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH": "rhosdt-3.10"
}
}
If both are set, MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH takes precedence.
documentation: |-
The distributed-tracing-tests-tempo-stage step executes the Tempo Operator Stage tests.