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

bindata in external bazel repository #75449

Closed
mariusgrigoriu opened this issue Mar 18, 2019 · 6 comments
Closed

bindata in external bazel repository #75449

mariusgrigoriu opened this issue Mar 18, 2019 · 6 comments
Labels
kind/design Categorizes issue or PR as related to design. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/testing Categorizes an issue or PR as relevant to SIG Testing.

Comments

@mariusgrigoriu
Copy link

e2e tests cannot be linked as an external bazel respository without some patching because bindata is generated with a prefix such as external/io_k8s_kubernetes.

We internally patch as follows, but I'm hoping we can upstream something more robust:

diff --git a/build/bindata.bzl b/build/bindata.bzl
index f21f42e577..28c0ef2df4 100644
--- a/build/bindata.bzl
+++ b/build/bindata.bzl
@@ -36,7 +36,7 @@ def go_bindata(
     outs = outs,
     cmd = """
     $(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
-      -o "$@" -pkg %s -prefix $$(pwd) %s $(SRCS)
+      -o "$@" -pkg %s -prefix external/io_k8s_kubernetes %s $(SRCS)
     """ % (pkg, " ".join(args)),
     tools = [
       "//vendor/github.com/jteeuwen/go-bindata/go-bindata",

Has anyone considered using the bindata rules from rules_go? https://github.com/bazelbuild/rules_go/blob/master/extras/bindata.bzl

@mariusgrigoriu mariusgrigoriu added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 18, 2019
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 18, 2019
@mariusgrigoriu
Copy link
Author

@kubernetes/sig-testing-proposals

@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. kind/design Categorizes issue or PR as related to design. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 18, 2019
@k8s-ci-robot
Copy link
Contributor

@mariusgrigoriu: Reiterating the mentions to trigger a notification:
@kubernetes/sig-testing-proposals

In response to this:

@kubernetes/sig-testing-proposals

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 16, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 16, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/design Categorizes issue or PR as related to design. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

No branches or pull requests

3 participants