Repository navigation
Phase 4b: admin pipeline dashboard and coverage card - #587
Merged
neuromechanist merged 19 commits intoNov 23, 2026
Merged
neuromechanist merged 19 commits into
neuromechanist merged 19 commits into
Conversation
Deploying nemar-website with
|
| Latest commit: |
bec1a06
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e8a07abd.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-586-pipeline-d.nemar-website.pages.dev |
3 tasks
Contributor
Author
|
Review converged: round 1 by a two-reviewer panel (client+tests; safety, copy, accessibility), round 2 delta; every finding fixed, the last round verified by the driver (bec1a06). The only red check is test/compute-pipeline-contract-drift.test.ts, which reads nemar-cli dev and is red by design until the nemar-cli epic #2324 merges to dev (it passes against the epic branch locally). Merging into the website epic branch per the phase-to-epic gate; full green CI is required at the epic-to-staging merge, after nemar-cli dev carries the contract. |
neuromechanist
merged commit Nov 23, 2026
e66148e
into
feature/issue-586-epic-pipeline-progress
3 of 4 checks passed
This was referenced Nov 23, 2026
Closed
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.
Summary
Phase 4b of the ADR 0134 epic: a new admin tab, Pipelines, over the three read-only routes nemar-cli phase 4a serves (
/admin/compute/pipeline/{coverage,grid,runs/:stamp}, nemar-cli PR #2335)./admin/pipelines: one coverage card per recipe (eligible datasets whose newest version has a succeeded run of the current recipe version, complete, and at any recipe version) with its failed runs per day; a placeholder recipe is shown with a pill; each card's status counts link to the grid./admin/pipelines/<recipe>: the legacy pipeline status table, datasets by checkpoints, each cellpassed/totalwith the CLI's code (F<n>,x,R,S,W,P,?,-), an icon and a full phrase for screen readers; filters by status, recipe version, executor, runner and dataset; keyset paging; a filter that is not valid is dropped and named./admin/pipelines/runs/<id>: each checkpoint's counts, the failed recordings it lists with codes and steps, what it leaves out, and the listed codes; one 404 for a malformed id and forstamp_not_found./admin: a "Processing recipes" panel with the cards of the recipes that dispatch, read in the page's existingPromise.alland failing on its own.Read only and never a sync: the client has no field for
syncand a source guard pins its absence. The page explains the lag in the CLI's own words. An API that predates the routes reads "not available on this server yet".Part of epic nemarOrg/nemar-cli#2324
Refs #586 (close by hand after the merges; a PR into an epic branch closes nothing).
Owner answers (2026-11-23)
nemar-floorruns on dev (test fixtures only, never nm000103-107) after the nemar-cli epic reachesdev.--seed-pipelineinscripts/local-backend.mjs.Merge order
One-directional: nemar-cli reads nothing this PR adds. 1) Merge this PR into the website epic branch (CI red only on
test/compute-pipeline-contract-drift.test.ts, which reads nemar-clidev). 2) The nemar-cli epic #2324 merges todev. 3) Rerun website CI (green), then merge the website epic intostaging. 4) Browser check on test.nemar.org aftercurl -s https://test.nemar.org/version.json, then close #586 by hand.Test plan
bun run lint(543 files, no fixes),bun run typecheck(0 errors),bun run build(complete)scripts/capture-compute-pipeline-fixtures.mjs,scripts/capture-pipeline-cli-help.mjs); a re-capture writes identical bytes (git diff --exit-code test/fixtures/compute)NEMAR_CLI_COMPUTE_ADMIN_CONTRACTat the epic checkout: 226 passed (drift, CLI parity, source guards, client, view, tabs, overview)NEMAR_CLI_*variable pointed at the epic checkout: 243 files, 6743 tests passedsync=1added to the query (2 fail), a path printed withoutdisplaySafeLine(1), an unknown mark drawn as success (1),Date.parseon a served time (2),GRID_STATUSESreordered (1), the runner-with-Tapis rule dropped (1), the placeholder filter removed (1)LOCAL_BACKEND_JOBS=1 ... scripts/local-backend.mjs --seed-pipeline,bun run dev): every page rendered over HTTP with the owner's session and checked in the HTML (tab, cards, placeholder pill, status links, grid caption and cells, next-page link, the runner-with-Tapis notice, run sections and failures, 404 forabcand999999,Cache-Control: no-store)devcarries the grid contract (expected)/admin,/admin/pipelines,/admin/pipelines/nemar-floor(with?limit=2,?status=failed, a runner filter), a run page and/admin/pipelines/runs/abcon test.nemar.orgDeviations from the plan
compute-pipeline-labels.tsis added totest/compute-dashboard-ui.test.ts's list of sentence files (it is the tab's words file, ascompute-labels.tsis the dashboard's).computeFetchand itsInittype are exported fromcompute-admin-api.ts(one-word changes).Review round 1
Two reviewers; every finding fixed on this branch (commits ff09295 to c12ad5c).
strOrNullnow treats an absent key as a shape error; tests dropnext_afterfrom a grid page andoutcomefrom a run, both readcompute_admin.error.malformed.isNotAvailable(true for the router's code-less{error, message}404, false forstamp_not_foundandrecipe_unknown),getPipelineCoverage(7)ending?days=7and no query when undefined, and a client timeout (timeoutMs: 1, fetch waiting on the signal) readingcompute_admin.error.timeout. The two round-1 survivors (isNotAvailable ignoring the code, days never sent) now fail.statusCountsmarks each wordknown; grid chips and landing counts link only known statuses and draw unknown ones as neutral text;pipelinePagerbuilds Next only from a cursor matchingCOMPUTE_DATASET_ID_RE; docblocks say so; source-scan assertions added.matched.by_statusandmatched.totalwhen filters are set, else the summary.gridLead,coverageLead,failuresLead) before the pinned clauses, which stay verbatim.stalledMeaningtakes seconds and says minutes only when whole; parity test covers 90 s and 180 s.-as the CLI does.recipe_unknownshows the not-a-recipe copy with a 404, like a malformed segment.ComputeSectionErrorwhatis a lowercase noun phrase (whatGrid,whatCoverage,whatRun).RUNNER_ID_RE; a hiddenlimitinput when the query has one./adminsetsCache-Control: no-storeafter the gate; OVERVIEW joins the gate and no-store guard set.Object.values(PIPELINE_HELP)and derives flags from the exportedPIPELINE_GRID_FILTERS, whichfilterParamsalso uses.PIPELINE_RECIPE_SEGMENT_REdocblock names the route-localRECIPE_NAMEit mirrors; export requested in Export the pipeline recipe-name pattern from the contract nemar-cli#2338.Object.hasOwn; tested with a column namedconstructor.seedPipelineRunsthrows whenrecordProgressis notaccepted.Gates:
bun run lintclean,bun run typecheck0 errors, targeted tests 257 passed (10 files,NEMAR_CLI_COMPUTE_ADMIN_CONTRACTat nemar-cli 146c3efa). Mutations, each now failing at least one test: isNotAvailable ignoring the code, days never sent, absent nullable read as null, cells with a prototype, pager trusting any cursor, unknown status linked, stalled always in minutes, passed-without-counts blank.Review round 2
Fixed in bec1a06.
gridChipsin the view: chips and "All" always countsummary.by_statusandsummary.eligible(the CLI's "all runs" line); any filter adds the separate "Matching N" line frommatched.total. View tests with a status filter (status_failed) and with only a runner filter.runMarkView: a checkpoint with no counts shows its mark word; the grid cell keeps-. Tested.Gates:
bun run lintclean,bun run typecheck0 errors, targeted tests 262 passed (10 files, contract at nemar-cli 146c3efa),bun run buildcomplete.