-
Notifications
You must be signed in to change notification settings - Fork 140
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
Gerrit Windows job fails due to command is tool long (> 8k) #176
Comments
//cc @iirina @laszlocsomor @philwo Does anyone know why do we have to do a bazel query before bazel test?
Looks like it suppose to filter unnecessary tests by test_filter_tags, but from the CI output, it just fetchs all tests specified by tests .
|
@meteorcloudy Not sure - I once heard that the reason was that we want to have the list of targets in the log. But I find that to be not very useful, because it is often just a huge wall of text anyway. I never used that. Maybe remove it and see what happens? 😃 |
@meteorcloudy : Yes, Damien told me some months ago that the reason for the queries is that in some files we use test patterns which we need to expand. But I'm with Philipp, let's remove it and see if anything breaks. |
Thanks for the feedback! I'll try to remove it. |
https://github.com/bazelbuild/bazel/blob/master/scripts/ci/bazel-tests.json#L63 |
@meteorcloudy Can we rewrite that somehow? Just give a list of hard-coded known-good targets? This expression is basically unmaintainable (and probably unmaintained ;)) anyway this way. @aehlig Any idea on how to simplify the "tests that can be run on FreeBSD CI" expression? |
I found a "hacky" way to solve this without removing bazel query... What do you think? |
I agree, it's best we can remove this complex test patterns. |
WTF, that works? 🤣 |
Ough. That's gross. I like it. |
@philwo Yes... 😂 |
So how should we proceed? |
Would favor getting rid of the "bazel query" step and simplify the test expression. |
The new CI will (probably) no longer use "bazel query" to filter test targets, so we'll have to change the test configs to use simpler target specifications. |
Obsolete. |
Windows has a command line length limit of 8K.
We do a bazel query to get all tests targets, then pass them to a single bazel test command, when the targets are too many, the job will fail.
See https://ci.bazel.build/blue/organizations/jenkins/gerrit/detail/gerrit/2274/pipeline
This happened before for bazel-tests: bazelbuild/bazel#3742
The text was updated successfully, but these errors were encountered: