Skip to content

Conversation

@petr-muller
Copy link
Member

@petr-muller petr-muller commented Aug 31, 2023

When testing openshift/cluster-version-operator#961 I have seen CVO choking on incorrect mocked data because we assign the name of the risk to a condition.Reason directly:

- lastTransitionTime: "2023-08-30T10:19:05Z"
  message: 'ClusterVersion.config.openshift.io "version" is invalid: status.conditionalUpdates[1].conditions[0].reason:
    Invalid value: "OCBBUGS-13308-01": status.conditionalUpdates[1].conditions[0].reason
    in body should match ''^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$'''
  status: "True"
  type: Failing

It seems we never actually tripped this in the past but there is no reason why our checks should not protect us from that.

xref: OCPBUGS-18454

@petr-muller
Copy link
Member Author

/test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 31, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 31, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 31, 2023
@petr-muller petr-muller force-pushed the enforce-camelcase-name branch from 2383e81 to 935026c Compare August 31, 2023 18:21
@petr-muller petr-muller marked this pull request as ready for review August 31, 2023 18:22
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 31, 2023
@petr-muller
Copy link
Member Author

/retest

@petr-muller petr-muller changed the title validate-blocked-edges.py: enforce CamelCase names OCPBUGS-18454: validate-blocked-edges.py: enforce CamelCase names Sep 1, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 1, 2023
@openshift-ci-robot
Copy link

@petr-muller: This pull request references Jira Issue OCPBUGS-18454, which is invalid:

  • expected the bug to target the "4.14.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

When testing openshift/cluster-version-operator#961 I have seen CVO choking on incorrect mocked data because we assign the name of the risk to a condition.Reason directly:

- lastTransitionTime: "2023-08-30T10:19:05Z"
 message: 'ClusterVersion.config.openshift.io "version" is invalid: status.conditionalUpdates[1].conditions[0].reason:
   Invalid value: "OCBBUGS-13308-01": status.conditionalUpdates[1].conditions[0].reason
   in body should match ''^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$'''
 status: "True"
 type: Failing

It seems we never actually tripped this in the past but there is no reason why our checks should not protect us from that.

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/test-infra repository.

@petr-muller
Copy link
Member Author

/hold
Thanks for the review, will address!

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 6, 2023
@petr-muller petr-muller force-pushed the enforce-camelcase-name branch from 935026c to 15037cd Compare September 7, 2023 11:42
@petr-muller petr-muller changed the title OCPBUGS-18454: validate-blocked-edges.py: enforce CamelCase names validate-blocked-edges.py: enforce CamelCase names Sep 7, 2023
@openshift-ci-robot openshift-ci-robot removed jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 7, 2023
@openshift-ci-robot
Copy link

@petr-muller: No Jira issue is referenced in the title of this pull request.
To reference a jira issue, add 'XYZ-NNN:' to the title of this pull request and request another refresh with /jira refresh.

Details

In response to this:

When testing openshift/cluster-version-operator#961 I have seen CVO choking on incorrect mocked data because we assign the name of the risk to a condition.Reason directly:

- lastTransitionTime: "2023-08-30T10:19:05Z"
 message: 'ClusterVersion.config.openshift.io "version" is invalid: status.conditionalUpdates[1].conditions[0].reason:
   Invalid value: "OCBBUGS-13308-01": status.conditionalUpdates[1].conditions[0].reason
   in body should match ''^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$'''
 status: "True"
 type: Failing

It seems we never actually tripped this in the past but there is no reason why our checks should not protect us from that.

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/test-infra repository.

@petr-muller
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 7, 2023

@petr-muller: all tests passed!

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/test-infra repository. I understand the commands that are listed here.

Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: petr-muller, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.16.0-0.nightly-2024-01-31-073538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants