Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1297

After updating to che-operator 7.20.x sources, crw-operator build fails due to che_controller_test.go tests

    XMLWordPrintable

Details

    • False
    • False
    • Undefined

    Description

      After updating to che-operator 7.20.x sources, crw-operator build fails:

      dockerfile
      FROM registry.redhat.io/devtools/go-toolset-rhel7:1.13.4-23.1596049370  as builder
      ENV PATH=/opt/rh/go-toolset-1.13/root/usr/bin:${PATH} \
          GOPATH=/go/
      
      USER root
      ADD . /che-operator
      WORKDIR /che-operator
      
      RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
          export MOCK_API=true && go test -mod=vendor -v ./... && \
          GOOS=linux GOARCH=${ARCH} CGO_ENABLED=0 go build -mod=vendor -o /tmp/che-operator/che-operator cmd/manager/main.go
      
      # https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi8-minimal
      FROM registry.redhat.io/ubi8-minimal:8.2-349
      
      COPY --from=builder /tmp/che-operator/che-operator /usr/local/bin/che-operator
      COPY --from=builder /che-operator/templates/keycloak_provision /tmp/keycloak_provision
      COPY --from=builder /che-operator/templates/oauth_provision /tmp/oauth_provision
      # apply CVE fixes, if required
      RUN microdnf update -y librepo libnghttp2 && microdnf clean all && rm -rf /var/cache/yum && echo "Installed Packages" && rpm -qa | sort -V && echo "End Of Installed Packages"
      CMD ["che-operator"]
      
      build log
      podman build . -t crw-operator
      
      --- FAIL: TestConfiguringLabelsForRoutes (0.08s)
          che_controller_test.go:317: Route 'che' does not have label '&Route{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:che,GenerateName:,Namespace:eclipse-che,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,},Spec:RouteSpec{Host:,Path:,To:RouteTargetReference{Kind:,Name:,Weight:nil,},AlternateBackends:[],Port:nil,TLS:nil,WildcardPolicy:,Subdomain:,},Status:RouteStatus{Ingress:[],},}'
      FAIL
      FAIL	github.com/eclipse/che-operator/pkg/controller/che	0.458s
      

      Built in jenkins & brew:

      Attachments

        Activity

          People

            oandriie Aleksander Andriienko
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: