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

Building backend using Bazel fails on mac #638

Closed
yebrahim opened this issue Jan 5, 2019 · 1 comment · Fixed by #639
Closed

Building backend using Bazel fails on mac #638

yebrahim opened this issue Jan 5, 2019 · 1 comment · Fixed by #639
Assignees

Comments

@yebrahim
Copy link
Contributor

yebrahim commented Jan 5, 2019

Latest master, installed bazel throw homebrew:

$ bazel build //backend/...
INFO: Invocation ID: 1f680dcf-8507-4bfc-b2f3-41bfa0d7c68f
DEBUG: /private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/external/bazel_skylib/lib.bzl:30:1: WARNING: lib.bzl is deprecated and will go away in the future, please directly load the bzl file(s) of the module(s) needed as it is more efficient.
INFO: Analysed 176 targets (0 packages loaded, 0 targets configured).
INFO: Found 176 targets...
ERROR: /Users/me/dev/pipelines/backend/src/apiserver/storage/BUILD.bazel:42:1: GoCompile backend/src/apiserver/storage/darwin_amd64_stripped/go_default_test%/github.com/kubeflow/pipelines/backend/src/apiserver/storage.a failed (Exit 1) compile failed: error execu
ting command bazel-out/host/bin/external/io_bazel_rules_go/go/tools/builders/darwin_amd64_stripped/compile -sdk external/go_sdk -installsuffix darwin_amd64 -src backend/src/apiserver/storage/db.go -src ... (remaining 92 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
GoCompile: error running compiler: exit status 2
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/14/execroot/__main__/backend/src/apiserver/storage/db_fake.go:40:4: undefined: model.DBStatus
INFO: Elapsed time: 3.409s, Critical Path: 2.53s
INFO: 13 processes: 13 darwin-sandbox.
FAILED: Build did NOT complete successfully

I then re-generated the BUILD files using gazelle then tried to build again, but got this:

$ bazel build //backend/...
INFO: Invocation ID: 7482fdf4-e759-4d82-856e-0506efd47832
DEBUG: /private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/external/bazel_skylib/lib.bzl:30:1: WARNING: lib.bzl is deprecated and will go away in the future, please directly load the bzl file(s) of the module(s) needed as it is more efficient.
INFO: Analysed 176 targets (152 packages loaded, 1632 targets configured).
INFO: Found 176 targets...
ERROR: /Users/me/dev/pipelines/backend/src/common/client/api_server/BUILD.bazel:3:1: GoCompile backend/src/common/client/api_server/darwin_amd64_stripped/go_default_library%/github.com/kubeflow/pipelines/backend/src/common/client/api_server.a failed (Exit 1) comp
ile failed: error executing command bazel-out/host/bin/external/io_bazel_rules_go/go/tools/builders/darwin_amd64_stripped/compile -sdk external/go_sdk -installsuffix darwin_amd64 -src ... (remaining 84 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
GoCompile: error running compiler: exit status 2
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:35:28: cannot use runtime (type *"github.com/go-openapi/runtime/client".Runtime) as type "github.com/
kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientTransport in argument to experiment_client.New:
        *"github.com/go-openapi/runtime/client".Runtime does not implement "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientTransport (wrong type for Submit method)
                have Submit(*"github.com/go-openapi/runtime".ClientOperation) (interface {}, error)
                want Submit(*"github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientOperation) (interface {}, error)
/private/var/tmp/_bazel_yelsayed/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:35:28: cannot use "github.com/go-openapi/strfmt".Default (type "github.com/go-openapi/strfmt".Registry) as type "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Registry in argument to experiment_client.New:
        "github.com/go-openapi/strfmt".Registry does not implement "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Registry (wrong type for Add method)
                have Add(string, "github.com/go-openapi/strfmt".Format, "github.com/go-openapi/strfmt".Validator) bool
                want Add(string, "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Format, "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Validator) bool
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:51:65: cannot use parameters (type *"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".CreateExperimentParams) as type *"github.com/kubeflow/pipelines/backend/api/vendor/github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".CreateExperimentParams in argument to c.apiClient.ExperimentService.CreateExperiment
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:51:65: cannot use PassThroughAuth (type "github.com/go-openapi/runtime".ClientAuthInfoWriter) as type "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter in argument to c.apiClient.ExperimentService.CreateExperiment:
        "github.com/go-openapi/runtime".ClientAuthInfoWriter does not implement "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter (wrong type for AuthenticateRequest method)
                have AuthenticateRequest("github.com/go-openapi/runtime".ClientRequest, "github.com/go-openapi/strfmt".Registry) error
                want AuthenticateRequest("github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientRequest, "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Registry) error
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:64:17: cannot use response.Payload (type *"github.com/kubeflow/pipelines/backend/api/vendor/github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model".APIExperiment) as type *"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model".APIExperiment in return argument
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:75:62: cannot use parameters (type *"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".GetExperimentParams) as type *"github.com/kubeflow/pipelines/backend/api/vendor/github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".GetExperimentParams in argument to c.apiClient.ExperimentService.GetExperiment
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:75:62: cannot use PassThroughAuth (type "github.com/go-openapi/runtime".ClientAuthInfoWriter) as type "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter in argument to c.apiClient.ExperimentService.GetExperiment:
        "github.com/go-openapi/runtime".ClientAuthInfoWriter does not implement "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter (wrong type for AuthenticateRequest method)
                have AuthenticateRequest("github.com/go-openapi/runtime".ClientRequest, "github.com/go-openapi/strfmt".Registry) error
                want AuthenticateRequest("github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientRequest, "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Registry) error
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:88:17: cannot use response.Payload (type *"github.com/kubeflow/pipelines/backend/api/vendor/github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model".APIExperiment) as type *"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model".APIExperiment in return argument
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:99:63: cannot use parameters (type *"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".ListExperimentParams) as type *"github.com/kubeflow/pipelines/backend/api/vendor/github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service".ListExperimentParams in argument to c.apiClient.ExperimentService.ListExperiment
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:99:63: cannot use PassThroughAuth (type "github.com/go-openapi/runtime".ClientAuthInfoWriter) as type "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter in argument to c.apiClient.ExperimentService.ListExperiment:
        "github.com/go-openapi/runtime".ClientAuthInfoWriter does not implement "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientAuthInfoWriter (wrong type for AuthenticateRequest method)
                have AuthenticateRequest("github.com/go-openapi/runtime".ClientRequest, "github.com/go-openapi/strfmt".Registry) error
                want AuthenticateRequest("github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/runtime".ClientRequest, "github.com/kubeflow/pipelines/backend/api/vendor/github.com/go-openapi/strfmt".Registry) error
/private/var/tmp/_bazel_me/3f151afcbbadf3f1c35b4c73adfaf525/sandbox/darwin-sandbox/25/execroot/__main__/backend/src/common/client/api_server/experiment_client.go:99:63: too many errors
INFO: Elapsed time: 4.154s, Critical Path: 1.85s
INFO: 26 processes: 26 darwin-sandbox.

@neuromage any ideas? Haven't tried building on linux, so this might be mac only.
/area back-end

@neuromage
Copy link
Contributor

Let me take a look.
/assign @neuromage

Linchin pushed a commit to Linchin/pipelines that referenced this issue Apr 11, 2023
* Related to kubeflow/manifests#1063

* Sets up an autodeployment which uses the v3 version of the kustomize manifests
  so we can begin testing that.
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this issue Mar 11, 2024
* PipelineLoop nested validation logic fixed.

It was missing enablement of feature-flag enable-custom-task.
Also added nested task validation.

* added an example.

* add feature flag to reconciler context

* Added test, passing

Co-authored-by: tomcli <tommy.chaoping.li@ibm.com>
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants