EngFlow / bazel_invocation_analyzer

A tool that automatically analyzes a Bazel build's profile and offers suggestions on how to make it faster.
https://analyzer.engflow.com
Apache License 2.0
90 stars 10 forks source link

Extract Bazel version from profile, if present #109

Closed saraadams closed 11 months ago

saraadams commented 11 months ago

Problem

Starting with Bazel version 6.1.0 (see https://github.com/bazelbuild/bazel/commit/7569b0df723b5397501ac63f01a37fd757921331), the Bazel profile includes the version of Bazel that generated the profile. There should be a DataProvider that extracts this information and makes it available for other analysis.

Additional information

Example entry in Bazel profile:

{"otherData":{"bazel_version":"release 6.1.2",...},"traceEvents":[...]}