Skip to content
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

KUBESAW-43: Replace the special ToolchainClusterCondition with the standard toolchain Condition #1017

Merged
merged 19 commits into from
May 30, 2024

Conversation

…andard toolchain Condition

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
Signed-off-by: Feny Mehta <fbm3307@gmail.com>
Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Nice Job 👍

@rsoaresd
Copy link
Contributor

Hello @fbm3307 👋

All the runs of this PR failed with reached timeout of waiting for CRD memberoperatorconfigs.toolchain.dev.openshift.com to be available in the cluster and the InstallPlan to be complete.

Very likely is PR specific. At least, from this search query, it seems.

@mfrancisc
Copy link
Contributor

Based on the e2e test failure:

message: 'error validating existing CRs against new CRD''s schema for "toolchainclusters.toolchain.dev.openshift.com":
      error validating toolchain.dev.openshift.com/v1alpha1, Kind=ToolchainCluster
      "toolchain-host-29071701/member-ci-op-3g617pk9-1de72.devsandboxci.devcluster.openshift.1":
      updated validation is too restrictive: [].status.conditions[0].lastProbeTime:

it seems that it doesn't allow to switch to the new Conditions type since the previous one ToolchainClusterCondition has a required field LastProbeTime which is missing in the new CRD.

@mfrancisc
Copy link
Contributor

Maybe we need first to make that field optional and then migrate to the new Condition ? Not sure if that will workaround the issue.

@fbm3307
Copy link
Contributor Author

fbm3307 commented Apr 30, 2024

Thanks @rsoaresd for lookinng into the errors.
@mfrancisc yes i think, will make LastProbetTime Optional first , also add the new field of LastTransitionTime then switch to new condition

@mfrancisc
Copy link
Contributor

also add the new field of LastTransitionTime then switch to new condition

TBH I'm not 100% sure this is required , because adding a new filed in new CRD should be a problem , but removing a required field seems to be the issue 🤷‍♂️

@fbm3307 fbm3307 marked this pull request as draft May 3, 2024 10:10
Signed-off-by: Feny Mehta <fbm3307@gmail.com>
@fbm3307
Copy link
Contributor Author

fbm3307 commented May 14, 2024

looks like a flaky test
/test e2e

@fbm3307
Copy link
Contributor Author

fbm3307 commented May 14, 2024

looks like the e2e failure is not related to this PR

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
Copy link

openshift-ci bot commented May 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fbm3307, MatousJobanek, metlos, mfrancisc

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,mfrancisc]

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

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
@fbm3307
Copy link
Contributor Author

fbm3307 commented May 30, 2024

/test e2e

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
Copy link

sonarcloud bot commented May 30, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.74%. Comparing base (97cedbf) to head (b464efa).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1017   +/-   ##
=======================================
  Coverage   84.74%   84.74%           
=======================================
  Files          55       55           
  Lines        4909     4909           
=======================================
  Hits         4160     4160           
  Misses        576      576           
  Partials      173      173           

@fbm3307 fbm3307 merged commit d5f0975 into codeready-toolchain:master May 30, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants