Skip to content

[CU-1k5fpdaa5gp] Add workbench runs orchestrate: the server groups samples into runs - #201

Open
mpanik-dnastack wants to merge 3 commits into
mainfrom
orchestrate-runs-from-samples-CU-1k5fpdaa5gp
Open

mpanik-dnastack wants to merge 3 commits into
mainfrom
orchestrate-runs-from-samples-CU-1k5fpdaa5gp

Conversation

@mpanik-dnastack

Copy link
Copy Markdown

Ticket: https://app.clickup.com/t/1k5fpdaa5gp (ticket 2 of epic 1k5fpdaa5gj).

A new command submits a sample selection the way Workbench does. It posts a flat list of samples to ewes POST /{ns}/ga4gh/wes/v1/runs/orchestrate; the server groups them, reuses earlier runs and links prerequisites.

  • Flags: --workflow, --version, --sample (repeat), --storage-account, --engine, --engine-params, --tags, --dry-run, --no-ingest-variants.
  • --dry-run asks the server for a preview and creates nothing. (On runs submit the same flag means "print the request, call nothing"; that command is unchanged.)
  • No --engine-params: the command sends the engine id plus the engine's default preset values, as the browser does. No default preset: the engine id only.
  • ingest_variants is not sent: the server decides from the workflow's tertiary label. --no-ingest-variants sends false for the named workflow, not its prerequisites.
  • Never sends sample_groups.
  • Prints the response as JSON. A refusal (422) or an outage (503) prints the server's error body and exits non-zero.

runs submit and submit_batch are not changed; their tests pass unedited.

Release only after the ewes change that adds samples and dry_run to orchestrate is in production: an older ewes ignores dry_run and would create the runs.

  • A preset id that does not exist (404) fails with "Unable to find engine parameter preset"; any other lookup error keeps its own message. Nothing is submitted.
  • --tags takes a JSON object; without it no tags field is sent.

Tests: request shape (no ingest_variants, no sample_groups, false with the flag, storage account on every sample), engine parameter and preset cases, --engine, no default engine, storage account resolution, tags, the full printed response, 422/503 output and exit code, client URL and body. The four changed test files: 64 passed. ruff check dnastack: clean.

🤖 Generated with Claude Code

mpanik-dnastack and others added 3 commits December 2, 2026 08:56
…mples into runs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ng-preset error, test the command

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
12658 8482 67% 30% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
dnastack/cli/commands/workbench/runs/commands.py 56% 🟢
dnastack/client/workbench/ewes/client.py 64% 🟢
dnastack/client/workbench/ewes/models.py 98% 🟢
TOTAL 73% 🟢

updated for commit: a0bdc14 by action🐍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant