Bug Test Automation
Automates and executes all linked Test Case tickets for a Bug in Ready For Testing on a single test/{BUG_KEY} branch, verifying the regression scenario and opening a bulk test PR.
Parameters
-
removeLabel— clearssm_bug_test_automation_triggeredafter the run. -
testFilesGlob— glob pattern limiting which files undertesting/are staged for the bug test PR. -
checkOpenPR— skips the run if an open test PR already exists for the bug. -
customStatuses— overrides default tracker status names for bug/test transitions. -
autoStartReview/autoStartReviewConfigFile— dispatches the bug test PR review config once the PR is opened. -
maxReworkRounds— consecutive attributed-red rounds a TC may accumulate before an earned bounce escalates to the owner instead of re-bouncing the bug (default 2). -
responseTarget:"scm"—outputs/response.mdbecomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditionsisResponseToScm.js/isResponseToTracker.js).
Human doc: agents/docs/agents/bug_test_automation.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | bug_test_automation.json |
| ContextId | bug_test_automation |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/bug_test_automation.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Parameters (customParams):
branchCreateFnPathcheckOpenPRdryRun
preCliJSAction: preCliStoryTestAutomationSetup.js
Pre-CLI Story Test Automation Setup Action
- Source:
agents/js/preCliStoryTestAutomationSetup.js - Writes:
input/<KEY>/merge_conflicts.mdinput/<KEY>/review_policy.mdoutputs/review_replies.json
- Side effects:
- git push
- git checkout
- Parameters (customParams):
allowApproveWithSuggestionsbranchCreateFnPathdryRunimportantBlocksApprovalmaxReviewThreadsBeforeForceApprovetestFilesGlob
postJSAction: postStoryTestAutomationResults.js
Post Story Test Automation Results Action
- Source:
agents/js/postStoryTestAutomationResults.js - Side effects:
- post ticket comment (via tracker)
- Parameters (customParams):
aiRepositoryconfigPathcontentOutputcontentOutput.targetcustomStatusesdryRunlocalTeammatemaxReworkRoundsprojectKeyremoveLabelsmFallbacktestFilesGlobtrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/bug_test_automation.md
Custom params
responseTarget:"scm"removeLabel:"sm_bug_test_automation_triggered"branchCreateFnPath(used by JS action)checkOpenPR(used by JS action)dryRun(used by JS action)allowApproveWithSuggestions(used by JS action)importantBlocksApproval(used by JS action)maxReviewThreadsBeforeForceApprove(used by JS action)testFilesGlob(used by JS action)aiRepository(used by JS action)configPath(used by JS action)contentOutput(used by JS action)contentOutput.target(used by JS action)customStatuses(used by JS action)localTeammate(used by JS action)maxReworkRounds(used by JS action)projectKey(used by JS action)smFallback(used by JS action)trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js