Skip to content

Muzzle should fail at compile time if it fails at runtimeΒ #2554

@anuraaga

Description

@anuraaga

Currently, muzzle may fail at runtime even if the compile time check succeeds, for example if instrumentation refers to plugin classes in the AWS SDK. This seems to be a bug in muzzle - the muzzle extension declaration only specifies aws-core as an artifact, but it seems to also take in instrumentation's compileClasspath and can pass some checks that might fail in production. I think we should respect the muzzle declaration only for checks, not using the compile classpath - if extra dependencies are needed, they can be added to the muzzle block too, it's how to have a more robust check.

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