Skip to content

cquery inherits from test not build#13491

Closed
illicitonion wants to merge 1 commit intobazelbuild:masterfrom
illicitonion:cquery-inherits-test
Closed

cquery inherits from test not build#13491
illicitonion wants to merge 1 commit intobazelbuild:masterfrom
illicitonion:cquery-inherits-test

Conversation

@illicitonion
Copy link
Copy Markdown
Contributor

@illicitonion illicitonion commented May 19, 2021

This makes directives like test --test_arg=foo present in .bazelrc files be
factored into the configuration hash for test targets.

See #13428 for extensive
context.

@google-cla google-cla Bot added the cla: yes label May 19, 2021
@jin jin added the team-Configurability platforms, toolchains, cquery, select(), config transitions label May 24, 2021
@gregestren gregestren self-requested a review June 22, 2021 19:06
@gregestren
Copy link
Copy Markdown
Contributor

Just want to confirm, after #13428 (comment), that this is the route you want to go.

Also a nitpick on the description: this means cquery picks up .bazelrc directives of the form:

test --some_flag

right?

For example, I expect cquery already picks up

build --test_arg=foo

but not

test --cpu=bar

Copy link
Copy Markdown
Contributor

@gregestren gregestren left a comment

Choose a reason for hiding this comment

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

@illicitonion illicitonion force-pushed the cquery-inherits-test branch from 6a6cc2a to 6d9f81e Compare June 29, 2021 11:00
This makes flags like `--test_arg` present in `.bazelrc` files be
factored into the configuration hash for test targets.

See bazelbuild#13428 for extensive
context.
@illicitonion illicitonion force-pushed the cquery-inherits-test branch from 6d9f81e to 91a9443 Compare June 29, 2021 12:02
@bazel-io bazel-io closed this in 20aff82 Jun 29, 2021
illicitonion added a commit to illicitonion/bazel that referenced this pull request Jul 13, 2021
This makes directives like `test --test_arg=foo` present in `.bazelrc` files be
factored into the configuration hash for test targets.

See bazelbuild#13428 for extensive
context.

Closes bazelbuild#13491.

PiperOrigin-RevId: 382143334
illicitonion added a commit to illicitonion/bazel that referenced this pull request Jul 13, 2021
This makes directives like `test --test_arg=foo` present in `.bazelrc` files be
factored into the configuration hash for test targets.

See bazelbuild#13428 for extensive
context.

Closes bazelbuild#13491.

PiperOrigin-RevId: 382143334
@dhalperi
Copy link
Copy Markdown
Contributor

This seems to have broken ibazel, with repro and descriptions in #13904. Maybe this is the intended behavior, and we/ibazel are now wrong about how to use cquery?

@illicitonion illicitonion deleted the cquery-inherits-test branch August 26, 2021 09:40
@illicitonion
Copy link
Copy Markdown
Contributor Author

This seems to have broken ibazel, with repro and descriptions in #13904. Maybe this is the intended behavior, and we/ibazel are now wrong about how to use cquery?

Sorry for the breakge! I don't think this is expected - let's follow up on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants