-
Notifications
You must be signed in to change notification settings - Fork 360
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
Updates to fix coercion errors. DSDEEPB-727 #84
Conversation
bbcd0cd
to
e09e881
Compare
@@ -39,42 +42,43 @@ class WorkflowManagerActorSpec extends CromwellTestkitSpec("WorkflowManagerActor | |||
|
|||
val actual = outputs.map { case (k, WdlString(string)) => k -> string } | |||
actual shouldEqual Map(HelloWorld.OutputKey -> HelloWorld.OutputValue) | |||
Await.result(dataAccess.shutdown(), Duration.Inf) |
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.
could this use a loan pattern for the DataAccess
? (Warning: did not test this)
with { dataAccess =>
doStuff()
}
def with[T](work: DataAccess => T): T = {
val dataAccess = DataAccess()
work(dataAccess)
Await.result(dataAccess.shutdown(), Duration.Inf)
}
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.
👍 for loan pattern
aside: Beyond thinking this talk from Dick Wall is worthwhile he does have an amusing anecdote about bioinformaticists abusing the loan pattern (just after 13:00 if you want to skip the rest)
e09e881
to
d062d8c
Compare
Ready for next round of review. Also, please let me know if I didn't address anything from the first round with either a sufficient fix or a comment. |
With the addition of some comments in the spots where there's discussion, looks good to me. 😄 |
Fixed Symbol doubly qualifying the symbol names. (thx mcovarr/scottfrazer) Added `WdlType.fromRawString`, with test against respective `WdlValue.toRawString`. `DummyDataAccess` replaced with using `DataAccess` instances, with cleanup of connections. When creating in memory databases will create unique `DataAccess` instances, just like Dummy. TestSlickDatabase now prints a warning, instead of an error, when unable to connect to MySql.
d062d8c
to
751385c
Compare
👍 from me |
Updates to fix coercion errors. DSDEEPB-727
Prevent stack overflow for bad WDL
Fixed Symbol doubly qualifying the symbol names. (thx mcovarr/scottfrazer)
Added
WdlType.fromRawString
, with test against respectiveWdlValue.toRawString
.DummyDataAccess
replaced with usingDataAccess
instances, with cleanup of connections.When creating in memory databases will create unique
DataAccess
instances, just like Dummy.TestSlickDatabase now prints a warning, instead of an error, when unable to connect to MySql.