-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Create parent folder for build event protocol files #24822
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
1406708
to
110f864
Compare
Not sure why the PR fails under darwin, the errors look unrelated, e.g.:
Is this a known flakiness or is there something else I'm missing? |
Hi @agustinmista, Below testcase is failing can you please take a look. |
Hi @sgowroji! Please check my previous comment. If I understand correctly, the Is there any way to re-trigger those checks to discard a possible intermittency? |
@sgowroji can we re-run the failed checks to discard an intermittency? |
Hi!
Some of our CI workflows rely on the
--build_event_*_file
flags to store the BEP events for further postprocessing. Concretely, our.bazelrc
defines:The problem is that we output these events files into a
build
folder that is.gitignore
d, and hence doesn't exist by default on a fresh clone of our repo. This forces any script that invokes bazel to make sure tomkdir -p build
in advance.We believe this is something that could be elegantly solved on the bazel side by creating the parent
build
folder if it doesn't exist. And fortunately, there is support for this in the underlying call toInstrumentationOutput.createInstrumentationOutput
(added a couple of days ago in c13c669).This PR sets
createParent=true
in the underlying call toInstrumentationOutput.createInstrumentationOutput
made byBuildEventServiceModule.create
.We'll be happy to discuss about whether this should be the default behavior, or if it's worth it adding a new flag to enable it :)