Repository navigation
fix(builder): show each recipe error once on Review, and no Ready beside a held Run - #323
Merged
Merged
Conversation
…ide a held Run Prerequisites no longer repeats the recipe's compile errors (the route asks no machine and returns none), and the Run box no longer repeats what the red box lists. The Prerequisites head says Ready or Missing something only beside a Run that the machines alone hold; a Run held for a model key, or absent for recipe errors, already says why.
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.
Closes #298
What
On the Review step, a recipe error showed in the red box and again under Prerequisites, after "Missing something: Run waits". With a model key set, a standard recipe's errors showed a third time in place of Run. With no model key, Prerequisites said "Ready" above a disabled Run.
/new-run/prerequisitesno longer returns a standard recipe's compile errors. It still asks no machine while the recipe has errors. The red box is the one place they are listed.With a key and a valid recipe, the head, the rows and Run are as before.
Touches
static (
app/static/builder/command-builder.js) · web (app/web/builder.py) · testsBefore and after
-3in Number of problems and no model key. Before: the limit message in the red box and again under "Missing something: Run waits". After: once, in the red box; the Prerequisites head says nothing.Verified
A Playwright check in Chromium, 1280 x 900, light theme, an empty profile, on upstream/main (
38235bd0) and on this branch. Recipes were imported, Review opened, and Run never clicked. A dummyOPENAI_API_KEYwas set for the cases with a key.-3limit, no key: twice. With a key: three times (red box, Prerequisites, Run box). LoCoMo with no model, "Choose a model.": the same. A pinned Harbor recipe with errors, with a key: twiceNo page errors on either.
app/ui_tests/test_prerequisites_route.py: a standard recipe with errors gets no machines and no errors, and no machine is asked. Fails on upstream/main.app/ui_tests/test_command_builder_providers.py: the Prerequisites head under Node, for a Run that is shown, held or absent, and while checking. Fails on upstream/main. A second test checks that a pinned Harbor recipe's Run messages are all listed by the red box, which the Run box relies on.python:3.12container with Node:python3 app/tests/parallel.py: 2779 tests in 170 modules, OK.python3 app/tests/parallel.py app/ui_tests: 615 tests in 61 modules, OK.Risk