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

add silent_annotations option to da_scala bazel functions #7668

Merged
merged 7 commits into from
Oct 13, 2020

Conversation

S11001001
Copy link
Contributor

@S11001001 S11001001 commented Oct 13, 2020

During #6907 it became obvious that a simpler way to declare that a build rule wished to enable @silent would be very nice, but that PR was already quite large enough. #7661's effective requirement of sed-based build file editing clarified that we should resolve this boilerplate.

So here it is: add silent_annotations = True to your Scala build if you want access to the @silent annotation, delete it if you don't need it anymore.

As a (desired) side effect of abstracting this, every use of silencer also acquires the checkUnused option in this PR to ensure that we clean up stray @silents.

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

@S11001001 S11001001 self-assigned this Oct 13, 2020
@S11001001 S11001001 added this to the Maintenance milestone Oct 13, 2020
@S11001001 S11001001 added the component/build-system Build system label Oct 13, 2020
@S11001001 S11001001 marked this pull request as ready for review October 13, 2020 13:44
@S11001001 S11001001 requested a review from cocreature as a code owner October 13, 2020 13:44
@S11001001 S11001001 requested a review from a user October 13, 2020 13:44
@S11001001 S11001001 requested a review from a user October 13, 2020 13:44
CHANGELOG_BEGIN
CHANGELOG_END
Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

name = "",
scalacopts = [],
plugins = [],
generated_srcs = [], # hiding from the underlying rule
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My hiding you mean we don’t pass it along? Do you know why we even have this field then?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's there to make sure it doesn't end up in kwargs.

Copy link
Contributor

@aherrmann-da aherrmann-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you

@mergify mergify bot merged commit bafde51 into master Oct 13, 2020
@mergify mergify bot deleted the 7661-silent-annotations-bzl branch October 13, 2020 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants