These are chat archives for akkadotnet/akka.net

17th
Nov 2015
Aaron Stannard
@Aaronontheweb
Nov 17 2015 04:14
off-topic - anyone know somebody at JetBrains? Spent 10 hours today re-imaging our build agents over and over again when this was the issue the entire time: https://devnet.jetbrains.com/thread/473684
can't run more than 1 cloud agent at a time with VS2015 until that issue gets fixed - looks like the agent is reading the build server ID out of the build image and not the actual instance metadata
Tom Rathbone
@chillitom
Nov 17 2015 09:52
@Horusiath Akkling examples look good, being a fork can I assume it implements all the features of the existing F# api?
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 09:56
@chillitom I'm not sure if all of them were necessary. In general it should allow for everything, that original F# API allowed (at least in Akka.NET context), but it's done differently in many cases. After my yesterday changes next version of Akkling won't be API-compatible with Akka.FSharp
in case of persistence, Akkling.Persistence it's both a lot simpler and allows to do a lot more than original Akka.FSharp.Persistence
Tom Rathbone
@chillitom
Nov 17 2015 10:12
How about calling it Fakka? ;-)
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 10:12
maybe Fakkap?
:P
Tom Rathbone
@chillitom
Nov 17 2015 10:13
Can anyone tell me how I run the Postgres persistence adaptor's spec tests?
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 10:14
tbh naming is not so important, I've created this to experiment on F# API, once it's get proven, complete and stable I hope to incorporate it into new version of Akka.FSharp
you'll need a postgres installed on your local machine with database and credentials used by specs
Tom Rathbone
@chillitom
Nov 17 2015 10:15
should an xunit running pick up the tests or do i need something else
would be great to see your changes merged back to master
Arjen Smits
@Danthar
Nov 17 2015 10:16

@Horusiath > maybe Fakkap?

Nearly choked on my tea there.

Bartosz Sypytkowski
@Horusiath
Nov 17 2015 10:18
@chillitom I was using Resharper test runner for basically all plugins that doesn't need a cluster multinode test runner, it's fine
however if I remember correctly, there is a problem with resharper that it may "leak out" some test from test visual tree display if you'll try to step into particular test from that UI control directly
Tom Rathbone
@chillitom
Nov 17 2015 10:20
Hmm odd, R# not finding anything, all I see are two classes that extend JournalSpec and SnapshotStoreSpec
Tom Rathbone
@chillitom
Nov 17 2015 10:27
Ahh NCrunch can see them, xunit must still be plugin or something for r#
Tom Rathbone
@chillitom
Nov 17 2015 13:34
Just created this as couldn't find an existing implementation: https://github.com/chillitom/Akka.Persistence.MySql
Kevin McFarlane
@kevinmcfarlane
Nov 17 2015 15:17
:point_up: November 16, 2015 7:20 PM @Horusiath, with your assistance and AndrewS I have updated my SO post with my solution.
Tom Rathbone
@chillitom
Nov 17 2015 15:40
Anyone seen this issue before with Akka.FSharp...
System.MissingMethodException : Method not found: 'Void Nessos.FsPickler.BinarySerializer..ctor(Microsoft.FSharp.Core.FSharpOption1<Boolean>, Microsoft.FSharp.Core.FSharpOption1<Nessos.FsPickler.ITypeNameConverter>)'.
at Akka.FSharp.Serialization.ExprSerializer..ctor(ExtendedActorSystem system)
at Akka.FSharp.Serialization.exprSerializationSupport(ActorSystem system)
I'm using 1.0.4 for Akka/Akka.FSharp and have tried versions 1.2.21 and 1.5.2 of FsPickler
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 17:25
@chillitom have you set assembly bindings for FsPickler 1.2 in your app.config?
Joshua Benjamin
@annymsMthd
Nov 17 2015 17:26
@Aaronontheweb do the build agents require VS because of the MSTests?
Tom Rathbone
@chillitom
Nov 17 2015 18:00
@Horusiath that did the trick, thanks for that
Aaron Stannard
@Aaronontheweb
Nov 17 2015 19:05
@annymsMthd yes, and other stuff we're going to use like Code Contracts may depend on it
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:01
@Horusiath I don't know what's changed, but http://petabridge-ci.cloudapp.net/viewLog.html?tab=buildLog&buildTypeId=AkkaNet_AkkaNetPrBuild&buildId=2708&guest=1 is now failing across the board on all PRs
Test collection for Akka.FSharp.Tests.ApiTests (8): Akka.FSharp.Tests (1)
 ApiTests.can serialize and deserialize discriminated unions over remote nodes using wire serializer    

First failure:      1430    #1489    No changes    17 Nov 15 20:37
System.AggregateException : One or more errors occurred.
---- System.AggregateException : One or more errors occurred.
-------- System.Threading.Tasks.TaskCanceledException : A task was canceled.
   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
   at Akka.FSharp.Tests.ApiTests.can serialize and deserialize discriminated unions over remote nodes using wire serializer() in D:\BuildAgent\work\49b164d63843fb4\src\core\Akka.FSharp.Tests\ApiTests.fs:line 76
----- Inner Stack Trace -----
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Akka.FSharp.Actors.tryCast[Message](Task`1 t) in D:\BuildAgent\work\49b164d63843fb4\src\core\Akka.FSharp\FsApi.fs:line 64
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
----- Inner Stack Trace -----
started happening with last night's dev build
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:06
only PR that I pulled in since was @sean-gilliam's XML-DOC PR, which wouldn't affect this
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:16
didn't show up on any individual PRs, but it's appearing inside dev
running it locally to see if I can reproduce, but I can repro it consistently across all three build agents
on different PRs
Stefan Sedich
@stefansedich
Nov 17 2015 21:18
my first paket experience is not the best
:facepunch:
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:19
not rebuilding?
Stefan Sedich
@stefansedich
Nov 17 2015 21:19
yeah no dice, I wonder if it is this corp network being dodgy
running packet.exe install manually fails trying to get SourceLink.Fake now
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:20
I'll try doing another dev build and wipe out my packages first
Stefan Sedich
@stefansedich
Nov 17 2015 21:20
Couldn't get package details for package SourceLink.Fake 1.1.0 on https:
//nuget.org/api/v2.
is what I get
this is probably punishment for being away this long :D
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:27
passed locally... wtf
@stefansedich restored just fine for me - rebuilding it again without any packages
Stefan Sedich
@stefansedich
Nov 17 2015 21:29
ok cool, could be my machine or this network
will try again at home
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:30
I'll try a fresh clone
just in case
ok weird, getting a pass now for #1430
despite having two failures on the F# DU serialization test with Wire cc @rogeralsing
what could cause an intermittent failure with that spec?
@stefansedich doing a full rebuild from a clean clone of the dev branch of the main Akka.NET repo
basically what our build server does
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:35
yeah, running fine by the looks of it
must be your network
Stefan Sedich
@stefansedich
Nov 17 2015 21:35
yeah k np
will try tonight
lol wtf, running packet install on a fresh clone
comes up with some garbled text then my speakers start playing a ding sound
constantly
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 21:37
cc @forki
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:38
@stefansedich figured out why my VM images were trashed yesterday, btw
Stefan Sedich
@stefansedich
Nov 17 2015 21:39
ah cool what happened?
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:40
TL;DR;
no idea where this bug is
with Azure or the TC plugin
looked to me like Azure was reporting the wrong hostname
but if you sysprep the VM and use that image
the name of that VM gets burned into the new VM using that image initially
so all of the auto-scaled build servers report themselves as the same instance name
however, if you just save the VM without sysprep
then the correct name gets assigned from the start
ridiculous and weird
but there you have it
btw, with the sysprepped VMs
their name DOES change after its booted
in the azure metadata
where the agent reads its name from
so if you RDP into each agent and restart the TC Agent service it will work
but not automatically
Stefan Sedich
@stefansedich
Nov 17 2015 21:42
ah cool
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:42
spent an enormous amount of time dicking with that yesterday
Stefan Sedich
@stefansedich
Nov 17 2015 21:42
so turns out the weird garble is when I ran it using conemu
Aaron Stannard
@Aaronontheweb
Nov 17 2015 21:44
@Horusiath now the test passes on all servers...
.... is there some issue related to time of day with that spec or something?
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 21:46
dunno, in my experience successful CI run often depends on moon phases
Stefan Sedich
@stefansedich
Nov 17 2015 21:46
@Aaronontheweb building now, I ran packet.exe instlal then built in VS :\ that was fun.... not.
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 21:47
@stefansedich csprojs are configured to run paket before build
Stefan Sedich
@stefansedich
Nov 17 2015 21:47
yeah I know for some reason something is up for me atm
:confused:
Aaron Stannard
@Aaronontheweb
Nov 17 2015 22:21
LOL.... got the new build servers to work
all I had to do was not Sysprep the VM
so raw
@Horusiath that's what this feels like man
need someone to start sacrificing small animals or VB developers to keep the CI gods appeased
Steffen Forkmann
@forki
Nov 17 2015 22:29
What is the issue?
Bartosz Sypytkowski
@Horusiath
Nov 17 2015 22:29
I've just worked out how to serialize System.Collections.Immutable - it's like chasing rabbits, you hack your way to serialize one type of collection and two others starts to fail
@forki , @Aaronontheweb and @stefansedich have some problems with Paket - I'm not up to date with whole discussion, but at least one problem concerns using paket autorun on project build (after paket convert-from-nuget)
Stefan Sedich
@stefansedich
Nov 17 2015 22:31
my issues seemed to resolve, I put it down to this network at work.
Steffen Forkmann
@forki
Nov 17 2015 22:32
Can you create an issue? I'm more than happy to look into this. I really want to fix everything that's blocking you.
Stefan Sedich
@stefansedich
Nov 17 2015 22:32
I did have the strange issue when running "packet.exe install" inside conemu though.
I got garbled output then the console went crazy.
including playing a beeping sound :D
but I have not had that one again @forki I think it is safe to say I am up and running now.
If I come across that one again I will log an issue.
Steffen Forkmann
@forki
Nov 17 2015 22:34
I fixed on of the bugs in that area today
Stefan Sedich
@stefansedich
Nov 17 2015 22:35
ah really, got a link for info?
Yin Zhang
@melcloud
Nov 17 2015 23:35
Hi guys, how do you handle connection string for persistence actor in HOCON configuration? I don't want to check in the persistence part of it, but happy to check in the rest of akka config
Yin Zhang
@melcloud
Nov 17 2015 23:40
Ah, found out, we have a connection string name settings