Give nothing_to_process its own pipeline run status and keep it out of the failed trend

Open
#2,705 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with PIPELINE_RUN_STATUS_SQL in backend/src/services/compute-pipeline-progress.ts and TREND_SQL in backend/src/services/compute-pipeline-grid.ts, then read compute-pipeline-grid.test.ts, which compares the status logic. Trace where the run status labels appear in the admin CLI and website, and find the docs listing statuses. Done means nothing_to_process has its own status, is excluded from the failed trend (with the ended-count decision resolved), and labels and docs are updated.

Written by the indexing model from the issue text.

Description

A pipeline stamp that ends nothing_to_process (#2065: the job's entry exited with one of its recipe's terminalEntryExits) keeps state = 'failed'. The admin pipeline views treat it as a failure:

  • PIPELINE_RUN_STATUS_SQL (backend/src/services/compute-pipeline-progress.ts, around line 327) maps every s.state IN ('failed', 'refused') stamp to the run status failed, so a dataset with nothing to process shows as failed.
  • TREND_SQL (backend/src/services/compute-pipeline-grid.ts, around lines 203-208) counts every s.state = 'failed' stamp in the day's failed column, so these outcomes inflate the failure trend.

This becomes common for nemar-ica: #2704 adds exit 17 (ica_data_gated, a dataset whose every recording nemar-ica's data gate rules out) to its terminal exits. Such datasets are expected and are never retried, but they would appear as failures.

Proposed:

  • Give nothing_to_process its own run status in PIPELINE_RUN_STATUS_SQL and in pipelineRunStatus, which compute-pipeline-grid.test.ts holds equal to the SQL. The test means: s.state = 'failed' AND s.refusal_code = 'nothing_to_process', checked before the failed branch.
  • Leave those stamps out of TREND_SQL's failed count, and decide whether they count as ended or get a column of their own.
  • Update the admin CLI and website labels that read the run status, and the docs that list the statuses.

Refs #2065 (the nothing_to_process outcome) and #2704 (nemar-ica's exit 17).

Posted with the help of an AI agent (Claude).

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.