Skip to content

[release-3.0] Ensure e2e tests use the correct versions yaml file (#667) (#669)#254

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-service-mesh:release-3.0from
luksa:cherrypick4
Feb 19, 2025
Merged

[release-3.0] Ensure e2e tests use the correct versions yaml file (#667) (#669)#254
openshift-merge-bot[bot] merged 1 commit intoopenshift-service-mesh:release-3.0from
luksa:cherrypick4

Conversation

@luksa
Copy link
Copy Markdown

@luksa luksa commented Feb 19, 2025

We use -ldflags to set the istioversion.versionsFilename variable, but this only works when building the binary. It doesn't work when running ginkgo-based e2e tests. When the versionsFilename is not set via ldflags, it will now use the environment variable VERSIONS_YAML_FILE. If this env var isn't set, we default to versions.yaml.

(cherry picked from commit 148eb64)

) (istio-ecosystem#669)

We use `-ldflags` to set the `istioversion.versionsFilename` variable, but this only works when building the binary. It doesn't work when running ginkgo-based e2e tests. When the `versionsFilename` is not set via ldflags, it will now use the environment variable `VERSIONS_YAML_FILE`. If this env var isn't set, we default to `versions.yaml`.

(cherry picked from commit 148eb64)

Signed-off-by: Marko Lukša <mluksa@redhat.com>
@openshift-ci openshift-ci bot added the size/M label Feb 19, 2025
@luksa luksa changed the title Ensure e2e tests use the correct versions yaml file (#667) (#669) [release-3.0] Ensure e2e tests use the correct versions yaml file (#667) (#669) Feb 19, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Feb 19, 2025

@luksa: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ocp-4-18 a332373 link false /test e2e-ocp-4-18

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 9699702 into openshift-service-mesh:release-3.0 Feb 19, 2025
@luksa luksa deleted the cherrypick4 branch April 23, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants