Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-8856

Build failure for rest-proxy

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Model Serving
    • None
    • False
    • None
    • False
    • Testable
    • No
    • No
    • No
    • Pending
    • None

      Build of component odh-mm-rest-proxy has been failing since we changed source code from  d07581b423f1c6b998b73c450465330f340c4776 to 99f375d714b0787c59bb38eb839ba1fc61ed8637 on date 2023-05-22

      I can re-produce it and get the same error locally with SHA1 99f375d714b0787c59bb38eb839ba1fc61ed8637:

      STEP 8/8: RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /go/bin/server ./proxy/
      # k8s.io/apimachinery/pkg/util/sets
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/byte.go:34:16: syntax error: unexpected [, expecting (
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/int.go:34:15: syntax error: unexpected [, expecting (
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/int32.go:34:17: syntax error: unexpected [, expecting (
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/int64.go:34:17: syntax error: unexpected [, expecting (
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/ordered.go:24:10: syntax error: unexpected |, expecting semicolon or newline or }
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/ordered.go:31:9: syntax error: unexpected |, expecting semicolon or newline or }
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/ordered.go:38:2: syntax error: unexpected ~, expecting method or interface name
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/ordered.go:45:2: syntax error: unexpected ~, expecting method or interface name
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/ordered.go:52:2: syntax error: unexpected ~, expecting method or interface name
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/set.go:24:12: syntax error: unexpected comparable, expecting ]
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/sets/set.go:24:12: too many errors
      note: module requires Go 1.19
      # k8s.io/apimachinery/third_party/forked/golang/reflect
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/third_party/forked/golang/reflect/deep_equal.go:376:7: undefined: reflect.Pointer
      note: module requires Go 1.19
      # k8s.io/apimachinery/pkg/conversion/queryparams
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/conversion/queryparams/convert.go:58:17: undefined: reflect.Pointer
      go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/conversion/queryparams/convert.go:142:7: undefined: reflect.Pointer
      note: module requires Go 1.19
      # sigs.k8s.io/json/internal/golang/encoding/json
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:96:31: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:177:35: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:428:37: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:937:48: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:1143:45: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:1160:42: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:1195:52: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/decode.go:1261:42: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/encode.go:158:16: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/encode.go:175:22: undefined: any
      go/pkg/mod/sigs.k8s.io/json@v0.0.0-20220713155537-f223a00ba0e2/internal/golang/encoding/json/encode.go:175:22: too many errors
      note: module requires Go 1.18
      Error: error building at STEP "RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /go/bin/server ./proxy/": error while running runtime: exit status 2
      

      Log from CPaaS Jenkins:

      https://jenkins-cpaas-rhods.apps.cpaas-poc.r6c9.p1.openshiftapps.com/job/rhods-1.28-rhel-8/job/managed-open-data-hub/job/odh-mm-rest-proxy/job/odh-mm-rest-proxy/11/console

       

      Since we cannot get a successful RHODS build by being blocked by this failure, we cannot have nightly build to QE, need to have this fix asap. 

              rh-ee-wenzhou Wen Zhou
              rh-ee-wenzhou Wen Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: