Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
On a single Docker host,
lemans run -c Nlets every trial verify at the same time. The heavy multistepverifiers run whole Rails/RSpec suites, often twice (baseline and candidate), inside the bench's
2-CPU / 2 GB sandboxes. When several overlap they slow each other past the task's verifier timeout, and the trial
ends as
verifier_error(exit 124). The model's work is lost to the host, not to the model.What we saw running the full 46-task bench locally (Docker, arm64 images, 6 trials in flight):
ms-redmine-rails-upgrade: 5–10 min to verify when alone; 20 min and timed out (exit 124) when it overlappedother suites. That was 7 of 16 verifications.
ms-mastodon-tests: the baseline models suite took 29 min under contention and wasn't even green(4 failures).
ms-forem-active-storage,ms-retire-proposals,ft-kamal-deploy: sameverifier exited 124.This adds a run-level knob:
Runnerbuilds oneConcurrent::Semaphorefor the run when the option is set, and passes it to eachRunner::TaskandTrial.Trialholds a slot only aroundVerifier#verify!. Agent phases stay fully parallel.Trial.new(task).runstill works standalone:verification_slots:is optional.Tests:
ConfigTest#test_load_optionscovers the option. A newTrialTest#test_a_verification_waits_for_a_free_slot_and_gives_it_backchecks that a held slot blocks theverification and is released afterwards.
bundle exec rake testpasses (346 runs, 0 failures) andbundle exec rubocopis clean.Pairs well with the existing
lemans restart --reverify, which re-grades a trial that already timed out withoutcalling the model again.