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

fix jmh Microbenchmarks #8990

Merged
merged 3 commits into from Mar 2, 2019
Merged

Conversation

jtjeferreira
Copy link
Contributor

Pull Request Checklist

Helpful things

Purpose

Fixes p.microbenchmark.it.HelloWorldBenchmark when using akka-http-2 (ak-20-enc) and akka http1.1 encrypted (ak-11-enc)

Background Context

ak-20-enc was failing with a java.lang.ClassNotFoundException: akka.http.scaladsl.Http2 exception because of missing akka-http2-support jar.
ak-11-enc was failing with a javax.net.ssl.SSLPeerUnverifiedException: Hostname localhost not verified: which was solved by setting the a dumb hostnameVerifier in the OkHttp client

@jtjeferreira jtjeferreira mentioned this pull request Jan 25, 2019
8 tasks
@marcospereira
Copy link
Member

Thank you, @jtjeferreira. Is it possible to configure our script to get these problems?

https://github.com/playframework/playframework/blob/master/framework/bin/validate-microbenchmarks

@jtjeferreira
Copy link
Contributor Author

Thank you, @jtjeferreira. Is it possible to configure our script to get these problems?

/framework/bin/validate-microbenchmarks@master

I dont have a lot of experience with sbt-jmh, so we should investigate how to make the "test" fail instead of being a success... If that is not possible we would have to parse the console output?

@jtjeferreira
Copy link
Contributor Author

hey @marcospereira, found a solution! see 80ed1fc (that should fail)

@jtjeferreira
Copy link
Contributor Author

and now I pushed the fix to the tests... 82e1972

Copy link
Member

@marcospereira marcospereira left a comment

Choose a reason for hiding this comment

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

LGTM.

Thank you, @jtjeferreira.

I've rebased against master and we can merge when green.

@gmethvin gmethvin merged commit 524aa8b into playframework:master Mar 2, 2019
@dwijnand
Copy link
Member

2.7.x 985ee6a

dwijnand pushed a commit that referenced this pull request Mar 12, 2019
# Pull Request Checklist

* [X] Have you read [How to write the perfect pull request](https://github.com/blog/1943-how-to-write-the-perfect-pull-request)?
* [X] Have you read through the [contributor guidelines](https://www.playframework.com/contributing)?
* [X] Have you signed the [Lightbend CLA](https://www.lightbend.com/contribute/cla)?
* [ ] Have you referenced any issues you're fixing using [commit message keywords](https://help.github.com/articles/closing-issues-using-keywords/)?
* [X] Have you added copyright headers to new files?
* [X] Have you checked that both Scala and Java APIs are updated?
* [X] Have you updated the documentation for both Scala and Java sections?
* [X] Have you added tests for any changed functionality?

# Helpful things

## Purpose

Fixes `p.microbenchmark.it.HelloWorldBenchmark` when using akka-http-2 (ak-20-enc) and akka http1.1 encrypted (ak-11-enc)

## Background Context

`ak-20-enc` was failing with a `java.lang.ClassNotFoundException: akka.http.scaladsl.Http2` exception because of missing akka-http2-support jar.
`ak-11-enc` was failing with a `javax.net.ssl.SSLPeerUnverifiedException: Hostname localhost not verified:` which was solved by setting the a dumb `hostnameVerifier` in the OkHttp client


(cherry picked from commit 524aa8b)
@marcospereira marcospereira added this to the Play 2.7.1 milestone Apr 3, 2019
@dwijnand dwijnand modified the milestones: Play 2.7.1, Play 2.8.0-M1 May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants