Skip to content

fix(runs): group a shard with its launch before its job is written - #172

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/group-shards-before-their-jobs
Nov 16, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/group-shards-before-their-jobs

Conversation

@harenome

Copy link
Copy Markdown
Collaborator

Closes #171

What

The shards of a sharded launch are now one launch on Runs → By launch from the start of the run. Before, a shard whose job was not written yet was a launch of its own, because launches.group knew a shard's launch only from its written job.

The compiled standard plan now gives each shard job its launch id: Plan.jobs entries get "launch", the same id as --launch on the shard's command (standard/recipe.py, launch_of). The run records that launches.group reads now have a fourth field: the launch ids from their plan. A record joins a launch that holds one of those ids, or one from its written jobs. web/runs._record builds that tuple. Plans that are not sharded have no launch id, so they group as before. Run records made before this change have no launch id in their plan. Their shards stay apart until they write their jobs, as before.

Touches

backend (runs/launches, standard/recipe, execution comment) · routes (web/runs)

Before and after

A launch over 3 machines, the 3 records running, seeded from the compiled plans:

Shards with a written job Before (main) After
none 3 launch blocks 1
shard 1 3 launch blocks 1
all 3 1 1

Verified

In throwaway containers (python:3.12-slim), at this branch on main 411b985f:

  • python3 app/tests/parallel.py: 2047 tests in 119 modules, OK.
  • python3 app/tests/parallel.py app/ui_tests: 456 tests in 42 modules, OK.
  • New: test_shards_whose_jobs_are_not_written_join_their_launch_by_the_plans_launch_id (test_standard_shard), with no job and with one job written. Route test test_a_shard_that_wrote_no_job_yet_is_in_the_launch (test_launch_shards): one block for a launch whose second machine wrote no job. test_several_machines_are_one_shard_each_under_one_launch checks the launch field of the plan. All three fail on main. The other tests that pass records to launches.group now give the fourth field, empty.
  • The reproduction above, on main and at this branch, through the Flask test client on the compiled plans.

Risk

If two launches recorded the same launch id, their records would group as one launch, and Delete would remove both. Written shard jobs already group by this id. The change reads it earlier, from the plan. The id is the recipe's name and the participant, and Run refuses a name whose run folder exists. To undo, revert the commit. Nothing is migrated: the field is only in new run records, and older code ignores it.

A launch over several machines starts one run record per shard. The
shards were grouped only by the launch id in their written jobs, so a
shard that had not written its job yet (preparing, or just started) was
a launch of its own on the Runs page.

The compiled plan now gives each shard job its launch id, and
launches.group reads it from the run record as well as from the jobs.
@harenome
harenome merged commit c4c082a into ThinkFlowLab:main Nov 16, 2026
2 checks passed
@harenome
harenome deleted the fix/group-shards-before-their-jobs branch November 16, 2026 16:46
harenome added a commit that referenced this pull request Nov 17, 2026
Closes #183

Related: #171, #172.

## What

This PR adds a **Launches** page (`/launches`) under Manage, after
Workspaces. It is a table with one row for each launch that Nullius made
from the builder, in a workspace or not, newest first. The rows come
from every run record in the registry (`execution.EXECUTIONS`), grouped
by `launches.group`, which the Runs page also uses. The jobs of each
record are read without their trials (`parse.parse_job(...,
trials=False)`). A sharded launch is one row in every state: its records
are grouped by the launch id that the plan gives each shard, so the row
exists before any shard writes its job.

| Column | Shows |
| --- | --- |
| State | an icon for the state of its runs that says the most: one
still going, else the worst end (failed, refused, stopped, finished) |
| Launch | its title as the Runs page shows it |
| Benchmark | the benchmark of the recipe the launch was compiled from,
by its catalogue name, linked to its page |
| Dataset | the recipe's datasets, by their catalogue names, each linked
to its tab on the benchmark's page (`/benchmarks/<key>#<dataset>`); a
dataset of the standard by its label, linked to the page's Proofs
(`#standard`); a launch with no recipe shows the dataset its jobs
recorded |
| Started | the earliest start of its runs |
| Runs | its runs of agents, one for each shard |
| Checks | its nop and oracle runs, counted the same way |
| Shards | its run records: one per machine |
| Machines | this machine or the hosts, names only |
| Size | its run folders on this machine |
| Workspaces | each workspace with a root in its run folders
(`workspace.holding`), or "none" |

A benchmark or dataset that the catalogue does not list (removed, or
foreign) is shown as the recipe wrote it, without a link.

**State.** Each state has an icon of a different shape: a play triangle
for running, an hourglass for preparing, a square in an open circle for
stopping, two bars for paused, the warning triangle for failed, an
octagon with a small x for refused, a square for stopped and the check
for finished. The colours are those of the Runs page's state dots: green
for running, preparing and finished, amber for paused and stopping, red
for failed, refused and stopped. The running icon pulses, except with
reduced motion. Each icon is an `svg` with `role="img"`. Its
`aria-label` and its `<title>`, the tooltip, are the state's word. The
header cell shows nothing, to keep the column narrow. Its name, State,
is visually hidden text for screen readers. The words and their order
are the Runs page's (`_TELLING` in `web/runs.py`). A run record that
says "done" shows as finished. A failed record whose jobs were all
refused before they started (`Execution.refused`) shows as refused. For
a sharded launch, the state is that of the shard that says the most. Six
icons are new in the sidebar sprite (`#i-play`, `#i-hourglass`,
`#i-stopping`, `#i-pause`, `#i-refused`, `#i-stop`). Failed and finished
use `#i-alert` and `#i-check`.

**Scroll.** When the columns do not fit, at any width, the table scrolls
sideways in its own box and the page does not. As on the Runs page, the
text columns keep a minimum width (Launch, Benchmark, Dataset, Machines,
Workspaces) and short values stay on one line (Started, the counts,
Size), so the table scrolls instead of squeezing its cells to one word
per line. Names still wrap, never cut. State and Launch stay at the left
edge, with the page's background, so the other cells pass under them.
The row hover paints them too. This is the rule that keeps the pick and
Run columns of the Runs page's All runs table in place, now also for a
`sticky-col` class (`style.css`).

**Toolbar.** Three buttons sit above the table, in one style, each an
icon before its text: **Columns** (a table), **Filter** (a funnel) and
**Sort by** (an up arrow beside a down arrow). The icons are new in the
sidebar sprite (`#i-table`, `#i-filter`, `#i-sort`) and decorative
(`aria-hidden`); the text names each button. The header cells have no
filter carets and no sort marks.

- Columns shows or hides every column except State, Launch and the
actions. State is in the list, ticked and disabled. Checks, Machines and
Size are hidden until a viewer shows them, so the table fits at 1280 px
without its own scroll. The choice is kept per viewer in `localStorage`.
- Filter is one menu with a group for each of State, Benchmark, Dataset,
Machines and Workspaces ("none" gives the launches that no workspace
holds). Each group lists the values, with All and None. The button shows
how many columns a filter narrows. **Clear filters** shows every launch
again.
- Sort by lists Default (the page's order, newest first) and the columns
State, Launch, Benchmark, Dataset, Started, Runs, Checks, Shards and
Size, then Ascending and Descending. A column sorts in its usual
direction first: numbers descending, text ascending. State sorts in the
Runs page's state order, not by the word. Only the sorted column's
header shows an arrow, the existing sorted-arrow style, and it carries
`aria-sort`. With Default, no header has an arrow.
- A click on a header's text, or Enter on it, still sorts by that
column. It sets the same sort as Sort by, and the menu shows it.
- Each button has `aria-haspopup` and `aria-expanded`. Opening a menu
puts the focus in it. Escape, a click elsewhere, or Tab out of the menu
and its button closes it, and Escape gives the focus back to its button.
A click on a button's icon opens its menu as a click on its text does.

The page shows 10, 25 (default), 100 or all launches, with previous and
next buttons. A filter or a sort goes back to the first page, and the
count says how many launches the filters let through. The choice is kept
in `localStorage`. All of this happens in the browser.

**Counts.** Runs and Checks come from one helper (`_tally` in
`web/runs.py`), which the Runs page's launch blocks also use, so a
launch shows the same numbers on both pages. It counts the jobs written,
less the shards that a merge written beside them stands for, and the
jobs that the records name and that are not written yet (a job refused
before it started among them), each shard one, with nop and oracle as
checks.

The sort, the filters and the Columns menu come from the Runs page's
"All runs" table, moved to `static/tables.js` and `_tables.html`
(`filter_button`). The Filter and Sort by menus are new there: the
`tools` macro and `NulliusTable.toolbar`, which a table opts in to. So
are the pages: the `pager` macro and `NulliusTable.pager`, which work
with the shared sort and filters and are tied to their table by its id,
with no id of their own. The Runs page does not opt in and keeps its
header carets, sort marks and single page. The Delete button, its
question and its dialog moved to `runs/_launch_ask.html`, which both
pages use. That is the first commit. Three changes on the Runs page: a
header without `data-type` does not sort (before, the pick column
sorted, but its style said that it did not), the sorted header carries
`aria-sort`, and its Columns button has the table icon in place of the
"▦" character.

Actions on each row:

- **Add to workspace** is an icon button on every row, before the trash
(`aria-label` "Add launch <title> to a workspace", tooltip "Add to
workspace"). Its icon, `#i-ws-add` in the sidebar sprite, is the
Workspaces grid with a plus in place of its fourth square. It is faint
at rest and the text colour on hover and keyboard focus. It opens a
dialog that asks for a workspace. The workspaces that already hold the
launch are not in the list. The last choice is **New workspace…**, which
shows a Name field. `POST /launch/<key>/add` adds the launch's job roots
to the chosen workspace (`shared.adopt_roots`), which stays closed
unless it is already open. For New workspace, the route creates a
workspace with that name, or with a random two-word name if the field is
empty (`workspace.create`), adds the roots to it and opens it, as a new
workspace from `adopt_roots` opens. It does not reuse a workspace that
already holds these roots. Both need the form token and a local client.
The notice names the workspace.
- **Delete** is a trash icon button (`aria-label` "Delete launch
<title>", tooltip "Delete launch"): faint at rest, the danger colour on
hover and keyboard focus. It deletes the whole launch, every shard. It
asks the question of the Runs page's Delete launch, whose confirm button
stays the red one, and uses the route of the Runs page (`POST
/launch/<key>/delete`). The form sends `back=launches`. The route then
finds the launch among all launches, with or without an open workspace,
and returns to Launches. What it would take (folders, size, judgements,
the workspaces that hold it, the hosts' copies) is worked out only when
the dialog opens, by `GET /launch/<key>/ask`, which renders the same
question as the Runs page from the shared `ask` macro. The page itself
only checks whether the launch can be deleted. When it cannot, the trash
stays in its place, grey, with `aria-disabled="true"`: it still takes
the focus, a click or Enter on it does nothing, and its reason is its
tooltip and its description for a screen reader (`aria-describedby`,
visually hidden text). The reason is "not while it runs", "no run
record" (a job of the launch that no run of Nullius names), or "its run
record cannot be read". The POST makes its own checks as before.
- The title, and each name in Workspaces, opens that workspace on the
Runs page at the launch. `POST /workspaces/open/<name>` takes an
optional `launch` for this and goes to `GET /launch/<key>/open`, which
finds the block that the open workspace's Runs page gives the launch:
there, a sharded launch is keyed by the records launched into that
workspace, which need not be the first record of the launch.

The Launches icon is a small rocket in the sidebar sprite. No other icon
in the sprite is like it. The icon is provisional.

For speed, the page reads the workspaces once (`workspace.holding_all`).
It finds the run of each job from one map, not with `for_job` for each
job. `execution.deletion` takes the holdings that the caller has already
read. `execution.size_of` counts a file that vanished after the folder
was listed (a run still writing replaces its own record) as 0 instead of
failing the page.

## Touches

backend (`runs/parse`, `execution`, `workspace`) · routes (`web/runs`,
`web/workspaces`) · templates and static (`runs/launches.html`,
`runs/_launch_ask.html`, `_tables.html`, `runs/index.html`, `base.html`,
`tables.js`, `style.css`, `runs/launches.css`) · docs and site
(`concepts.md`, `cli/pages.md`)

## Before and after

Seeded data: 39 launches. Among them: an ended launch on one machine in
a workspace, an ended launch in two shards on two hosts, a running
launch over three machines whose shards 2 and 3 have not written their
jobs, a preparing launch over two machines with no job written, a launch
whose workspace was deleted, a running launch on one machine, a sharded
and a whole launch with long titles that wrap, and a launch in each
other state: preparing, paused, stopping, stopped, and refused (failed
before any part was launched). Launches carry recipes of benchmarks in
the catalogue, and one of a benchmark that is not.

| | Before | After |
| --- | --- | --- |
| Sidebar, Manage group | <img width="1280" height="900"
alt="before-sidebar-1280-light"
src="https://github.com/user-attachments/assets/112ee1fb-2d3c-4c23-a3b6-21e7481ec414"
/> | <img width="1280" height="900" alt="after-sidebar-1280-light"
src="https://github.com/user-attachments/assets/84f53002-a0ed-4c42-a601-00bdd1d6c432"
/> |

| Launches page | Light | Dark |
| --- | --- | --- |
| 1280 px | <img width="1280" height="2202" alt="launches-1280-light"
src="https://github.com/user-attachments/assets/753af31f-56cc-4d7c-8d5b-2673c27f5137"
/> | <img width="1280" height="2202" alt="launches-1280-dark"
src="https://github.com/user-attachments/assets/bf15a38c-a06a-4c52-8a5c-e5fb590c4a2c"
/> |
| 390 px | <img width="390" height="2226" alt="launches-390-light"
src="https://github.com/user-attachments/assets/a6cd90b7-988a-448b-b4de-d166d7b6f5bb"
/> | <img width="390" height="2226" alt="launches-390-dark"
src="https://github.com/user-attachments/assets/62d73360-7b18-42f4-95d6-3175923f621a"
/> |
| 1280 px, every column shown, the table scrolled sideways | <img
width="1280" height="900" alt="launches-scrolled-1280-light"
src="https://github.com/user-attachments/assets/0f1d2821-903f-4a54-aff7-e7a6f83969ff"
/> | |
| 390 px, the table scrolled sideways: State and Launch stay | <img
width="390" height="900" alt="launches-scrolled-390-light"
src="https://github.com/user-attachments/assets/6a837076-5ba9-4251-bfdf-b1047c7ca06f"
/> | <img width="390" height="900" alt="launches-scrolled-390-dark"
src="https://github.com/user-attachments/assets/83ba8758-73fb-427d-a16d-c5c2d8aab4d9"
/> |

| Action | After |
| --- | --- |
| Columns menu, defaults | <img width="1280" height="900"
alt="launches-columns-menu"
src="https://github.com/user-attachments/assets/38dd2239-6b3c-4218-ae6a-56e6954cfb91"
/> |
| Filter menu, Machines on one host | <img width="1280" height="900"
alt="launches-filter-menu"
src="https://github.com/user-attachments/assets/2b07ac4d-9e79-4132-b3a3-157a250bf6a2"
/> |
| Filtered on one host, the count on Filter | <img width="1280"
height="900" alt="launches-filter-machines"
src="https://github.com/user-attachments/assets/7e17c469-276a-4451-816e-0a80586dc25b"
/> |
| Sort by menu, Shards descending | <img width="1280" height="900"
alt="launches-sort-menu"
src="https://github.com/user-attachments/assets/b9f75127-6a54-47c0-98e8-f1211f7902ed"
/> |
| Sorted by Shards: the arrow on that header only | <img width="1280"
height="900" alt="launches-sorted-by-shards"
src="https://github.com/user-attachments/assets/ac08bb04-9427-4a59-882c-0dcc80898401"
/> |
| Delete of a sharded launch | <img width="1280" height="900"
alt="launches-delete-dialog"
src="https://github.com/user-attachments/assets/cc59dc75-f189-4c0f-90fb-a42207f98414"
/> |
| Add to workspace | <img width="1280" height="900"
alt="launches-add-dialog"
src="https://github.com/user-attachments/assets/a7ec5e4e-d470-4d87-8f76-a855999e35b1"
/> |
| Add to workspace, New workspace | <img width="1280" height="900"
alt="launches-add-dialog-new"
src="https://github.com/user-attachments/assets/80c06e90-6e85-4265-93cf-c960333d949d"
/> |
| After a Delete | <img width="1280" height="900"
alt="launches-after-delete"
src="https://github.com/user-attachments/assets/2d990d8d-7e02-456a-9b29-29e2777b5e04"
/> |
| Runs page, By launch: the running launch over three machines | <img
width="1280" height="900" alt="runs-by-launch-pending-shards-1280-light"
src="https://github.com/user-attachments/assets/d0b52004-77e6-405f-9f1e-7bfbfd7a228a"
/> |
| Runs page, All runs sorted by Agent with the shared script | <img
width="1280" height="900" alt="runs-all-sorted-by-agent-1280-light"
src="https://github.com/user-attachments/assets/96538429-b55f-4247-8b7b-119181c5bafe"
/> |

## Verified

At the tip, on `main` at `60d4fc90`, in throwaway containers
(`python:3.12`, with `uv` for the Harbor build tests):

- `python3 app/tests/parallel.py`: 2050 tests in 119 modules, OK. New:
`SizeOf` in `test_run_delete.py`, a file removed between the walk and
its size.
- `uv run --no-project --with-requirements app/requirements.txt python
app/tests/parallel.py app/ui_tests`, with Node.js installed: 482 tests
in 43 modules, OK. At the first commit alone: 463 tests, OK.
- New: `LaunchesPage` in `app/ui_tests/test_run_routes.py`. It checks
that every launch is a row, its Launch cell the title alone, including a
launch that no workspace holds and a sharded launch on two hosts, and
the Runs, Checks, Shards, Machines and Workspaces cells. The Runs cell
of a sharded launch counts a run for each shard. A sharded launch is one
row with no shard rows and no chevron, its state finished, and the
question its Delete asks (`/launch/<key>/ask`) lists "(2 shards)". A row
holds no Delete question; the ask route renders it with the form,
`back=launches`, the runs and the size. Runs and Checks are the same on
both pages for a launch whose two shards a merge written beside them
stands for (1 run) and for a launch whose two jobs were refused before
they started (1 run, 1 check, refused). A workspace that holds only the
second shard of a sharded launch opens at the block its Runs page gives
the launch, and the open workspace's title link goes the same way. Three
shards with one job written are one row of 3 shards. Three shards
preparing, running and stopping on three machines, none with a job
written, are one row: running, 3 shards, the three machines, and a
disabled Delete. It checks that State is the first column, an icon with
the state's word as its name and tooltip (`#i-refused` for a failed
record whose jobs were refused, `#i-check` for finished, `#i-alert` for
failed, `#i-pause` for paused), that it sorts in the Runs page's order,
and that the State header holds only visually hidden text. It checks the
toolbar: Columns, Filter and Sort by, each with `aria-haspopup`; the
Filter groups State, Benchmark, Dataset, Machines and Workspaces, the
State group's words in the Runs page's order; the Sort by columns; no
filter caret in a header and no sorted header at load; the pager tied to
the table, 25 of 10, 25, 100 or All, with no id of its own. It checks
the sidebar item, and that the title opens the workspace at the launch.
For Add to workspace, it checks the form token, an unknown workspace
(404), the notice and the root that the workspace gets. For New
workspace, it checks the form token (nothing is created without it), a
named workspace that opens with the launch's root, an empty name that
gives a new random name though two workspaces already hold the launch,
and the Add button and a select with only New workspace when every
workspace holds the launch or when there is no workspace. It checks
Delete with no workspace open, and that a running launch has a greyed
Delete with `aria-disabled`, its reason in its tooltip and in visually
hidden text that `aria-describedby` names, a 409 from the ask route, and
its folder kept after a POST. A launch whose run record is not JSON says
"its run record cannot be read", and a launch with no run record says
"no run record". It checks the one-line empty page. It checks the
Benchmark and Dataset cells: catalogue names linked to
`/benchmarks/gsm8k` and `/benchmarks/gsm8k#test`, a standard dataset by
its label linked to `/benchmarks/longmemeval#standard`, a benchmark that
the catalogue does not list as written without a link, and a launch with
no recipe. It checks the headers and the Columns menu's columns, State
ticked and disabled, and the `aria-label` of the Add and trash buttons.
Also new: `test_parse` (a job read without its trials) and
`test_workspace` `Holding` (`holding_all`). The `RunDelete` and
`LaunchShards` tests of the Runs page pass without change.
`test_the_flat_table_is_the_second_view` now also checks that All runs
is not inside the By launch view, after the move of the Delete dialog.

Browser check, Chromium (Playwright 1.49), on the seeded data. 143
checks passed, with no page JavaScript errors:

- Launches comes right after Workspaces in the sidebar.
- Light and dark, 1280 px and 390 px: the columns shown by default. The
State header shows nothing (its text is 1 px, visually hidden) and is
named State. There is no shard row and no chevron. The running launch
over three machines is one row, running, 3 shards. The preparing launch
over two machines with no job written is one row, preparing, 2 shards.
No header has a sort arrow at load. Columns, Filter and Sort by sit on
one line, inside the page. Each has its own icon (`#i-table`,
`#i-filter`, `#i-sort`), 18 px, `aria-hidden`, before its text and
inside the button, and its text is its accessible name. The page does
not scroll sideways.
- With every column shown, at 1280 px, 1024 px and 390 px, the table is
wider than its box (by 232 px at 1280 px) and scrolls in it, Launch
keeps its minimum width, and Started and Size stay on one line. At 1024
px, scrolled to the end, State and Launch stay in place. With the
default columns at 1280 px, the table fits its box. At 390 px the table
scrolls in its own box. Scrolled sideways, in light and dark, at 390 px
and at 1280 px with every column shown: State and Launch keep their
place, Launch starts where State ends, and Benchmark moves by the
scroll. On every row in view, the point near Launch's right edge is the
Launch cell, not a cell under it. The sticky cells and the Launch header
have the page's background. On hover, the sticky cells take the row's
hover colour.
- Columns, Filter and Sort by: each closed at load with `aria-haspopup`;
Enter opens it with `aria-expanded` true and the focus inside; Escape
closes it and gives the focus back to its button; a click on its icon
opens it and a click elsewhere closes it. Opening Filter closes Columns.
Tab out of Filter closes it; Shift+Tab from Sort by's menu to its button
keeps it open, and one more closes it. In Columns, State is listed,
ticked and disabled. In Filter, the State group is named State and lists
running, preparing, stopping, paused, failed, refused, stopped and
finished, in that order. In Sort by, State is listed, Default is chosen
and the directions are disabled.
- Filter: State on failed shows only failed launches and the button
counts 1. With Machines on gpu-box too, it counts 2, nothing matches,
and the empty note shows. Clear filters shows every launch and hides the
count. Machines on gpu-box alone shows the one launch. Workspaces on
"none" shows only launches that no workspace holds. Benchmark on GSM8K
shows that one launch.
- Sort by Shards sorts descending first, with the arrow on Shards only
and `aria-sort` "descending" there and on no other header. Ascending
sorts ascending, with an up arrow. A click on the Runs header sets Sort
by to Runs, descending, with the arrow on Runs only. Sort by State gives
the state order. Default puts the page's order back, removes every arrow
and disables the directions. A click on the blank State header sorts by
State. Enter on the Launch header sorts by it, with `aria-sort`
"ascending".
- With every column shown, the page does not scroll sideways at 1280 px
or 390 px.
- 25 of 39 launches by default, the next page has the other 14, and Show
10 gives 10; its second page is 11–20, a sort goes back to 1–10, and a
filter on finished goes back to the first page and counts only the
finished launches. The pager has no id of its own; its select is
labelled Show and its buttons are named Previous page and Next page.
Runs and checks are counted from the written jobs, as on the Runs page:
the launch over three machines has 3 runs (2 not written yet) and 0
checks. Machines lists only the names. Every Launch cell is the title
alone, with no second line.
- The running launch has a grey Delete at 0.4 opacity that takes the
focus, with the tooltip "Delete launch: not while it runs" and the same
reason as its description; Enter or a click on it opens nothing. No
Delete question is asked with the page. Delete of the sharded launch
asks `/launch/<key>/ask` once, then opens the dialog with the focus on
Keep it, and lists "(2 shards)". Keep it closes the dialog and deletes
nothing. Add opens a dialog with a select of workspaces and New
workspace last. Add with New workspace and a name gives the notice, and
the row lists the workspace. Delete removes a row, with the notice.
- On the Runs page: a participant's shards fold and unfold. All runs'
Columns button has the table icon, `aria-hidden`, and its text is its
name; a click on the icon opens its menu. All runs keeps its header
carets and the ↕ mark on sortable headers, sorts by Agent, opens and
closes its header filter menu, and its Columns menu shows, hides and
remembers columns.

Render time of `GET /launches` (Flask test client, in a `python:3.12`
container limited to 2 CPUs, the median of three requests after the
first): about 0.10 s at 50 launches and 1.05 s at 500; the first request
after start takes 0.18 s and 1.25 s. With 60 runs of about 300 files
each, held by 10 workspaces, it is 0.24 s (0.33 s for the first
request). Working out the Delete question for every row on that seed
took 0.79 s a request, and 10.6 s for the first: it reads the jobs of
every workspace that holds a launch. The dialog now asks for it when it
opens. The page stays rendered on the server, and sorting, filtering and
pages stay in the browser.

## Risk

The Launches page and the Runs page's launch blocks count runs and
checks with one helper, so a change to it changes both.
`execution.deletion` can now take holdings that the caller has read, and
`workspace.holding` is now `holding_all` for one folder. Their default
behaviour does not change, and the `RunDelete` tests cover it. If the
Launches page lists a launch in the wrong group, Delete removes the
wrong runs. Delete still finds the runs again on the server from the
key, and only runs that Nullius made can be deleted. The Runs page uses
the shared script for sort, filters and the Columns menu, and the
sticky-column rule now also matches `sticky-col`. If that script or rule
breaks, those features break on both pages. To undo, revert the two
commits. Nothing is migrated.
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.

Runs: a shard that has not written its job yet is a launch of its own

1 participant