Skip to content

min_merge fails with a world-age MethodError in the interleaved benchmark compare job #602

Done

Description

@seabbs-bot

The interleaved benchmark compare job fails in min_merge with a world-age MethodError.
_min_node calls BT.BenchmarkGroup(copy(a.tags), Dict{Any, Any}()) directly, but BT is loaded lazily by _benchmarktools(), so the constructor is too new for the calling world.
The fix is to wrap that call in Base.invokelatest, as the other BT calls in the file already are.
The managed benchmark.yaml installs the kit from main, so a fix there repairs every adopter with no sync.

Detail

Seen on EpiAware/ComposableRecurrences.jl#1035 (kit 0.5.0 standard), run https://github.com/EpiAware/ComposableRecurrences.jl/actions/runs/47211951137, job compare, step "Build comparison comment".
Every Benchmark (<group>) job passed; only the merge failed.

ERROR: MethodError: no method matching BenchmarkTools.BenchmarkGroup(::Vector{Any}, ::Dict{Any, Any})
The applicable method may be too new: running in world age 39349, while current world is 39359.
  [1] _min_node(BT::Module, a::BenchmarkTools.BenchmarkGroup, b::BenchmarkTools.BenchmarkGroup)
    @ EpiAwarePackageTools.Benchmarks src/benchmarks.jl:662
  [7] min_merge(out_file::String, in_files::Vector{String})
    @ EpiAwarePackageTools.Benchmarks src/benchmarks.jl:696

The line is unchanged on main (src/benchmarks.jl:662).
A test that calls min_merge on two saved results files in a fresh process, without using BenchmarkTools first, would catch it.

This was opened by a bot. Please ping @seabbs for any questions.

Activity

  1. seabbs commented on Dec 4, 2026

    @seabbs
    Member

    We should not be install the kit from main so that is also something to fix in this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions