-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
tools: a number of targets are not cached and make bazel test //... slow #7437
Comments
they python targets are not really cacheable because they take in the whole repo and aren't properly hermetic, we've got lints in a separate job while we decide what to do with them. not sure about the velodrome / boskos tests. |
Looks like The |
The verify tests will cache, but only if nothing in your repo has changed. They're pretty un-bazely in that they depend on There was a proposed PR (kubernetes/repo-infra#46) to try to improve things slightly so we can have In the past, we've tagged these as (I personally think we shouldn't be running them with |
#7041 took care of all of that short of making them manual.
you can run bazel test ... with --config=unit or --config=lint
…On Tue, Mar 27, 2018 at 11:23 AM Jeff Grafton ***@***.***> wrote:
The verify tests will cache, but only if nothing in your repo has changed.
They're pretty un-bazely in that they depend on //:all-srcs, which
depends on the entire tree; this isn't really a use-case for which bazel is
designed. As a result, they have to be re-run anytime any file in the repo
changes.
There was a proposed PR (kubernetes/repo-infra#46
<kubernetes/repo-infra#46>) to try to improve
things slightly so we can have //:all-go-srcs and //:all-py-srcs etc,
though this starts to get unwieldy pretty quickly.
In the past, we've tagged these as manual, so bazel test ... doesn't run
them automatically. This has caused some complaints, since then the checks
might fail in PR tests, since you didn't remember to run them locally.
(I personally think we shouldn't be running them with bazel test ...;
maybe we can tag them as verify and then by default skip them, but allow
a bazel test --config=verify which includes them, perhaps.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7437 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4Bq4Yl-vJQk2RNjONwyYPrmSUtSmYyks5tioO6gaJpZM4S9YJl>
.
|
Yeah I guess I was hoping for one button that would do Go unit + Go lint + boilerplate + bazel verify, basically everything that I would generally hit if I were iterating on Prow, but not other targets. Maybe I'm just imagining a world where |
It's possible to do incremental/cached pylint results too, but probably not inside of bazel. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
No action items on this /close |
The majority of targets are cached without issue, but a couple (notably
pylint
) makebazel test //...
really slow and annoying. Here's a run with oneBAZEL.build
file changed between this run and the last one:We should figure out how to make
pylint
andspelling
andboilerplate
incremental or faster./cc @ixdy @BenTheElder @rmmh
The text was updated successfully, but these errors were encountered: