Skip to content

Commit f6b19f6

Browse files
committed
CI: Add DaggerWebDash test job
1 parent a81a94b commit f6b19f6

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ steps:
6868
- JuliaCI/julia-coverage#v1:
6969
codecov: true
7070
command: "julia --project -e 'using Pkg; Pkg.develop(;path=\"lib/TimespanLogging\"); Pkg.test(\"TimespanLogging\")'"
71+
- label: Julia 1.7 - DaggerWebDash
72+
timeout_in_minutes: 60
73+
<<: *test
74+
plugins:
75+
- JuliaCI/julia#v1:
76+
version: "1.7"
77+
- JuliaCI/julia-coverage#v1:
78+
codecov: true
79+
command: "julia -e 'using Pkg; Pkg.develop(;path=pwd()); Pkg.develop(;path=\"lib/TimespanLogging\"); Pkg.develop(;path=\"lib/DaggerWebDash\"); include(\"lib/DaggerWebDash/test/runtests.jl\")'"
7180
- label: Benchmarks
7281
timeout_in_minutes: 120
7382
<<: *bench

lib/DaggerWebDash/test/runtests.jl

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using DaggerWebDash
2+
import DaggerWebDash: LinePlot, GanttPlot
23
using TimespanLogging
34
using Dagger
45
using Test
@@ -18,22 +19,20 @@ using Test
1819
# FIXME: logs_df = DataFrame([key=>[] for key in keys(ml.consumers)]...)
1920
# ts = DaggerWebDash.TableStorage(logs_df)
2021
# push!(lw.creation_handlers, ts)
21-
if render == "webdash"
22-
d3r = DaggerWebDash.D3Renderer(8080) #; seek_store=ts)
23-
push!(lw.creation_handlers, d3r)
24-
push!(lw.deletion_handlers, d3r)
25-
push!(d3r, GanttPlot(:core, :id, :timeline, :esat, :psat, "Overview"))
26-
# TODO: push!(d3r, ProfileViewer(:core, :profile, "Profile Viewer"))
27-
push!(d3r, LinePlot(:core, :wsat, "Worker Saturation", "Running Tasks"))
28-
push!(d3r, LinePlot(:core, :loadavg, "CPU Load Average", "Average Running Threads"))
29-
push!(d3r, LinePlot(:core, :bytes, "Allocated Bytes", "Bytes"))
30-
push!(d3r, LinePlot(:core, :mem, "Available Memory", "% Free"))
31-
#push!(d3r, GraphPlot(:core, :id, :timeline, :profile, "DAG"))
32-
ml.aggregators[:d3r] = d3r
33-
end
22+
d3r = DaggerWebDash.D3Renderer(8080) #; seek_store=ts)
23+
push!(lw.creation_handlers, d3r)
24+
push!(lw.deletion_handlers, d3r)
25+
push!(d3r, GanttPlot(:core, :id, :timeline, :esat, :psat, "Overview"))
26+
# TODO: push!(d3r, ProfileViewer(:core, :profile, "Profile Viewer"))
27+
push!(d3r, LinePlot(:core, :wsat, "Worker Saturation", "Running Tasks"))
28+
push!(d3r, LinePlot(:core, :loadavg, "CPU Load Average", "Average Running Threads"))
29+
push!(d3r, LinePlot(:core, :bytes, "Allocated Bytes", "Bytes"))
30+
push!(d3r, LinePlot(:core, :mem, "Available Memory", "% Free"))
31+
#push!(d3r, GraphPlot(:core, :id, :timeline, :profile, "DAG"))
32+
ml.aggregators[:d3r] = d3r
3433
ml.aggregators[:logwindow] = lw
3534
ctx = Context(; log_sink=ml)
36-
A = rand(Blocks(4, 4), 16, 16)
37-
@async collect(A * A)
35+
Dagger.Sch.EAGER_CONTEXT[] = ctx
36+
fetch(Dagger.@spawn 1+1)
3837
run(pipeline(`curl -s localhost:8080/index.html`; stdout=devnull))
3938
end

0 commit comments

Comments
 (0)