-
Notifications
You must be signed in to change notification settings - Fork 328
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
run tests for pekko 1.1 #1362
base: master
Are you sure you want to change the base?
run tests for pekko 1.1 #1362
Conversation
It's easier to see what's going wrong by looking at scala 2.12, since that's failing fewer tests. We instrument the message buffer nodes with: onType("org.apache.pekko.util.MessageBuffer$Node")
.mixin(classOf[HasContext.Mixin])
.advise(isConstructor, classOf[CaptureCurrentContextOnExit])
.advise(method("apply"), classOf[InvokeWithCapturedContext]) which adds a context store to each message buffer node and instantiates it from the environment context on construction. This part works. What doesn't work is the It may be the case that we can simply only support pekko 1.1 instrumentation in scala 3, although that's certainly not the ideal outcome... |
So far, there are no great solutions. I have seen some similar issues with https://github.com/pjfanning/micrometer-pekko (itself a fork of Kamon from years ago). I decompiled a few Pekko classes for Scala 2.13 and the necessary methods for the instrumentation still seemed to be in the classes and in the call traces but still the instrumentation missed certain calls in practise. Scala 2.13 users, in particular, and maybe Scala 2.12 users who really need Kamon can consider
There are a few other projects out there that offer Pekko metrics that don't rely on instrumenting the classes at runtime but they require code changes to your code base to uptake. |
Upstream changes in pekko are holding. I wonder if we should run some more automatic test on the nightlies to catch future changes earlier. I imagine pekko support is one of the bigger use cases of Kamon... |
No harm in testing against Pekko snapshots. The enabling of Scala 2 inlining was a big change and it would be rare for us to take on a large change like that. |
Compiler might one day decide to inline something else we were depending on, and/or internals might change more. As you know I'd rather we had long term documented bindings, but I'm sure we both know how long that might take to materialise |
67ed95c
to
35ac670
Compare
Pushed a bumped pekko for pekko-http tests with failures |
35ac670
to
f49cf61
Compare
Working now with upstream changes |
Adding pekko 1.1 to tests to catch the regressions.
This fails various tests -- especially for scala 2.13, although a couple for 2.12 as well -- because of pekko's decision to enable inlining in the build process (cf pjfanning/sbt-pekko-build#2). I have run the tests with a locally-published version of pekko where I've set
-Dpekko.no.inline=true
and everything passes. Workarounds are, as yet, unclear... @pjfanning anything you'd be able to suggest?