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

support jq for mac in bigquery_test #4856

Merged
merged 1 commit into from
Oct 3, 2017

Conversation

BenTheElder
Copy link
Member

This works but it's not necessarily ideal and test-infra Bazel usage on macOS still really only works from Planter for now 🤷‍♂️

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 3, 2017
@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 3, 2017
@BenTheElder
Copy link
Member Author

/area bazel
/shrug
/joke

@k8s-ci-robot
Copy link
Contributor

@BenTheElder: What do you do when a blonde throws a grenade at you? Pull the pin and throw it back.

In response to this:

/area bazel
/shrug
/joke

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.

metrics/BUILD Outdated
@@ -13,17 +13,38 @@ filegroup(
tags = ["automanaged"],
)

config_setting(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to put these in the WORKSPACE instead and then use the correct URL depending on the config setting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These suggest not but I'll verify:
bazelbuild/bazel#1482
bazelbuild/bazel#1485

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I get an error containing config_setting cannot be in the WORKSPACE file
At least the jq OSX binary is only 635kb.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it looks like the only way to do this is to create a repository_rule, which is unfortunate.

that's probably generalizable and reusable, though I don't know if anyone has done that yet - seems like everyone rolls their own.

@BenTheElder
Copy link
Member Author

fixes #4850

metrics/BUILD Outdated
}),
data = select({
":k8": [
":all-srcs",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

factor ":all-srcs" out of the select.

also, this should really be glob(["configs/*"]) rather than ":all-srcs".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, had to also include README.md. I'm not sure if the way I wrote it is idiomatic or not.

@ixdy
Copy link
Member

ixdy commented Oct 3, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 3, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, ixdy

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

@BenTheElder
Copy link
Member Author

agh travis! reminder to finish #1342

@BenTheElder BenTheElder closed this Oct 3, 2017
@BenTheElder BenTheElder reopened this Oct 3, 2017
@k8s-ci-robot k8s-ci-robot merged commit 4a9fbce into kubernetes:master Oct 3, 2017
@BenTheElder BenTheElder deleted the jq4darwin branch October 3, 2017 23:19
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. area/bazel cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. ¯\_(ツ)_/¯ ¯\\\_(ツ)_/¯
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants