Skip to content

Benchmark each revision with its local sublibraries on Julia LTS - #1260

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/benchmark-local-sources
Sep 13, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/benchmark-local-sources

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

The benchmark job fails on Julia LTS when a PR introduces an unregistered monorepo sublibrary version. The existing remote-URL installation ignores local [sources] on Julia 1.10 and attempts to resolve that sublibrary from the registry. Benchmark each revision from an independent local clone instead, allowing AirspeedVelocity to develop that revision's local source packages before installing the root package.

The same baseline benchmark script runs against both revisions. The workflow keeps the Julia release/LTS matrix, writes time and memory comparisons to the job summary, and uploads JSON results. It uses the existing AirspeedVelocity 0.6.5 tool through its public API. Package dependencies and solver behavior are unchanged.

Verification

Reproduced the original remote-URL failure locally on Julia 1.10.11 against the reflective feature revision:

ERROR: Unsatisfiable requirements detected for package NonlinearSolveFirstOrder:
possible versions are: 1.0.0-2.6.1 or uninstalled
restricted to versions 2.7.0-2 by NonlinearSolve — no versions left
NonlinearSolve is fixed to version 4.31.0

Ran the new benchmark_revisions driver locally on Julia 1.10.11 and 1.12.7, comparing the actual baseline and feature revisions with a one-sample Newton benchmark. The benchmark asserts that pkgdir(NonlinearSolveFirstOrder) lies inside the driver's local checkouts. Both versions produced JSON results for both revisions and printed:

LOCAL_SOURCE_VERSION=2.6.1
[runner] Finished benchmarks for NonlinearSolve@40f6f613950636e22c25077124a93b914c1df669.
LOCAL_SOURCE_VERSION=2.7.0
[runner] Finished benchmarks for NonlinearSolve@9ea6e621313afacb1988855c73ee9935f29e79dd.

The initial local invocation returned SubString revisions from readchomp, which AirspeedVelocity's results loader rejects. The driver now normalizes revisions to String; loading both generated artifacts and rendering the time/memory tables was verified separately after that correction. GitHub supplies string-valued ARGS.

Exact benchmark invocation (with the appropriate Julia version and its binary directory first in PATH):

include("benchmark/ci.jl")
revs = [readchomp(`git rev-parse origin/master`), readchomp(`git rev-parse 9ea6e6213`)]
benchmark_revisions(pwd(), revs, "../scratch/benchmark-results";
    script="../scratch/benchmark-smoke.jl", nsamples_load_time=1)
results = AirspeedVelocity.load_results("NonlinearSolve", String.(revs);
    input_dir="../scratch/benchmark-results")
write_benchmark_summary(stdout, results)

GROUP=QA julia +1.12 --compiled-modules=existing --project -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])':

Test Summary: | Pass  Total     Time
QA            |   28     28  2m38.5s
Testing NonlinearSolve tests passed

Runic, typos, actionlint, and git diff --check passed. The full production benchmark suite and GitHub artifact upload were not run locally; the local test exercises package resolution, actual solver execution, distinct source versions, result loading, and table rendering. No checks were disabled.

Links

Ignore this draft until reviewed by @ChrisRackauckas.

🤖 Generated with Codex CLI 0.154.0 (model: gpt-6-astra). Session: local transcript /home/crackauc/.codex/sessions/2026/09/12/rollout-2026-09-12T04-30-15-01a094bd-179a-7972-97ec-36badb9448cd.jsonl.

Use independent local checkouts and the public AirspeedVelocity API so
Julia LTS can resolve unregistered monorepo sublibrary versions. Publish
comparison tables in the job summary and preserve the result artifacts.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.154.0
Agent-Model: gpt-6-astra
Agent-Session: local transcript /home/crackauc/.codex/sessions/2026/09/12/rollout-2026-09-12T04-30-15-01a094bd-179a-7972-97ec-36badb9448cd.jsonl
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 13, 2026 11:19
@ChrisRackauckas
ChrisRackauckas merged commit d935ba6 into SciML:master Sep 13, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants