Does Bazel download artifacts in parallel with the build?

53 views
Skip to first unread message

Konstantin

unread,
Apr 24, 2024, 3:58:57 PMApr 24
to bazel-discuss
In my understanding Bazel downloads external workspaces lazily and in parallel with analysis and even execution of the targes which don't need those workspaces. 
Confusingly console output from hundreds of builds makes an impression that FIRST all externals are fetched and only THEN analysis/execution starts.

Can somebody please shed some light on it?

Do we loose anything if we move fetches to the separate pre-build step for the sake of better time accounting?

Konstantin

Joseph Gette

unread,
Jun 21, 2024, 7:23:50 AM (4 days ago) Jun 21
to bazel-discuss
It depends on version and/or whether you use Skymeld or not. Since bazel 7 analysis now happens in parallel to the build by default, in bazel 6 you can enable it with --experimental_merged_skyframe_analysis_execution

More details can be found here:
Reply all
Reply to author
Forward
0 new messages