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

tolerate cross-platform building of crio/cgroup build logic #16599

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Sep 28, 2017

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 28, 2017
@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

@stevekuznetsov @smarterclayton ptal

@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

/unassign @gabemontero @mfojtik
/assign @stevekuznetsov @smarterclayton

@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

/retest

@stevekuznetsov
Copy link
Contributor

Cross looks to be failing in a similar way

@stevekuznetsov
Copy link
Contributor

@bparees got lucky this time:

hack/build-cross.sh
++ Building go targets for linux/amd64: images/pod cmd/dockerregistry cmd/gitserver vendor/k8s.io/kubernetes/cmd/hyperkube pkg/network/sdn-cni-plugin vendor/github.com/containernetworking/cni/plugins/ipam/host-local vendor/github.com/containernetworking/cni/plugins/main/loopback examples/hello-openshift
++ Building go targets for linux/amd64: cmd/openshift cmd/oc cmd/kubefed cmd/template-service-broker
++ Building go targets for darwin/amd64: cmd/openshift cmd/oc cmd/kubefed cmd/template-service-broker
vendor/github.com/google/cadvisor/container/common/inotify_watcher.go:20:2: no buildable Go source files in /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/exp/inotify
[ERROR] PID 11044: hack/lib/build/binaries.sh:228: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" "${nonstatics[@]}"` exited with status 1.
[INFO] 		Stack Trace: 
[INFO] 		  1: hack/lib/build/binaries.sh:228: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" "${nonstatics[@]}"`
[INFO] 		  2: hack/lib/build/binaries.sh:158: os::build::internal::build_binaries
[INFO] 		  3: hack/build-cross.sh:79: os::build::build_binaries
[INFO]   Exiting with code 1.
[ERROR] PID 6: hack/lib/build/binaries.sh:152: `local -a binaries=("$@")` exited with status 1.

@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

vendor/github.com/google/cadvisor/container/common/inotify_watcher.go:20:2: no buildable Go source files in /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/exp/inotify
[ERROR] PID 11044: hack/lib/build/binaries.sh:228: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" "${nonstatics[@]}"` exited with status 1.

hm. not even something my previous or new PRs touched.

@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Sep 28, 2017

hack/build-cross.sh succeeds for me locally.

@bparees bparees force-pushed the cross_platform branch 3 times, most recently from de348d5 to 1e027f8 Compare September 28, 2017 22:45
@stevekuznetsov
Copy link
Contributor

cross is happy

thanks @bparees

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 29, 2017
@bparees
Copy link
Contributor Author

bparees commented Sep 29, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Sep 29, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Sep 29, 2017 via email

@smarterclayton smarterclayton added kind/bug Categorizes issue or PR as related to a bug. queue/critical-fix labels Sep 29, 2017
@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-merge-robot openshift-merge-robot merged commit 607d0db into openshift:master Sep 29, 2017
@mfojtik mfojtik mentioned this pull request Oct 2, 2017
@bparees bparees deleted the cross_platform branch October 4, 2017 14:30
@shantharama
Copy link

build is still failing for me on Mac here is the error

hack/build-cross.sh
[INFO] Detected go version: go version go1.10 darwin/amd64.
[WARNING] Detected golang version doesn't match required Go version.
[WARNING] This version mismatch could lead to differences in execution between this run and the CI systems.
[INFO] Detected go version: go version go1.10 darwin/amd64.
[WARNING] Detected golang version doesn't match required Go version.
[WARNING] This version mismatch could lead to differences in execution between this run and the CI systems.
[INFO] Detected go version: go version go1.10 darwin/amd64.
[WARNING] Detected golang version doesn't match required Go version.
[WARNING] This version mismatch could lead to differences in execution between this run and the CI systems.
++ Building go targets for linux/amd64: cmd/openshift cmd/oc cmd/oadm cmd/template-service-broker vendor/k8s.io/kubernetes/cmd/hyperkube

github.com/openshift/origin/pkg/oc/util/tokencmd

pkg/oc/util/tokencmd/negotiator_gssapi.go:25:7: undefined: gssapi.Lib
pkg/oc/util/tokencmd/negotiator_gssapi.go:32:8: undefined: gssapi.Name
pkg/oc/util/tokencmd/negotiator_gssapi.go:34:7: undefined: gssapi.CtxId
pkg/oc/util/tokencmd/negotiator_gssapi.go:43:8: undefined: gssapi.CredId
[ERROR] PID 47025: hack/lib/build/binaries.sh:210: GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${pkgdir}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" -gcflags "${gogcflags}" "${nonstatics[@]}" exited with status 2.
[INFO] Stack Trace:
[INFO] 1: hack/lib/build/binaries.sh:210: GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${pkgdir}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" -gcflags "${gogcflags}" "${nonstatics[@]}"
[INFO] 2: hack/lib/build/binaries.sh:156: os::build::internal::build_binaries
[INFO] 3: hack/build-cross.sh:76: os::build::build_binaries
[INFO] Exiting with code 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. kind/delivery-blocker lgtm Indicates that a PR is ready to be merged. queue/critical-fix size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants