Skip to content

Commit

Permalink
build: fix e2e notebook cluster check
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamilton723 committed Jul 30, 2019
1 parent 19aeb80 commit ce1e66d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/it/scala/com/microsoft/ml/nbtest/NotebookTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ class NotebookTests extends TestBase {

test("Databricks Notebooks") {
tryWithRetries(Array.fill(500)(10000)) {() =>
println("Checking Cluster Availibility...")
assert(listActiveJobs(clusterId).isEmpty,
"Cluster already has running jobs cannot change libraries safely")
assert(listInstalledLibraries(clusterId).isEmpty,
"Cluster already has libraries installed")
println("Cluster now Availible")
}
try {
assert(listInstalledLibraries(clusterId).isEmpty, "Cluster already has libraries installed")
println("Installing libraries")
installLibraries(clusterId)
println(s"Creating folder $folder")
Expand Down

0 comments on commit ce1e66d

Please sign in to comment.