Upgrade Pekko to 2.0.0

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
scala
Domain
backend

Research direction

Start with build.sbt and the PekkoVersion setting, then review the release workflow and the public EvalonRunner API described in the issue. The trial reports that sbt clean test and scalafixAll --check pass with Pekko 2.0.0; run those checks and a real Claude scenario to exercise timer driven response_speed paths. Done means the dependency and release are updated to 0.4.0 with a note requiring Pekko 2.x and Java 17+.

Written by the indexing model from the issue text.

Description

enhancement

Summary

Pekko 2.0.0 is on Maven Central. We're on 1.7.1 (build.sbt, PekkoVersion). A trial upgrade showed no source changes are needed, but it breaks binary compatibility for downstream users, so it needs a breaking version bump.

Trial results

I set PekkoVersion = "2.0.0" in a throwaway worktree:

  • sbt clean test: all 50 tests pass. scalafixAll --check is clean. No compile errors or deprecation warnings.
  • Every Pekko artifact resolves to 2.0.0 (pekko-actor, pekko-actor-typed, pekko-slf4j), with no 1.x versions left. Pekko 2.0 is built against Scala 3.3.9, and sbt replaces it with our 3.9.0.
  • Pekko 2.0 needs Java 17 or newer. release.yml already uses Temurin 17.
  • The breaking changes in the 2.0 release notes are mostly in the Java DSL, persistence, streams, classic TypedActor, and remoting. We use none of those, only the Scala typed API (Behaviors, ActorContext, TimerScheduler, AskPattern, SpawnProtocol, ActorTestKit).

Why this is a breaking change for users

Pekko says 2.0 is not binary-compatible with 1.x. Our public API exposes Pekko types: EvalonRunner(system: ActorSystem[SpawnProtocol.Command]) takes a system the caller owns, and EvalonRunner.newSystem returns one. A project that uses evalon and also depends on Pekko 1.x would have to upgrade Pekko at the same time, or it would end up with mismatched Pekko jars and fail at runtime.

We use versionScheme := early-semver and the latest tag is v0.3.2, so the release with this change should be 0.4.0.

To do

  • Bump PekkoVersion to 2.0.0
  • Run at least one real scenario end to end against Claude. The unit tests use stubbed LLMs, so the timer-driven response_speed paths only run with real delays in an actual run.
  • Release as 0.4.0, with a release note that users must be on Pekko 2.x and Java 17+
Dominant language
Scala
Stars
0
Forks
7
Avg merge
2d 5h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforce/evalon

All issues in salesforce/evalon

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.