Skip to content

Split the reverse AD jobs and raise the AD and downgrade timeouts - #1063

Merged
seabbs-bot merged 2 commits into
mainfrom
ci/ad-shards-timeouts
Dec 5, 2026
Merged

seabbs-bot merged 2 commits into
mainfrom
ci/ad-shards-timeouts

Conversation

@seabbs-bot

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

Copy link
Copy Markdown
Collaborator

This splits the Enzyme and Mooncake reverse AD jobs in two, so they finish inside their time cap.
It also gives the downgrade-compat job more time.
Both were cancelled on main at their caps.
All changes come from the kit's update(...) options, not hand edits.

Claude Opus 5.5 [high]

Cause

  • On main at 30bcc63 (run 47428162045), Enzyme reverse and Mooncake reverse were both cancelled at the 75-minute cap. The other five AD backends passed in 15 to 27 minutes.
  • On 4 December, Mooncake reverse took 57 minutes on a fast runner: registry scenarios 29, adjoints 14, chunked 8. A slower runner goes past 75.
  • downgrade-compat takes 36 to 45 minutes against the reusable's 45-minute default, and has been cancelled at it.

Fix

Run through EpiAwarePackageTools.update 0.5.2:

update(pkg; ad_shards = Dict("enzyme_reverse" => 2, "mooncake_reverse" => 2),
    ad_timeout = 120, downgrade_timeout = 75)
  • ad.yaml: shards: '{"enzyme_reverse":2,"mooncake_reverse":2}', and timeout_minutes goes from 75 to 120.
  • test.yaml: the downgrade-compat caller gets timeout_minutes: 75.
  • codecov.yml: the kit raises after_n_builds from 8 to 10 for the two extra shard uploads.

The kit's AD_SHARD splits only the registry scenarios.
The adjoint and chunked items run in each shard.
For Mooncake a shard should take about 15 registry minutes plus 22 for the other items.
Enzyme reverse is slower: its non-registry items alone took about 65 minutes on 1.12 in ad-versions, and every shard runs them, so the cap is 120.
A cap costs nothing when a job finishes early.
EpiAware/EpiAwarePackageTools.jl#621 tracks splitting at item level.

Evidence

This PR's own AD run is the evidence: the four reverse shards should finish under 120 minutes.

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

Set through the kit's update: ad_shards for Enzyme and Mooncake reverse,
ad_timeout 90 and downgrade_timeout 75. The kit also counts the two extra
coverage uploads in codecov.yml.

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 01:59
Items outside the registry are not split by AD_SHARD, so each Enzyme
reverse shard still runs all of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seabbs-bot seabbs-bot mentioned this pull request Dec 5, 2026
15 tasks done
@seabbs-bot
seabbs-bot merged commit de1c1c9 into main Dec 5, 2026
19 of 23 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