Skip to content
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

experimental_execution_graph_log_path doesn't support relative paths #22437

Open
emaxx-google opened this issue May 17, 2024 · 0 comments
Open
Labels
team-Performance Issues for Performance teams type: bug untriaged

Comments

@emaxx-google
Copy link

Description of the bug:

When specifying a relative path, like --experimental_execution_graph_log_path=graph.log, the resulting file (in this example, graph.log) ends up being created not in the project's directory, but rather in ~/.cache/bazel/_bazel_<user>/<hash>/.

This is surprising and different from how other flags, like --profile or --execution_log_binary_file, work.

  1. The workaround is to pass an absolute file path to this flag.

Which category does this issue belong to?

Core

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

bazel build <...> \
    --experimental_enable_execution_graph_log \
    --experimental_execution_graph_log_dep_type=all \
    --experimental_execution_graph_log_path=graph.log

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 7.1.0

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

No response

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

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

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

No response

@github-actions github-actions bot added the team-Core Skyframe, bazel query, BEP, options parsing, bazelrc label May 17, 2024
@haxorz haxorz added team-Performance Issues for Performance teams and removed team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Performance Issues for Performance teams type: bug untriaged
Projects
None yet
Development

No branches or pull requests

5 participants