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

Enable fatal warnings in CI #830

Merged
merged 9 commits into from
Jul 3, 2019
Merged

Enable fatal warnings in CI #830

merged 9 commits into from
Jul 3, 2019

Conversation

2m
Copy link
Member

@2m 2m commented Jun 18, 2019

Purpose

Enables fatal warnings in CI, so unused import and other warnings do not slip through to master.

@2m 2m added this to the invalid/not release-bound milestone Jun 18, 2019
@ennru
Copy link
Member

ennru commented Jun 18, 2019

For Scala 2.13 there are a lot of warnings right now. Some will be easier to solve once 2.13.1 comes along. I suggest not enabling it for Scala 2.13.

Maybe the contributor's advice needs to talk about this. The Travis stage names should probably show that it is enabled to make it less surprising.

@2m
Copy link
Member Author

2m commented Jun 18, 2019

Alright.

I also noticed warnings like these:

[warn] /home/martynas/projects/alpakka-kafka/tests/src/test/scala/akka/kafka/internal/ProducerSpec.scala:534:20: method close in trait Producer is deprecated: see corresponding Javadoc for more information.
[warn]       .when(result.close(mockito.ArgumentMatchers.any[Long], mockito.ArgumentMatchers.any[TimeUnit]))
[warn]             

but when browsing into the Apache Kafka Producer code from IntelliJ no deprecation tag was on the methods. There was a mismatch between versions somewhere.

@ennru
Copy link
Member

ennru commented Jun 18, 2019

That is interesting. I see kafka-clients-2.2.0 being pulled in. There it is deprecated in favour of close(Duration).

@ennru
Copy link
Member

ennru commented Jun 18, 2019

The schema registry pulls in Kafka 2.2.0 see tests/Test/dependencyTree.
The fatal warnings can't be easily applied to doc tasks right now...

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

LGTM. Great find.

@ennru
Copy link
Member

ennru commented Jun 19, 2019

But some more work to do...

@2m
Copy link
Member Author

2m commented Jun 21, 2019

Collection convertion deprecation warnings will go away, once scala/scala-collection-compat#217 is released and we start using it.

@ennru
Copy link
Member

ennru commented Jun 27, 2019

What about merging this without enabling fatal-warnings for now?

@2m
Copy link
Member Author

2m commented Jun 27, 2019

Validation should pass now after disabling fatal-warnings in scaladoc.

@2m 2m force-pushed the wip-ci-fatal-warnings-2m branch from 580d29d to 7d6fe87 Compare June 28, 2019 14:01
@2m 2m force-pushed the wip-ci-fatal-warnings-2m branch from 7b4065b to 024431b Compare July 1, 2019 05:38
@2m 2m merged commit b5cc942 into akka:master Jul 3, 2019
@2m 2m deleted the wip-ci-fatal-warnings-2m branch July 3, 2019 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants