Skip to content

Commit

Permalink
Merge pull request #52 from stvoutsin/feature/healthchecker
Browse files Browse the repository at this point in the history
Add notebooks that are expected to fail to test alerter
  • Loading branch information
stvoutsin authored Oct 12, 2023
2 parents 8a777da + 3e51fe6 commit f2b0ab6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/notebooks/notebooks-failcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"notebooks" : [
{
"name" : "pi_quick",
"filepath" : "https://raw.githubusercontent.com/wfau/aglais-testing/main/notebooks/pi_fail.json",
"totaltime" : 10,
"results" : [ "3.141210"]
}

]
}
1 change: 1 addition & 0 deletions notebooks/pi_fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"paragraphs":[{"user":"admin","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"python","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/python"},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1607360594831_1744657714","id":"20201207-170314_91795958","dateCreated":"2020-12-07T17:03:14+0000","status":"FINISHED","progressUpdateIntervalMs":500,"focus":true,"$$hashKey":"object:2296","text":"%spark.pyspark\nimport random \nNUM_SAMPLES = 20000000\n\ndef inside(p):\n x, y = r.random(), random.random()\n return x*x + y*y < 1\n\ncount = sc.parallelize(range(0, NUM_SAMPLES)) \\\n .filter(inside).count()\nprint (\"Pi is roughly %f\" % (4.0 * count / NUM_SAMPLES))\n","dateUpdated":"2020-12-07T17:05:41+0000","dateFinished":"2020-12-07T17:08:12+0000","dateStarted":"2020-12-07T17:05:41+0000","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Pi is roughly 3.141691\n"}]}}],"name":"stv/pi","id":"2FRYUY6SK","noteParams":{},"noteForms":{},"angularObjects":{"md:shared_process":[],"python:shared_process":[],"angular:shared_process":[],"spark:shared_process":[]},"config":{"isZeppelinNotebookCronEnable":false,"looknfeel":"default","personalizedMode":"false"},"info":{}}

0 comments on commit f2b0ab6

Please sign in to comment.