Repository navigation
fix(autofix): state the primary agent budget and use the step's headroom #8257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
07d1e1a
fix(autofix): budget the whole round, not just the agent step
c19ab88
Merge branch 'main' into autofix-agent-budget
wenshao f8fc0b5
fix(autofix): bound every long step and cap the timeout override (#8257)
qwen-code-dev-bot ff6276b
Merge branch 'main' into autofix-agent-budget
wenshao e8f59df
fix(autofix): enforce the timeout ceiling and trim review feedback (#…
72f337b
fix(autofix): force base-10 clamp and align stale bound with job cap …
60bedda
fix(autofix): close the clamp int64 escape and pin it with a bash rep…
2ea770e
fix(autofix): give the timeout clamp a floor, not only a ceiling
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declined — this one is a false positive. The assertions in this file do gate changes in CI:
ci.ymlrunsnpm run test:cias its main unit-test step (theRun tests and generate reportsstep, plus the macOS/Windows merge-queue jobs), and the rootpackage.jsondefinestest:cias... && npm run test:scripts, which collectsscripts/tests/qwen-autofix-workflow.test.js. So a future change that breaks the budget-sum invariant fails CI on every PR today; the failure scenario (regression ships silently because none of the assertions run) cannot occur. A separate step would be a redundant duplicate of that existing gate, so I'm leaving it out to avoid diff growth. Happy to add a dedicated step anyway if a maintainer wants the script tests visible as their own CI line rather than chained insidetest:ci.中文说明
拒绝——这一条是误报。本文件的断言确实在 CI 中把关:
ci.yml把npm run test:ci作为其主要单测步骤运行(Run tests and generate reports步骤,外加 macOS/Windows 的 merge-queue job),而根package.json将test:ci定义为... && npm run test:scripts,后者会收集scripts/tests/qwen-autofix-workflow.test.js。因此,未来任何破坏预算求和不变量的改动今天都会在每个 PR 的 CI 上失败;其失败场景(因为断言从不运行而静默合入回归)不可能发生。单独新增一个步骤只是对现有这道门的冗余重复,因此为避免 diff 膨胀我不加入。如果维护者希望把脚本测试作为独立的一条 CI 显示、而不是链在test:ci内部,我也乐意照做。