Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1907

[Operator] v1alpha3 and v1alpha4 API compatibility tests not passing on main

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required
    • RHDH Install 3277

      Description of problem:

      It seems these tests are not passing on the main branch, as we could see in a few unrelated PRs and in the latest nightly checks:

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. From the main branch, deploy the operator in a cluster with `make deploy` (I used a local vanilla K8s cluster)
      2. Run `make integration-test PROFILE=backstage.io USE_EXISTING_CLUSTER=true USE_EXISTING_CONTROLLER=true`

      Actual results:

      Tests will fail with:

        STEP: creating a Backstage resource using v1alpha3 API @ 07/21/25 23:31:13.572                                                                                                               
        [FAILED] in [It] - /home/asoro/work/projects/backstage/janus-idp/operator/integration_tests/config-refresh_test.go:292 @ 07/21/25 23:31:13.582                                               
      • [FAILED] [0.023 seconds]                                                                                                                                                                     
      when create backstage with external configuration [It] verifies v1alpha3 and v1alpha4 API compatibility                                                                                        
      /home/asoro/work/projects/backstage/janus-idp/operator/integration_tests/config-refresh_test.go:253                                                                                            
                                                                                                                                                                                                     
        [FAILED] Unexpected error:                                                                                                                                                                   
            <*runtime.notRegisteredErr | 0xc0008a0540>:                                                                                                                                              
            no kind is registered for the type v1alpha3.Backstage in scheme "pkg/runtime/scheme.go:100"                                                                                              
            {                                                                                                                                                                                        
                schemeName: "pkg/runtime/scheme.go:100",                                                                                                                                             
                gvk: {Group: "", Version: "", Kind: ""},                                                                                                                                             
                target: nil,                                                                                                                                                                         
                t: <*reflect.rtype | 0x1afe460>{                                                                                                                                                     
                    t: {Size_: 0x140, PtrBytes: 0x130, Hash: 562314669, TFlag: 7, Align_: 8, FieldAlign_: 8, Kind_: 25, Equal: nil, GCData: 85, Str: 183965, PtrToThis: 3777760},
                },
            }
        occurred
        In [It] at: /home/asoro/work/projects/backstage/janus-idp/operator/integration_tests/config-refresh_test.go:292 @ 07/21/25 23:31:13.582
      

      Expected results:

      Tests should pass.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              rh-ee-fndlovu Fortune Ndlovu
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: