mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-12 18:26:26 +00:00
test(autofix): sync workflow assertions with split model vars (#7297)
The autofix workflow now plumbs QWEN_AUTOFIX_MODEL (with a QWEN_PR_REVIEW_MODEL fallback) into the report steps, and the prepare step documents the verification gate's git diff --quiet check in a comment. Update the two stale assertions so they match the workflow again without dropping their original intent.
This commit is contained in:
parent
703eb9a05f
commit
5e183dda18
1 changed files with 7 additions and 2 deletions
|
|
@ -2219,7 +2219,9 @@ describe('qwen-autofix workflow', () => {
|
|||
reviewAddressReportStep,
|
||||
publishPrStep,
|
||||
]) {
|
||||
expect(step).toContain("MODEL: '${{ vars.QWEN_PR_REVIEW_MODEL }}'");
|
||||
expect(step).toContain(
|
||||
"MODEL: '${{ vars.QWEN_AUTOFIX_MODEL || vars.QWEN_PR_REVIEW_MODEL }}'",
|
||||
);
|
||||
expect(step).toContain('MODEL_DISPLAY="${MODEL:-default}"');
|
||||
expect(step).toContain(footer);
|
||||
}
|
||||
|
|
@ -2360,7 +2362,10 @@ describe('qwen-autofix workflow', () => {
|
|||
),
|
||||
);
|
||||
expect(prepareBranchAndFeedbackStep).not.toContain('git clean');
|
||||
expect(prepareBranchAndFeedbackStep).not.toContain('git diff --quiet');
|
||||
// The prepare step must not gate the unconditional build-output restore on
|
||||
// a diff check; `git diff --quiet` only appears in a comment documenting
|
||||
// the verification gate, never as an executed guard here.
|
||||
expect(prepareBranchAndFeedbackStep).not.toContain('if git diff --quiet');
|
||||
});
|
||||
|
||||
it('clears persistent autofix workdirs before agent steps run', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue