-
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
Update bazel image to use multirepo-compatible bootstrap args #2731
Conversation
You can run bootstrap locally. Once you push the new image, you can run it on prow manually. Go to a recent job you want to run on https://prow.k8s.io. Click the ⟳ and download the YAML file at the end of the |
(This will obviously be made much easier in the future) |
Running locally won't tell me if the The prow tip is a good idea. |
jobs/ci-kubernetes-bazel-test.sh
Outdated
@@ -25,6 +25,6 @@ bazel clean --expunge | |||
make bazel-test && rc=$? || rc=$? | |||
|
|||
# Coalesce test results into one file for upload. | |||
"$(dirname "${0}")/../images/pull_kubernetes_bazel/coalesce.py" | |||
"$(dirname "${0}")/../images/bazelbuild/coalesce.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure there is a reason we don't just put coalesce.py into the bazelbuild image, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no reason, and it's a pain that your PR will fail tests because it can't find coalesce.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to undo my rename change, but I'm going to stick coalesce.py in the image, which will hopefully make this rename easier in a future change.
ce899a6
to
c152e84
Compare
PTAL. |
LGTM, have you run the test on prow? |
answer: nope, doesn't work: https://prow.k8s.io/log?pod=ci-test-infra-bazel-54459
|
Yay, we prevented a minor outage! |
jobs/ci-test-infra-bazel.sh
Outdated
@@ -41,6 +41,6 @@ case "${rc}" in | |||
*) echo "Unknown exit code: ${rc}" ;; | |||
esac | |||
|
|||
./images/pull_kubernetes_bazel/coalesce.py | |||
/coalesce.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that an absolute path reference like this is going to make this job harder to test locally (outside of the image). I don't know if that's a non-goal of this particular job, but in general, I thought we tried to have jobs that we could run using just bootstrap.py
or even just directly, if you've set up your environment properly.
How do you feel about stripping the leading slash and just making sure that the script is in $PATH
to find it? You'll likely have to add /
to the PATH
in the Dockerfile, but it seems like that would be more forgiving to local development.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair point, though I think
export TEST_TMPDIR="/root/.cache/bazel"
is already going to fail outside of docker.
long-term I think we want to convert this into a scenario, anyway.
It seems like |
|
yes, I expect that to work. it doesn't right now. |
@k8s-bot test this |
6286d99
to
23e2214
Compare
For fun, I also updated bazel and gcloud in the image. Things seem to work now, except that bazel 0.5.0 apparently doesn't work on the test-infra repo. |
potential fix for bazel 0.5 in pubref/rules_node#21. (We'll need to update our reference, too, of course) |
23e2214
to
f224d60
Compare
Additionally: * Update bazel to 0.5.0 * Update gcloud to 156.0.0 * Add coalesce.py to the bazelbuild image * Update test-infra jobs to use new bazelbuild image
f224d60
to
90341c7
Compare
It all seems to work correctly now. PTAL? |
/lgtm |
Additionally, update test-infra jobs to use new bazelbuild image.
Part of #2704.
I think this might work, but I have no idea how to test it. As such, I'm planning to test only on the test-infra repo to start.
/assign @spxtr