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
Use value tuples in Streams #3282
Use value tuples in Streams #3282
Conversation
@vasily-kirichenko not sure why exactly, but it looks like the Mono compilation stage is having some trouble with these changes. I think we're running an older version of Mono 5.0* - should we upgrade the Docker image we're using for compilation there to see if that solves the issue? Windows compilation appears to be working just fine. |
.NET Core compilation on Linux works fine too. |
I've never used Mono, and I've not found any mentions of Docker in build.fsx. How to do the upgrade? |
We run the Those images eventually get pushed up here: https://hub.docker.com/r/akkadotnet/mono-base/ We use Docker for a few things in our CI system, mostly hosting the Mono environment and running Akka.Persistence integration tests, but that stuff mostly happens invisibly on our TeamCity agents and isn't exposed directly in the build scripts. |
@vasily-kirichenko as @Aaronontheweb mentioned in the issue, this is quite a breaking change and should therefore target the v1.4 branch. BTW, thanks a lot for taking this one 😄 |
@marcpiechura done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks verg good overall, only a few small formatting remarks
@@ -498,7 +497,8 @@ protected override bool Receive(object message) | |||
.With<Complete>(OnComplete) | |||
.With<CompleteThenStop>(OnCompleteThenStop) | |||
.With<Boom>(() => { throw new Exception("boom"); }) | |||
.With<ThreadName>(()=>_probe.Tell(Context.Props.Dispatcher /*Thread.CurrentThread.Name*/)) // TODO fix me when thread name is set by dispatcher | |||
.With<ThreadName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert formatting and maybe put the comment in the line above.
Dispose(true); | ||
GC.SuppressFinalize(this); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that we can remove this part ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The same code is in the base class's Dispose method.
@@ -141,15 +154,20 @@ public void A_restart_with_backoff_source_should_backoff_before_restart() | |||
} | |||
|
|||
[Fact] | |||
public void A_restart_with_backoff_source_should_reset_exponential_backoff_back_to_minimum_when_source_runs_for_at_least_minimum_backoff_without_completing() | |||
public void | |||
A_restart_with_backoff_source_should_reset_exponential_backoff_back_to_minimum_when_source_runs_for_at_least_minimum_backoff_without_completing() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put it back in one line
{ | ||
"a", | ||
"b" | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer the single line and array syntax, but isn’t necessary
@@ -326,14 +344,13 @@ public void A_restart_with_backoff_sink_should_backoff_before_restart() | |||
} | |||
|
|||
[Fact] | |||
public void A_restart_with_backoff_sink_should_reset_exponential_backoff_back_to_minimum_when_source_runs_for_at_least_minimum_backoff_without_completing() | |||
public void | |||
A_restart_with_backoff_sink_should_reset_exponential_backoff_back_to_minimum_when_source_runs_for_at_least_minimum_backoff_without_completing() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back in one line
materializedValues.Add(atomic, materialized); | ||
} | ||
//else if (atomic is TlsModule) | ||
//{ | ||
//}) | ||
else if (atomic is GraphModule) | ||
{ | ||
var graph = (GraphModule) atomic; | ||
var graph = (GraphModule)atomic; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not also use assignment in the if statement ?
MaterializeGraph(graph, effectiveAttributes, materializedValues); | ||
} | ||
else if (atomic is GraphStageModule) | ||
{ | ||
var stage = (GraphStageModule) atomic; | ||
var stage = (GraphStageModule)atomic; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
# Conflicts: # src/core/Akka.Streams.Tests/Dsl/HubSpec.cs
no-brain auto refactoring
@marcpiechura all done. |
Going to pull the plug on our Mono builds, I think; been talking with @Horusiath about dropping support for it since it affects PRs like this one and our |
@Aaronontheweb any timeframe for removing mono? Would like to merge this one and rebase my work for Streams 2.5 on it |
I'll look at resolving the conflicts here and getting this pulled into v1.4 now that v1.4 has been updated with the latest sources. |
Need to give this another look for the next Akka.NET v1.4.0 beta |
Retargeting the |
The merge conflicts are a little nasty - I think I'll need to do this offline. |
closed via #3973 |
No description provided.