Skip to content

rules_detekt_dependencies is not cached properly, consumes 25 seconds for Bazel queries #132

Description

@artem-zinnatullin

Hi all, again! I'm investigating slow Bazel builds on our CI, tracing suggests that rules_detekt consumes about 25 seconds (!) during Bazel query we don't even have any rules_detektbuild action in the build graph nor build graph at all — justbazel query`.

image

It seems like it happens because rules_detekt dependencies that we pull via rules_jvm_external are not pinned so that users could override versions I guess, but without pinning we never cache them properly.

We should be able to come up either with a fix in rules_detekt or an instruction on workarounding this similar to https://blog.aspect.dev/avoid-eager-fetches

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions