fix(ci): capability audit 丢掉 Next.js 路由组,公开 URL 不变
Gitea run 2697 唯一失败:侧栏把 /chart /ephemeris /reports 移进 app/(secondary)/ 后,_scan_app_routes 把文件夹名写进 app_routes。扫描时丢掉括号段。BUG-753。
This commit is contained in:
@@ -11762,3 +11762,20 @@
|
||||
- 相关记录:BUG-740、BUG-749
|
||||
- 复发自:无
|
||||
- 修复版本:待发布
|
||||
|
||||
## BUG-753 | 次级页移进 `(secondary)` 路由组后 capability audit 把文件夹名当成公开路由
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-09-16
|
||||
- 最近更新:2026-09-16
|
||||
- 影响面:Gitea `backend-quality-gate` run `2696` / `2697`、`tests/test_api_server_security.py::test_capability_audit_scans_registry_and_local_sources`、`scripts/jyotish_api_server.py` `_scan_app_routes`
|
||||
- 用户现象:用户看不见。`dc732825` 把校正门禁红修绿后,staging 推送 run `2697` 仍 `1 failed, 797 passed`:`app_routes` 出现 `(secondary)/chart` 等,期望仍是 `chart` / `ephemeris` / `reports`。
|
||||
- 触发条件:侧栏统一把四个次级页移进 `app/(secondary)/` 后跑 capability audit 精确集合。
|
||||
- 根因:BUG-713 同类。`_scan_app_routes` 把文件系统相对路径当公开路由,Next.js 路由组括号不进 URL。侧栏单和精度门槛修复单都只跑了前端矩阵,没跑这条 Python 契约。
|
||||
- 修复:扫描时丢掉 `(…)` 路由组段。公开 URL 集合不变,不把 `(secondary)/chart` 写进期望列表。
|
||||
- 验证:`pytest tests/test_api_server_security.py::test_capability_audit_scans_registry_and_local_sources`。
|
||||
- 防复发:新增或移动 `frontend/src/app/**/page.tsx` 必须同一提交跑 capability audit。路由组不是新入口。
|
||||
- 相关记录:BUG-014、BUG-126、BUG-143、BUG-454、BUG-713
|
||||
- 复发自:BUG-713
|
||||
- 修复版本:待发布
|
||||
|
||||
|
||||
Reference in New Issue
Block a user