bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.2k stars 4.06k forks source link

An `--execution-log-level=` flag that determines the level of execution logging #13269

Open Buzz-Lightyear opened 3 years ago

Buzz-Lightyear commented 3 years ago

ATTENTION! Please read and follow:

  • if this is a question about how to build / test / query / deploy using Bazel, or a discussion starter, send it to bazel-discuss@googlegroups.com
  • if this is a bug or feature request, fill the form below as best as you can.

Description of the problem / feature request:

I'd like an --execution-log-level= flag that determines the level of execution logging we'd like. Currently there's a single --execution_log_binary_file which is pretty large and contains more info than we might need at times.

Feature requests: what underlying problem are you trying to solve with this feature?

Given the option to set the execution log level, customers can prioritize how much information they need in the execution logs. The smaller execution log that I have in mind contains just the mnemonic and runner fields (We want to get granular remote cache hit stats)

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Replace this line with your answer.

What operating system are you running Bazel on?

Mac

What's the output of bazel info release?

 smuthu  in  ~/Sandbox/learning-ios   on branch  master   > bazel info release
INFO: Using Bazel Remote listening on 127.0.0.1:64126
INFO: Running Bazel version 3.7.0
INFO: Invocation ID: f6042bf5-0c8b-471c-b186-734140b26e4b
release 3.7.0

If bazel info release returns "development version" or "(@non-git)", tell us how you built Bazel.

Replace this line with your answer.

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

https://github.com/bazelbuild/bazel.git
05c4aaa1cb6cb0943543aee6bb371124d5ca1179
05c4aaa1cb6cb0943543aee6bb371124d5ca1179

Have you found anything relevant by searching the web?

There are couple of open issues about remote cache hit metrics but none about changing the size of execution logs

Any other information, logs, or outputs that you want to share?

Not in particular

philwo commented 2 years ago

@meisterT Do you know if there is a way to get this information using currently available features?

meisterT commented 2 years ago

I don't think so; moving it to our team anyway.

altonchuzhan commented 2 years ago

hi, are there any ways to get remote cache hit status of one specific target.

github-actions[bot] commented 1 year ago

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

github-actions[bot] commented 1 year ago

This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team (@bazelbuild/triage). Thanks!