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

dev: create an alias for buildtest #74457

Closed
knz opened this issue Jan 5, 2022 · 2 comments
Closed

dev: create an alias for buildtest #74457

knz opened this issue Jan 5, 2022 · 2 comments
Labels
A-build-system C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Comments

@knz
Copy link
Contributor

knz commented Jan 5, 2022

The buildtest command, available via the Makefile, is useful to complement build (or buildshort) to verify that all the code in go packages can be compiled without errors.

We want this target to check the build process, but without the overhead of actually running the test.

Ricky has explained in this comment that we can obtain this with the following command:

bazel query 'kind(go_test, pkg/whatever/...)' | xargs dev build

However this is cumbersome to type and hard to remember.

Instead, the dev command should contain a shorthand alias for it.

cc @rickystewart @irfansharif

Jira issue: CRDB-12091

@knz knz added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-build-system labels Jan 5, 2022
@irfansharif
Copy link
Contributor

Haven't investigated, but there's also https://docs.bazel.build/versions/main/command-line-reference.html#flag--build_tests_only that might be relevant.

@irfansharif
Copy link
Contributor

dev build tests is now a thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-system C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Projects
None yet
Development

No branches or pull requests

3 participants