Repository navigation
fix(parallel): checkpoint on the interval even when that iteration fails - #622
Open
shaojunying wants to merge 1 commit into
Open
shaojunying wants to merge 1 commit into
shaojunying wants to merge 1 commit into
Conversation
The checkpoint_interval check ran only after a successful or rejected iteration. When the iteration on the interval returned an error (no valid diff, LLM failure) or its future raised, no checkpoint was written for that interval. Run the check once for every completed iteration, whatever its outcome.
|
|
1 similar comment
|
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #621
Problem
run_evolution()checkscheckpoint_intervalonly after a successful iteration or a rejected candidate. When the iteration on the interval returns an error or its future raises, no checkpoint is written for that interval.Change
is_new_bestforcheckpoint_on_improvement) and marks the check as done.try/exceptblock, the loop calls_checkpoint_if_due()if the success path did not. This covers error results, rejected candidates, timeouts and exceptions._CandidateRejectedhandler is removed, because the new call covers it.Verification
tests/test_process_parallel.py:The first two fail on
main.python -m pytest tests --ignore=tests/integration --ignore=tests/alphaevolve_upstreamon Windows, Python 3.12: 29 failed, 1108 passed, 8 skipped. The same 29 tests fail onmainon this machine (POSIX path assumptions,os.killon Windows, locale encoding). No new failures.black --checkpasses on the changed files.