Skip to content

Update permutation_init doctests for Julia 1.13 randperm - #538

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:devin/permutation-doctest-113
Sep 13, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:devin/permutation-doctest-113

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

The GPU Documentation job on master fails four permutation_init doctests in src/inits/inits_reservoir.jl. Julia 1.13 changed randperm's implementation (randperm(Xoshiro(1234), 5) gives [3,2,4,5,1] on 1.12 vs [4,3,1,2,5] on 1.13), so the fixed-seed permutation matrices in the docstring no longer match.

This regenerates the four literal outputs on Julia 1.13. The evaluated values were confirmed byte-for-byte against the CI failure output (run 34675972399) and reproduced locally.

Verification

Each doctest's new expected output matches what permutation_init evaluates to on Julia 1.13.0, e.g. permutation_init(5, 5) now shows the column-3/4/2/1/5 permutation CI produced. The MersenneTwister(123) example needs no update — it only asserts properties (size and sorted nonzero values), not the permutation order.

Note: the Tests failure on the same master run is a separate resolved-upstream issue (OrdinaryDiffEqDefault 2.6.2 now requires OrdinaryDiffEqCore ≥ 4.17.1, which provides _is_identity_massmatrix); it will pass on the next CI run and is not addressed here.

Generated with Devin CLI 3000.10.21 (model: SWE-2 Max), session: /home/crackauc/.local/share/devin/cli/summaries/history_4c9fddb81d834736.md

Julia 1.13 changed `randperm`'s implementation, so the fixed-seed
permutation matrices shown in the `permutation_init` docstring examples
no longer match. Regenerate the four literal outputs on Julia 1.13.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Devin <noreply@cognition.ai>
Agent-Harness: Devin CLI 3000.10.21
Agent-Model: SWE-2 Max
Agent-Session: /home/crackauc/.local/share/devin/cli/summaries/history_4c9fddb81d834736.md
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Status note: the Core/Extensions/Interface group failures on julia 1 and lts are also red on master (https://github.com/SciML/ReservoirComputing.jl/actions/runs/34675972677) and are unrelated to this doctest-only change, which targets the GPU Documentation job.

@ChrisRackauckas
ChrisRackauckas merged commit f600c22 into SciML:master Sep 13, 2026
43 of 57 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- Drop x86 CI lane (BFloat16s LLVM soft-promote on i686). (#535)
- Add AirspeedVelocity benchmarking CI (#537)
- Update permutation_init doctests for Julia 1.13 randperm (#538)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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