mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 00:17:09 +00:00
hotfix(ci): keep ai review feedback fast and deterministic
This commit is contained in:
1 parent
bbf86155bc
commit
4e05488c19
7 files changed
+192
-6
No files matched your search
@@ -35,10 +35,16 @@ describe('ai-review workflow', () => {
|
||||
expect(claudeReviewStep?.with?.path_to_claude_code_executable).toBe(
|
||||
'${{ steps.toolchain.outputs.claude_path }}'
|
||||
);
|
||||
expect(claudeReviewStep?.with?.claude_args).toContain('--tools "Read"');
|
||||
expect(claudeReviewStep?.with?.claude_args).toContain('--disallowedTools "Bash,Edit"');
|
||||
|
||||
const promptStep = steps.find((step) => step.id === 'review-prompt');
|
||||
expect(promptStep).toBeDefined();
|
||||
expect(promptStep?.run).toContain("printf '%s\\n' \\");
|
||||
expect(promptStep?.run).not.toContain("| sed 's/^ //'");
|
||||
|
||||
const reviewScopeStep = steps.find((step) => step.id === 'review-scope');
|
||||
expect(reviewScopeStep).toBeDefined();
|
||||
expect(reviewScopeStep?.env?.AI_REVIEW_PR_SIZE_CLASS).toBe('${{ needs.prepare.outputs.pr_size_class }}');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user