Skip to content

Benchmark history: an old tag is timed with its own test/ADFixtures but the pushed commit's script #623

Backlog

Description

@seabbs-bot

Problem. Since kit 0.5.2, benchmark-history.yaml fails for a package whose benchmark script calls fixture functions that an older tag's test/ADFixtures lacks: every bench cell errors with UndefVarError while loading benchmark/benchmarks.jl.

Suspected cause. The job pins the script to the pushed commit (--bench-on "$GITHUB_SHA") but stages test/ADFixtures from the revision being timed.
The script and the fixtures then come from different revisions.
Before 0.5.2 the job staged the pushed commit's fixtures, so they always matched the script.

Proposed fix. Stage the fixtures from the same revision as the script, which --bench-on makes the pushed commit, or let a package choose (for example a benchmark_history_fixtures = "head" keyword).
A package whose fixtures gate scenarios by the features each release has (ComposableRecurrences.jl's ADFixtures.supports) is built to time old tags with current fixtures.

Detail
  • ComposableRecurrences.jl, runs 47428092120 and 47428160822 on main (e7090d0b and 30bcc638), right after the move to 0.5.2: staging test/ADFixtures from v0.1.0, then UndefVarError: benchmarked_backends not defined in ADFixtures at benchmarks.jl:81 in all five bench cells.
  • The run on 764c3716, the commit before the move, passed with the same tags.
  • The package now guards its script so a revision whose fixtures predate it times only the convolution body, which keeps the history green but drops v0.1.0's gradient timings.

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

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

    bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions