-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
test with Pekko 1.1 releases #12662
base: main
Are you sure you want to change the base?
test with Pekko 1.1 releases #12662
Conversation
Issues in these tests.
|
Thanks, this will be definitely looked at 👍 |
I had a look at one test. play.api.libs.ws.ahc.AhcWSSpec The test case that fails involves using ahc-client to send a multipart message based on 2 sources (representing a data part and a file part). The server side receives the request but the file part parsed data is incomplete. It seems like the ahc client sends the right request data but it's possible that there could be boundary or whitespace issues that prevent the multipart parser from handling the request properly. |
From what I understand from the Pekko migration guide, we now need to specify the Pekko stream supervision strategy explicitly when using the the following code:
.splitWhen(_.isLeft)
.prefixAndTail(1) should now be: .splitWhen(_.isLeft)
.withAttributes(ActorAttributes.supervisionStrategy(Supervision.resumingDecider))
.prefixAndTail(1) |
@pjfanning There's another occurence of that function here: playframework/web/play-filters-helpers/src/main/scala/play/filters/csrf/CSRFActions.scala Line 187 in 7abd258
|
Hi @pjfanning I just had a look into this and tested with the 1.1.x Pekko release. This is what I tried but did not pass the .splitWhen(_.isLeft)
.withAttributes(ActorAttributes.supervisionStrategy(Supervision.resumingDecider))
.prefixAndTail(1) But when using the deprecated .splitWhen(SubstreamCancelStrategy.drain)(_.isLeft) So it seems that either the migration guide does not fully explain how to get the old behaviour back or there're still unresolved bugs in Pekko 1.1 ?
@mkurz Maybe we should just use the "deprecated" way of setting the cancel strategy for now until it's resolved in Pekko ? .splitWhen(SubstreamCancelStrategy.drain)(_.isLeft) |
@gwak @mdedetrich b447af5 fixed a lot of tests. There are still some other failures but I think at least one of them relates to upgrading Jackson (so unrelated to the internal Pekko changes). |
yes the failing tests having nothing to do with pekko anymore, they are all about the jackson upgrade. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Pekko 1.1.0 is out. Pekko HTTP 1.1.0 is not yet released but could possibly be released within a couple of weeks. The main thing blocking this is the fact that Play does not support the recent versions of Jackson - and Pekko 1.1.0 uses Jackson 2.17.
|
Pull Request Checklist
Helpful things
Fixes
Fixes #xxxx
Purpose
To check on whether Play builds cleanly with Pekko 1.1.0-M1
What does this PR do?
Background Context
Why did you take this approach?
References
Are there any relevant issues / PRs / mailing lists discussions?