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

Only get specific BEP events with -build_event_json_file #14054

Open
EitoWayve80 opened this issue Sep 28, 2021 · 2 comments
Open

Only get specific BEP events with -build_event_json_file #14054

EitoWayve80 opened this issue Sep 28, 2021 · 2 comments
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: feature request

Comments

@EitoWayve80
Copy link

EitoWayve80 commented Sep 28, 2021

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 want to get the uuid of the BuildStarted BEP event of a large CI build, so I am currently doing this by adding the -build_event_json_file flag to my runs and extracting the data from there, by reading the head of the built event json file and saving that. (BuildStarted is the first BEP event in the build event json).

However, a lot of the builds unfortunately time out, due to the large amount of time writing the build event json file. I'd like to get rid of this behaviour where it tries to upload the full file. Is there any way of doing this? I couldn't find anything on this, and no response on slack

Feature request

If it doesn't exist already, could the flag -build_event_json_file include a way to only dump the json for certain events? E.g. I just want the BEP Json for BuildStarted event

What operating system are you running Bazel on?

Ubuntu 20.04.3

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

  • We use a bazel remote cache in AWS
@benjaminp
Copy link
Collaborator

One way to do this would be to send --build_event_json_file output to pipe instead of a file and connect a program that retains only the desired events.

@sventiffe sventiffe added team-Remote-Exec Issues and PRs for the Execution (Remote) team untriaged labels Oct 5, 2021
@coeuvre coeuvre added type: feature request P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Apr 8, 2022
@github-actions
Copy link

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 github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Jun 13, 2023
@github-actions github-actions bot removed the stale Issues or PRs that are stale (no activity for 30 days) label Jun 28, 2023
@coeuvre coeuvre added P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) and removed P2 We'll consider working on this in future. (Assignee optional) labels Sep 7, 2023
@coeuvre coeuvre added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc and removed team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants