solo-io / solo-kit

Toolkit for developing stateless, event-driven, declarative API systems
Apache License 2.0
69 stars 14 forks source link

K8s 1.26 upgrade #542

Closed inFocus7 closed 1 year ago

inFocus7 commented 1 year ago
inFocus7 commented 1 year ago

tried generating code locally with make clean generate-all -B, but got an error

"Thu, 18 May 2023 09:58:36 EDT: github.com/solo-io/solo-kit/generate.go:37"     generate failed!: &errors.withStack{
  error: &errors.withMessage{
    cause: &exec.ExitError{
      ProcessState: &os.ProcessState{
        pid:    74978,
        status: 0x00000100,
        rusage: &syscall.Rusage{
          Utime: syscall.Timeval{
            Sec:       0,
            Usec:      6536,
            Pad_cgo_0: [4]uint8{
              0x00, 0x00, 0x00, 0x00,
            },
          },
          Stime: syscall.Timeval{
            Sec:       0,
            Usec:      3659,
            Pad_cgo_0: [4]uint8{
              0x00, 0x00, 0x00, 0x00,
            },
          },
          Maxrss:   6389760,
          Ixrss:    0,
          Idrss:    0,
          Isrss:    0,
          Minflt:   784,
          Majflt:   0,
          Nswap:    0,
          Inblock:  0,
          Oublock:  0,
          Msgsnd:   0,
          Msgrcv:   0,
          Nsignals: 0,
          Nvcsw:    3,
          Nivcsw:   4,
        },
      },
      Stderr: []uint8{},
    },
    msg: "[protoc -I/Users/fabiangonz98/go/src/github.com/solo-io/solo-kit/vendor_any -I/Users/fabiangonz98/go/src/github.com/solo-io/solo-kit/vendor_any/github.com/solo-io/protoc-gen-ext/external -I/Users/fabiangonz98/go/src/github.com/solo-io/solo-kit/vendor_any/github.com/envoyproxy/protoc-gen-validate -I/Users/fabiangonz98/go/src/github.com/solo-io/solo-kit/vendor_any/github.com/solo-io/protoc-gen-ext -I/Users/fabiangonz98/go/src/github.com/solo-io/solo-kit/vendor_any/github.com/solo-io/solo-kit/api/external --openapi_out=yaml=true,single_file=false,include_description=true,enum_as_int_or_string=false,additional_empty_schema=core.solo.io.Status:/var/folders/5_/gy4y2g551_dcsykch8xy07sh0000gn/T/549943686/mock_resources -o /var/folders/5_/gy4y2g551_dcsykch8xy07sh0000gn/T/schema-gen-560651527 --include_imports --include_source_info github.com/solo-io/solo-kit/test/mocks/api/v1/mock_resources.proto] failed: github.com/solo-io/solo-kit/test/mocks/api/v1/mock_resources.proto: warning: Import google/protobuf/any.proto but not used.\ngithub.com/solo-io/solo-kit/test/mocks/api/v1/mock_resources.proto: warning: Import google/protobuf/struct.proto but not used.\nprotoc-gen-openapi: program not found or is not executable\n--openapi_out: protoc-gen-openapi: Plugin failed with status code 1.\n",
  },
  stack: &errors.stack{
    0x1051615ec,
    0x10516157d,
    0x10525dc9c,
    0x10525d9b4,
    0x10525cad8,
    0x10529515c,
    0x105293eac,
    0x1052974b0,
    0x104a4bfa0,
    0x104a78ec4,
  },
}
exit status 1

update: 🤦🏼 make update-all generated-code -B is the correct command

inFocus7 commented 1 year ago

looks like my codegen differs from the build-bot one :rip:

inFocus7 commented 1 year ago

missing some generated code that didn't occur on my end

solo-changelog-bot[bot] commented 1 year ago

Issues linked to changelog: https://github.com/solo-io/gloo/issues/8164

inFocus7 commented 1 year ago

Reverted my try to move tests to GH Actions + created an issue for it #543