Skip to content

[TEST] #55: Fast Strategy Workflow#66

Draft
crashfrog wants to merge 1 commit into
mainfrom
agent/issue-55-tests
Draft

[TEST] #55: Fast Strategy Workflow#66
crashfrog wants to merge 1 commit into
mainfrom
agent/issue-55-tests

Conversation

@crashfrog
Copy link
Copy Markdown
Member

Summary

  • Add comprehensive acceptance tests for fast typing workflow (issue Fast Strategy Workflow #55)
  • 27 tests covering all acceptance criteria
  • Tests verify workflow structure, imports, pipeline, outputs, and execution

Test Coverage

File structure:

  • Workflow exists at torchbase/workflows/builtin/fast_typing.wdl
  • Tasks directory exists at builtin/tasks/
  • Proper WDL version declaration

Imports:

  • Imports shared MinHash tasks from tasks/
  • Imports profile lookup tasks
  • Does NOT import alignment tasks (fast strategy)

Pipeline:

  • Calls MinHash sketch task
  • Calls allele calling task
  • Calls profile lookup task
  • Linear pipeline without conditional alignment
  • No alignment fallback logic

Inputs:

  • Accepts query_sequences (File)
  • Accepts allele_database (File)
  • Accepts profiles_table (File)

Outputs:

  • Produces typing_result (File, JSON format)
  • Includes method section with strategy metadata
  • method.strategy = "fast"
  • method.alignment_used = false

Result format:

  • Valid JSON with profile_id/ST
  • Status field (known|novel_profile|novel_allele)
  • Confidence score
  • Allele profile information

Edge cases:

  • Handles empty queries
  • Handles partial profiles

Test Status

All tests FAIL as expected (RED phase).

Implementation agent will create the workflow to make these tests pass.

Generated with Claude Code

Add comprehensive test suite for fast typing workflow (issue #55). Tests
verify:
- Workflow file structure and location in builtin/
- Import of shared tasks from tasks/ directory
- Linear pipeline without alignment stage
- Standard inputs (query_sequences, allele_database, profiles_table)
- Standardized JSON output format
- Strategy metadata (strategy: "fast", alignment_used: false)
- MinHash-only allele calling and profile lookup
- Edge cases (empty queries, partial profiles)

All tests fail as expected (RED phase). Total: 27 failing tests covering
file structure, imports, pipeline logic, output format, and execution.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant