Commit graph

25770 commits

Author SHA1 Message Date
Arnout Engelen
62cefddcc7
Don't run multi-jvm tests on GHA for Scala 3 (#30461) 2021-08-04 12:34:30 +02:00
Arnout Engelen
e127d1916f
Diagnose BalancingSpec failure (#30438)
For #30359
2021-08-02 14:23:47 +02:00
Renato Cavalcanti
4129a75db0
scala3: akka-cluster (#30417)
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2021-08-02 11:06:35 +02:00
Arnout Engelen
f3fb2a577d
LocalPubSubSpec: allow multiple debug messages (#30434)
* Fix MailboxSelectorSpec race

The comment already said there could be 2 dead letters, but the log
assertion failed when there was a second 'excess' one. Add a flag to
skip checking for excess log lines.

* LocalPubSubSpec: allow multiple debug messages

Fixes #30432 on top of #30429
2021-07-30 13:00:31 +02:00
Josep Prat
7faa33ff54
[Docs] Fix scala snippet for Sink.combine #30431 (#30433)
Refs: #30431
Use correct syntax for including a multi language snippet
2021-07-30 12:32:25 +02:00
Arnout Engelen
cca1c20d93
Fix MailboxSelectorSpec race (#30429)
The comment already said there could be 2 dead letters, but the log
assertion failed when there was a second 'excess' one. Add a flag to
skip checking for excess log lines.
2021-07-30 11:54:42 +02:00
Arnout Engelen
42d85a3019
Run akka-remote tests on Scala 3 (#30415)
* Run akka-remote tests on Scala 3

* Test the same scenario on Scala 2.13 and 3

A case object is `Serializable` on Scala 3 but not on Scala 2.13, so
this test would fail because no serializer is found on Scala 2.13,
and because the Java serializer is disabled on Scala 3.

By using a class instead, which is not `Serializable` both on Scala 2.13
and Scala 3, we test the same thing on both Scala versions.
2021-07-27 16:42:20 +02:00
Renato Cavalcanti
a71033a78e
fix: addItem method in EventSourcedBehavior docs (#30419) 2021-07-27 10:48:46 +02:00
Arnout Engelen
8d07c055ec
Fix race in RoutersTest (#30428)
Refs #30424
2021-07-26 20:13:40 +02:00
Renato Cavalcanti
8e965565a1
use GH Actions to compile and tests with Scala 3 (#30427)
* use GH Actions to compile and tests with Scala 3

* Update .github/workflows/scala3-build.yml

Co-authored-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>

* rename .jvmopts-travis to .jvmopts-ci

* Restore the whitesource stage

* Small updates to gh action workflow

* Mark BoundedBlockingQueueSpec timing-sensitive and exclude

* Avoid race condition stopping/starting test actors

Co-authored-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
Co-authored-by: Ignasi Marimon-Clos <ignasi@lightbend.com>
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2021-07-26 14:21:10 +02:00
Renato Cavalcanti
d7df61823f
enable all tests that are passing with scala 3 (#30423) 2021-07-23 17:45:15 +02:00
Lukas Rytz
9db28c68a7
Run tests for actors and typed actors on Scala 3 (#30283)
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-07-23 12:31:45 +02:00
Arnout Engelen
186ace214b
akka-paradox: update to 0.39 (#30420) 2021-07-23 10:23:49 +02:00
Johannes Rudolph
82aa15e6ab
io: probe TCP socket when reading before registering interest (#30354)
Just asking once for more data is cheaper than instantly updating epoll.
2021-07-22 10:32:18 +02:00
Johan Andrén
70ba0a1af0
Akka Remote compiling on Scala 3.0 (#30361)
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2021-07-21 20:24:33 +02:00
Arnout Engelen
083303266e
Test Akka Discovery with Scala 3 (#30410) 2021-07-21 09:07:50 +02:00
Arnout Engelen
83c6e9506b
Run akka-testkit tests on Scala 3 (#30407)
Already worked, just adding it to CI
2021-07-20 20:39:26 +02:00
Arnout Engelen
fc1a375f51
Compile akka-serialization-jackson with Scala 3 (#30408)
Tests compile but one test fails - possibly because of the mixed Jackson
versions. Took inspiration from #30361

Refs #30243
2021-07-20 19:14:23 +02:00
Arnout Engelen
ac70b1db38
sharding: actively signal 'region stopped' to the coordinator (#30402) 2021-07-20 12:01:53 +02:00
Arnout Engelen
1dc345896c
Test akka-coordination on Scala 3 (#30409) 2021-07-20 11:10:24 +02:00
Arnout Engelen
f7cc3a8297
Update genjavadoc (#30411)
To fix the publish failure introduced by #30302
2021-07-20 11:08:47 +02:00
Scala Steward
9cd97b494f
Update scala-library to 2.13.6 (#30302)
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2021-07-19 20:33:22 +02:00
Arnout Engelen
1e3903bc2c
compile akka-coordination with scala3 (#30386)
Unfortunately the tests reveal a problem: a duplicate 'get' static
forwarder method is generated on the `LeaseProvider` class, which
produces a problem getting the extension from Java. To be
investigated, but let's at least start checking compilation.

Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-07-19 17:09:48 +02:00
Arnout Engelen
29d7f6777e
Compile akka-discovery with Scala 3 (#30396) 2021-07-19 14:14:56 +02:00
Arnout Engelen
276778e157
Compile akka-actor-testkit with scala 3 (#30395)
Interestingly the Java code in the tests now doesn't compile, so something
around generics might still be wrong.
2021-07-19 13:10:48 +02:00
Johan Andrén
9d4e838efa
fix: Defer coordinator stop until region graceful stop has completed … (#30338)
* fix: Defer coordinator stop until region graceful stop has completed #28917

* Added multi jvm test

* Formatting

* Also send GracefulShutdown to region if it hasn't started gracefully shutting down yet
2021-07-19 12:34:28 +02:00
Johan Andrén
79cff55685
fix: Actually set halfClosed in half closed sample (#30404) 2021-07-19 12:22:18 +02:00
Andrei Arlou
d2345ef920
Fix deprecated links in osgi.md (#30405) 2021-07-19 10:46:43 +02:00
Scala Steward
412592f2cc
Update lz4-java to 1.8.0 (#30381) 2021-07-16 10:29:33 +02:00
Kris Kalavantavanich
f43e5e6054
Remove the extra bracket from testing documentation (#30397) 2021-07-14 12:54:25 +02:00
Arnout Engelen
0ad1783017
Hide private members in documentation (#30370)
Co-Authored-By: Arnout Engelen <arnout@bzzt.net>

Co-authored-by: Andrei Arlou <andrei.arlou@gmail.com>
2021-07-13 12:25:17 +02:00
Johan Andrén
33e263e731
Akka Stream TCK tests on Scala 3.0 (#30360)
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-07-12 19:22:58 +02:00
Scala Steward
8d5a4604f9
Update metrics-core, metrics-jvm to 4.1.24 (#30379) 2021-07-12 18:47:28 +02:00
Scala Steward
61f34e9ce3
Update sbt-scalafix to 0.9.29 (#30294) 2021-07-12 18:47:11 +02:00
Scala Steward
57dda65286
Update sbt-assembly to 1.0.0 (#30295) 2021-07-12 18:46:56 +02:00
Arnout Engelen
9b5aad942f
Share source directory between Scala 2.13 and Scala 3 (#30384) 2021-07-12 18:32:01 +02:00
Arnout Engelen
b65f02e6b4
Compile some more subprojects with scala3 on travis (#30385)
Refs #30243
2021-07-12 18:26:37 +02:00
eyal farago
4f059265f1
Akka 30374 flat map prefix attributes propagation (#30388) 2021-07-12 17:04:14 +02:00
Scala Steward
59e3bc8648
Update jul-to-slf4j, log4j-over-slf4j, ... to 1.7.31 (#30383) 2021-07-12 16:19:42 +02:00
Scala Steward
36f1a2bafe
Update commons-io to 2.10.0 (#30377) 2021-07-12 15:27:43 +02:00
franciscolopezsancho
bfbcef13de
missing line (#30390) 2021-07-12 14:37:46 +02:00
Patrik Nordwall
a219987801
benchmark: ByteString append and builder (#30313) 2021-07-12 11:53:08 +02:00
Ryan Burke
466802c641
Update scala-java8-compat to 1.0.0 (#30375)
The compat library added an `early-semver` versionScheme which means
that 1.0.0 is marked as binary incompatible with any version lower
than 0.9.1 - even though it's not.

For example:

```
[error] (update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]
[error] 	* org.scala-lang.modules:scala-java8-compat_2.13:1.0.0 (early-semver) is selected over 0.9.0
[error] 	    +- com.github.blemale:scaffeine_2.13:4.1.0            (depends on 1.0.0)
[error] 	    +- com.typesafe.akka:akka-actor_2.13:2.6.14           (depends on 0.9.0)
```

The `scalaModuleMimaPreviousVersion` has been set to `0.9.1` in the project, so upgrading
Akka to this should allow it to work with a lot of other libraries who have already done
the major update (supports Scala 3) to 1.0.0.
2021-07-09 15:19:18 +02:00
Scala Steward
3caa219dd5
Update sbt-reproducible-builds to 0.28 (#30380) 2021-07-09 15:18:10 +02:00
Scala Steward
aec7479665
Update sbt to 1.5.4 (#30382) 2021-07-09 15:12:04 +02:00
Patrik Nordwall
8468e6ae03
allow minor versions after Scala 3.0 (#30331) 2021-07-09 10:48:14 +02:00
economist
0bafbce327
stream: fix client-side mutual TLS bug (#29534)
Connected issues:
https://github.com/lightbend/ssl-config/issues/62
https://github.com/akka/akka-http/issues/1433

Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-07-08 09:51:53 +02:00
Johan Andrén
0559165b3d
doc: make it clear inputBuffer has no effect in sample #30332 (#30337) 2021-07-07 15:17:57 +02:00
Scala Steward
3594faf646
Update gson to 2.8.7 (#30296) 2021-07-07 13:07:57 +02:00
Johan Andrén
3a3e643e07
akka-stream compiling on Scala 3 (#30324)
Changes:
* Private constructor for case class means private apply in Scala 3
* Logger class with Any instead of wildcard where needed
* Explicit import of internal implicit conversion import SinkToCompletionStage
* Hopefully source and binary compatible Scala 3 signature for GraphApply.create methods
* ZipLatestWith leaking private type
* Auto apply-to-lambda made explicit
* Internal async callback event class covariant
* Hub leaking private type
* Remove cycles in stream Buffer classes
* Avoid cyclic import in ResizableMultiReaderRingBuffer
* Safe cast of Subscribers
* Explicit import of internal implicit conversion SourceToCompletionStage
* Ambigous field name and method
* recover delegates using PF from javadsl not inferred, made explicit
* TcpStage completing promise with wrong type
* Collect aggregator empty value cannot be underscore with type ascription
* Some type alias shenanigans in QueueSink removed
* Explicit type on effectiveMaximumBurst in Throttle
* Override method return type not inferred in GraphInterpreter
* MutableCollectorState.accumulated getter got wrong type somehow
* TLS actor fallback case only applicable to null
* Some internal unchecked pattern matching removed
* Ok that createGraph is not present in Java API
* Separate impl per language for implicit actor system apply
2021-07-06 18:01:41 +02:00