-
Notifications
You must be signed in to change notification settings - Fork 115
No-JIRA: Fix conditional labels when in different folder structure than expected #2281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@dfajmon: This pull request explicitly references no jira issue. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
@dfajmon: the contents of this pull request could not be automatically validated. The following commits could not be validated and must be approved by a top-level approver:
Comment |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dfajmon The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…ructure than expected
@dfajmon: the contents of this pull request could not be automatically validated. The following commits could not be validated and must be approved by a top-level approver:
Comment |
@dfajmon: This pull request explicitly references no jira issue. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/Retest |
/retest |
@dfajmon: The following tests failed, say
Full PR test history. Your PR dashboard. 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. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fix conditional labels when in a different folder structure than expected.
I have my Kubernetes repo in the path
openshift/kubernetes
. When usingopenshift-hack/update-test-annotations.sh
this would regenerate all of the test labels without the[Suite:k8s.io]
. This is because the code expects it to be on the pathk8s.io/kubernetes
but because it is not, it thinks there are no kubernetes suite tests. We have only kubernetes tests here. I believe we can just omit the part where we add the label on condition. If this proves to be a problem, we should think of a different solution than expecting an absolute path that is not the repository name.This was half day work trying to figure out why it worked in a container and not on the host (because I chose the
registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.23-openshift-4.19
it was indistinguishable). But this will be a problem for all other environments and containers.Heads up to @jsafrane for helping me with this.
cc @bertinatto
Might know more where else this is used? And if it breaks anything else.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?