Repository navigation
Conversation
…cuts Add batch-executor.test.ts with 18 tests covering: - AC-1: Bug label shortcuts (bug, fix, hotfix) skip spec → [exec, qa] - AC-1: Docs label shortcuts (docs, documentation) skip spec → [exec, qa] - AC-2: issueConfig.issueType set to "docs" for docs labels - AC-3: No issueType leak for non-docs labels (enhancement, bug, empty) - AC-4: Bug labels take precedence over docs in phase selection, but issueConfig.issueType still set to "docs" independently - AC-5 (derived): Case-insensitive label matching (BUG, DOCS, Documentation) - AC-6 (derived): autoDetectPhases=false skips label shortcuts entirely Closes #460
4 tasks
…se-positives - Add missing 'patch' label test (last untested BUG_LABEL) - Add 'readme' phase shortcut test (was only tested for issueType, not phases) - Fix non-discriminating AC-6 test: use phases ["qa"] to distinguish explicit phases from bug shortcut output ["exec", "qa"] - Add includes() substring false-positive tests documenting current behavior for #461 (dispatch→patch, redocs-system→doc)
…-executor-unit-tests-for-label-based-phas
After merging main (which includes #461), substring labels like "dispatch" no longer match "patch". Update tests to verify that exact matching correctly rejects substring false positives.
admarble
deleted the
feature/460-add-batch-executor-unit-tests-for-label-based-phas
branch
April 6, 2026 21:50
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
batch-executor.test.tswith 18 unit tests covering label-based phase shortcuts and issueConfig constructionexecutePhaseWithRetry— the gap that phase-mapper tests alone cannot coverPre-PR AC Verification
batch-executor.test.tsexists with tests forisSimpleBugFix,isDocsissueConfig.issueTypeset to"docs"for docs labelsissueTypefor non-docs labelsautoDetectPhases=falseskips shortcutsTest plan
npx vitest run src/lib/workflow/batch-executor.test.ts— 18/18 passnpm run build— cleannpm run lint— cleanCloses #460