Repository navigation
feat(runs): count checks in the Runs header - #168
Merged
Merged
Conversation
A workspace with only checks (nop, oracle) showed "3 launches · 0 runs · 0 trials" above launches full of results. The header now adds the checks, counted as each launch counts them: "3 launches · 0 runs · 0 trials · 8 checks". Runs and trials stay agent-only. The checks part is left out when there are none.
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 #167
What
The Runs page header counts the checks (
nop,oracle) when there are any. A workspace of checks only read "3 launches · 0 runs · 0 trials" above launches full of results. It now reads "3 launches · 0 runs · 0 trials · 6 checks".The checks count is the sum of each launch's own count (
n_checksin_launch_view), so the header and the launches agree. Runs and trials stay agent-only. The checks part comes last. Thus the trials stay next to their runs, and a header without checks does not change.With a filter on, the header still reads "X of M runs shown", without checks. An outcome filter never matches a check, so a checks count there would say little.
Touches
routes (
web/runs.py) · templates and static (runs/index.html) · tests (ui_tests/test_controls_apart.py)Before and after
Two seeded workspaces. Checks only: three launches, each a
nopand anoracle. Mixed: a launch of two agents with anopand anoracle, a launch of one agent, and a launch of anop. The filter is the Agent column withoutnop(checks only) and the Resolved chip (mixed).Verified
On this branch, on
mainat411b985f, in throwaway containers (python:3.12):python3 app/tests/parallel.py: 2046 tests in 119 modules, OK.python3 app/tests/parallel.py app/ui_tests: 354 tests in 42 modules, OK.main, the checks-only and mixed cases fail.Browser check, Chromium (Playwright 1.49), light 1280 px and dark 390 px, with and without a filter.
mainand this branch ran side by side on the same seeded workspaces. No page JavaScript errors.Risk
Low. If the count is wrong, only the header text is wrong. A revert undoes it.