tkf / BenchmarkCI.jl
Showing 1 of 1 files from the diff.

@@ -77,26 +77,44 @@
Loading
77 77
    ensure_origin(target)
78 78
    ensure_origin(baseline)
79 79
80 -
    group_target = PkgBenchmark.benchmarkpkg(
81 -
        pkg,
82 -
        target,
83 -
        progressoptions = progressoptions,
84 -
        resultfile = joinpath(workspace, "result-target.json"),
85 -
        script = script_wrapper,
86 -
    )
87 -
    @debug("`git status`", output = Text(read(`git status`, String)))
88 -
    group_baseline = PkgBenchmark.benchmarkpkg(
89 -
        pkg,
90 -
        baseline,
91 -
        progressoptions = progressoptions,
92 -
        resultfile = joinpath(workspace, "result-baseline.json"),
93 -
        script = script_wrapper,
94 -
    )
95 -
    judgement = PkgBenchmark.judge(group_target, group_baseline)
96 80
    if is_in_ci()
97 -
        display(judgement)
81 +
        ch = Channel() do ch
82 +
            t0 = time_ns()
83 +
            while true
84 +
                sleep(60 * 5)
85 +
                isopen(ch) || break
86 +
                minutes = floor(Int, (time_ns() - t0) / 1e9 / 60)
87 +
                @info "$minutes minutes passed.  Still running `judge`..."
88 +
            end
89 +
        end
90 +
    else
91 +
        ch = nothing
92 +
    end
93 +
94 +
    try
95 +
        group_target = PkgBenchmark.benchmarkpkg(
96 +
            pkg,
97 +
            target,
98 +
            progressoptions = progressoptions,
99 +
            resultfile = joinpath(workspace, "result-target.json"),
100 +
            script = script_wrapper,
101 +
        )
102 +
        @debug("`git status`", output = Text(read(`git status`, String)))
103 +
        group_baseline = PkgBenchmark.benchmarkpkg(
104 +
            pkg,
105 +
            baseline,
106 +
            progressoptions = progressoptions,
107 +
            resultfile = joinpath(workspace, "result-baseline.json"),
108 +
            script = script_wrapper,
109 +
        )
110 +
        judgement = PkgBenchmark.judge(group_target, group_baseline)
111 +
        if is_in_ci()
112 +
            display(judgement)
113 +
        end
114 +
        return judgement
115 +
    finally
116 +
        ch === nothing || close(ch)
98 117
    end
99 -
    return judgement
100 118
end
101 119
102 120
function _loadjudge(workspace)
Files Coverage
src 77.78%
Project Totals (2 files) 77.78%
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading