fix(trafficassistant): support BrushFlow V5 tasks - #361
Merged
Conversation
InfinityPacer
force-pushed
the
codex/fix/trafficassistant-brushflow-v5
branch
from
July 28, 2026 08:23
8c01b71 to
a06f465
Compare
InfinityPacer
marked this pull request as ready for review
July 28, 2026 08:23
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.
问题与背景
站点流量管理 1.6 仍通过
brushsites增删站点来控制自动刷流。站点刷流 5.x 已改为多任务模型,因此保存和热加载虽然能够执行,但目标站点任务的开关不会变化。原因分析
站点刷流 V4 使用全局
brushsites列表表达参与刷流的站点;V5 使用tasks列表,并由每个任务的site_id和enabled决定调度状态。站点流量管理没有识别新配置契约,继续写入的旧字段会被 V5 忽略。解决方案
tasks列表作为 V5 配置能力标识,按site_id开启或暂停同一站点的全部任务。brushsites的原有增删逻辑。影响与风险
TrafficAssistant与BrushFlow/BrushFlowLowFreq的刷流开关联动。验证
pytest tests/v2/trafficassistant -q:7 passed。git diff --check通过。tests/run.py -q:CI 工具 33 passed,V2 2192 passed。发布事实
TrafficAssistant.plugin_version:1.7。package.v2.json:版本与v1.7更新说明已同步。关联
Fixes #360
v2下的全量测试基线。