Skip to content

Fix the two test failures left on main after the Enzyme reverse split - #1069

Merged
seabbs-bot merged 2 commits into
mainfrom
fix/recurrence-comment-names
Dec 5, 2026
Merged

seabbs-bot merged 2 commits into
mainfrom
fix/recurrence-comment-names

Conversation

@seabbs-bot

@seabbs-bot seabbs-bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Two test failures left on main after #1066 and #1067, both fixed here.
The ubuntu test leg fails the standards check that keeps other package names out of src comments, because the comment added in #1066 names a backend.
Every Enzyme reverse shard reports an unexpected pass in the check that a broken scenario's rule fires.

Opus 5.5 [low]

Package name in a comment.
Failure on main (run 47503716656, job 145623206310):

Standards: no other package names: Test Failed at test/package/standards.jl:105
  Evaluated: ["src/operators/recurrence.jl:145: Enzyme"] == String[]

The comment now says "a reverse AD backend's static activity analysis".
I checked the other src comments against OTHER_PACKAGES in test/package/standards_config.jl, with code spans stripped as plain_words does, and found no other hits.

Unexpected pass in the rule check.
Failure on main (AD run 47503575310, all three Enzyme reverse shards, Julia 1.13 with coverage):

Recurrence modifier chosen at run time: the rule fires: Error During Test at test/ad/checks.jl:120
 Unexpected Pass
 Expression: fired == rule

That scenario is in backend_broken_scenarios() for Enzyme reverse, for an upstream bug.
Its gradient check is still broken, but its rule now fires before the bug throws.
test_rule_fires marked the rule check @test_broken for every broken scenario.
It now uses @test_broken only when the rule does not fire, and a plain @test otherwise, so the check holds on either Julia version and with or without coverage.
The check that a NoAdjoint twin fires no rule is unchanged.

The checks test is in every shard because it is not split, which is why all three failed.
Otherwise the three shards finished in 85 to 97 minutes each, under the 120-minute limit, which confirms the split from #1067.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seabbs-bot
seabbs-bot requested a review from seabbs as a code owner December 5, 2026 13:18
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation preview is ready!

View the docs for this PR at: https://EpiAware.github.io/ComposableRecurrences.jl/previews/PR1069/

This preview will be updated automatically when you push new commits.

On Julia 1.13 the Enzyme reverse rule now fires for the scenario whose
modifier is chosen at run time before its upstream bug throws, so the
strict @test_broken reported an unexpected pass in every AD shard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seabbs-bot seabbs-bot changed the title Keep the Recurrence constructor comment free of other package names Fix the two test failures left on main after the Enzyme reverse split Dec 5, 2026
@seabbs-bot seabbs-bot mentioned this pull request Dec 5, 2026
15 tasks done
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Benchmark comparison vs base

Minimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:

Group 🟢 <50% 🟢 50–75% 🟢 75–95% ⚪ 95–105% 🔴 105–125% 🔴 125–150% 🔴 >150%
Evaluation · · · 24 · · ·
ForwardDiff · · · 21 · · ·
Mooncake reverse · · · 21 · · ·
Enzyme reverse · · · 20 1 · ·
Evaluation — 24 benchmarks (by time change)
Benchmark base PR time memory
Evaluation / Matrix bvd_occupancy_kernel T200_L20_S1 4.77 μs 4.89 μs ⚪ 1.02× ⚪ 1.0×
Evaluation / Matrix conv_fixed T200_L20_S1 547.0 ns 535.0 ns ⚪ 0.98× ⚪ 1.0×
Convolution body / package 313.2 ns 308.5 ns ⚪ 0.98× —
Evaluation / Matrix random_walk T30_L1_S1 75.0 ns 76.0 ns ⚪ 1.01× ⚪ 1.0×
Evaluation / Matrix bvd_census T200_L20_S1 1.06 μs 1.04 μs ⚪ 0.99× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_secondary_k5 T200_L20_S1 957.0 ns 947.0 ns ⚪ 0.99× ⚪ 1.0×
Evaluation / Matrix delay_fixed T200_L20_S1 549.0 ns 544.0 ns ⚪ 0.99× ⚪ 1.0×
Evaluation / Matrix overview T200_L20_S3 12.02 μs 12.12 μs ⚪ 1.01× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_primary_k5 T200_L20_S1 1.37 μs 1.36 μs ⚪ 0.99× ⚪ 1.0×
Evaluation / Matrix bvd_patches_call T200_L20_S1 11.17 μs 11.22 μs ⚪ 1.01× ⚪ 1.0×
Convolution body / BLAS axpy per lag 693.1 ns 689.5 ns ⚪ 0.99× —
Evaluation / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 3.82 μs 3.8 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix bvd_patches_call T200_L20_S5 35.31 μs 35.48 μs ⚪ 1.0× ⚪ 1.0×
Convolution body / native axpy per lag 406.0 ns 404.5 ns ⚪ 1.0× —
Evaluation / Matrix renewal T200_L20_S1 2.22 μs 2.23 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix renewal_depletion T200_L20_S1 6.74 μs 6.71 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix custom_modifier_pullback T200_L20_S1 2.97 μs 2.98 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix bvd_renewal_call T200_L20_S1 6.85 μs 6.84 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix user_depletion T200_L20_S1 6.36 μs 6.37 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix custom_modifier T200_L20_S1 2.98 μs 2.98 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 2.6 μs 2.6 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix bvd_patch T200_L20_S5 26.07 μs 26.06 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix user_depletion_pullback T200_L20_S1 6.36 μs 6.36 μs ⚪ 1.0× ⚪ 1.0×
Evaluation / Matrix strata_mixing T200_L20_S5 19.15 μs 19.15 μs ⚪ 1.0× ⚪ 1.0×
AD gradients — 63 benchmarks (by time change)
Benchmark base PR time memory
AD gradients / Matrix overview T200_L20_S3 / Enzyme reverse 36.37 μs 38.98 μs 🔴 1.07× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / Enzyme reverse 8.25 μs 8.65 μs ⚪ 1.05× ⚪ 1.0×
AD gradients / Matrix conv_fixed T200_L20_S1 / Enzyme reverse 2.46 μs 2.37 μs ⚪ 0.96× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / Enzyme reverse 25.56 μs 24.82 μs ⚪ 0.97× ⚪ 1.0×
AD gradients / Matrix conv_fixed T200_L20_S1 / Mooncake reverse 6.62 μs 6.44 μs ⚪ 0.97× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / Enzyme reverse 7.74 μs 7.94 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / ForwardDiff 1.47 ms 1.51 ms ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / Mooncake reverse 16.34 μs 16.64 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / Enzyme reverse 7.94 μs 7.79 μs ⚪ 0.98× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / Enzyme reverse 40.33 μs 39.63 μs ⚪ 0.98× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / Enzyme reverse 14.87 μs 14.62 μs ⚪ 0.98× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / Enzyme reverse 110.5 μs 108.69 μs ⚪ 0.98× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / Enzyme reverse 15.45 μs 15.21 μs ⚪ 0.98× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / Mooncake reverse 13.36 μs 13.56 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / Mooncake reverse 6.75 μs 6.84 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / Enzyme reverse 2.59 μs 2.62 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / ForwardDiff 549.06 μs 554.58 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix overview T200_L20_S3 / ForwardDiff 2.93 ms 2.91 ms ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / Mooncake reverse 24.22 μs 24.42 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / Enzyme reverse 13.97 μs 13.86 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / Mooncake reverse 12.18 μs 12.27 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / Mooncake reverse 158.35 μs 157.2 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / ForwardDiff 453.99 μs 457.2 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / Enzyme reverse 8.73 μs 8.79 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / Enzyme reverse 7.62 μs 7.67 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / Mooncake reverse 22.04 μs 21.9 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix conv_fixed T200_L20_S1 / ForwardDiff 271.42 μs 273.09 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / Enzyme reverse 65.48 μs 65.11 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / ForwardDiff 461.6 μs 459.03 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / ForwardDiff 11.73 ms 11.67 ms ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / ForwardDiff 1.91 μs 1.92 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / ForwardDiff 448.3 μs 450.5 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / ForwardDiff 764.34 μs 767.99 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / ForwardDiff 1.4 ms 1.41 ms ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / Enzyme reverse 11.25 μs 11.2 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / Mooncake reverse 7.65 μs 7.68 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / Mooncake reverse 21.81 μs 21.89 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / ForwardDiff 522.83 μs 521.01 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / ForwardDiff 414.95 μs 416.37 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / Mooncake reverse 22.21 μs 22.28 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / Enzyme reverse 6.91 μs 6.93 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / ForwardDiff 448.4 μs 449.65 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / Enzyme reverse 83.05 μs 83.28 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / Mooncake reverse 19.86 μs 19.91 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / ForwardDiff 380.83 μs 381.78 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / Enzyme reverse 16.06 μs 16.02 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / Mooncake reverse 18.76 μs 18.72 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / ForwardDiff 506.62 μs 505.57 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / ForwardDiff 14.08 ms 14.06 ms ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / Mooncake reverse 54.89 μs 54.97 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / Mooncake reverse 13.97 μs 13.99 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / Mooncake reverse 123.63 μs 123.49 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / ForwardDiff 416.44 μs 416.05 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / ForwardDiff 39.09 ms 39.06 ms ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix overview T200_L20_S3 / Mooncake reverse 52.78 μs 52.74 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / Enzyme reverse 13.95 μs 13.96 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / ForwardDiff 5.91 ms 5.91 ms ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / Mooncake reverse 102.86 μs 102.84 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / ForwardDiff 448.0 μs 448.02 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / Mooncake reverse 16.42 μs 16.42 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / Enzyme reverse 180.0 ns 180.0 ns ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / Mooncake reverse 931.0 ns 931.0 ns ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / Mooncake reverse 19.84 μs 19.84 μs ⚪ 1.0× ⚪ 1.0×

@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
ad-enzyme-forward 43.00% <ø> (+0.14%) ⬆️
ad-enzyme-reverse 76.78% <ø> (?)
ad-forwarddiff 41.88% <ø> (+0.27%) ⬆️
ad-mooncake-forward 54.69% <ø> (+0.07%) ⬆️
ad-mooncake-reverse 76.17% <ø> (+1.78%) ⬆️
ad-reversediff 42.88% <ø> (+0.19%) ⬆️
ad-reversediff-compiled 42.04% <ø> (-0.17%) ⬇️
unit 95.79% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/operators/recurrence.jl 93.96% <ø> (+0.25%) ⬆️

... and 16 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@seabbs-bot
seabbs-bot merged commit dd22dfc into main Dec 5, 2026
39 of 40 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.

1 participant