58 Commits
Author SHA1 Message Date
tsosunchia 6fdc048d97 fix(ci): 区分远端缺测并隔离 REST 烟测的外部查询 2026-11-14 21:25:16 +08:00
tsosunchia c76d1da861 build(go): 升级项目与构建工具链至 1.27.4 2026-11-14 21:03:29 +08:00
tsosunchia 3bcb25c998 fix(perf): 固定 PGO 采样与评估使用默认 Go 实验配置 2026-11-01 02:59:03 +08:00
tsosunchia b2f859a0cd fix(ci): 升级 lint 并覆盖 CLI 入口性能检查
- 升级 golangci-lint 至 2.15.0,兼容 Go 1.27.3 导出数据
- 补齐 CLI 入口的性能工作流路径并核对完整平台列表
2026-11-01 02:59:02 +08:00
tsosunchia 02c5986bfa build(go): 升级至 Go 1.27.3 并统一使用默认 JSON 后端
- 同步模块、CI 和构建工具链版本,按对照提交选择性能测试工具链
- 移除 nojsonv2 发布配置、PGO 专用配置与旧实现测试分支
- 更新 JSON 性能复测证据、发布决策和构建说明
2026-11-01 02:37:23 +08:00
tsosunchia 0f1f18eb44 ci: 按改动路径运行专项验收 (#258)
- 保留三平台基础测试、race、JSON 兼容及完整构建矩阵
- 按实际运行依赖选择专项检查,手动和差异读取失败时完整运行
- 增加路径分类回归测试和 CI 说明,排除普通文档误触发
2026-10-29 09:30:53 +08:00
tsosunchia 6bde4ca27a fix(mtr): 修复 iTerm2 选字时的 TUI 画面堆叠 (#257)
统一实时与回放的逐行差量刷新,限制可见区域并在写入失败后重建画面。

补充残行、缩放、Unicode 和短写回归,并让 PTY 验收检查可见画面。

Refs nxtrace/NTrace-core#400
2026-10-28 22:16:20 +08:00
tsosunchia fe476d0c45 fix(ci): 分离 JSON 回归检查的 stdout 与 stderr 2026-10-26 22:55:55 +08:00
tsosunchia bb9cf5363a test(mtr): 按完整字节行读取并发录制文件 2026-09-13 08:59:53 +08:00
tsosunchia 15d82abc04 feat(mtr): 添加快照保存、退出摘要与快捷键帮助
- 在实时和回放 TUI 中冻结快照并独占保存文本、JSON 或离线 HTML
- 恢复终端后输出可关闭的摘要,保留探测与录制退出状态
- 增加可滚动帮助及中文路径编辑,补充三平台交互验收
2026-09-12 23:35:42 +08:00
tsosunchia 795d7de7aa feat(mtr): 新增几何均值和抖动列及 Fields 编辑页
增加 Drop 和可重复的空格列,统一文本输出与回放间距;向 JSON report、回放及 MCP 输出新增统计字段,并覆盖零 RTT、迁移合并和终端交互。
2026-09-08 18:28:38 +08:00
tsosunchia 72ec48957f ci(fwmark): 禁止持久化凭据并验证 socketcall 路径
保留 MTR JSON 回归断言日志,便于定位 CI 失败原因。
2026-09-08 14:48:38 +08:00
tsosunchia 200cb56c1d chore(sync): 同步抓包会话隔离与终端测试修复 2026-09-08 11:45:05 +08:00
tsosunchia 1c142e81c8 test(ci): 隔离抓包会话并等待 Esc 状态变化 (#238)
为 traceroute TCP/UDP 抓包指定并筛选会话源端口,排除本机服务的无关流量;让 MTR Esc 异步测试等待状态通知,消除固定 75ms 等待导致的误判。保留错误 TOS、缺失探测包和取消超时检查。
2026-09-08 11:37:31 +08:00
tsosunchia 409441d9fb test(mtr): 验证回放专用帮助内容 2026-09-08 10:47:31 +08:00
tsosunchia 6eafad902a chore(sync): 同步主线的 TOS 与策略路由修复 2026-09-08 10:26:38 +08:00
tsosunchia b56d4f72b5 fix(tos): 补强跨平台字段设置与策略路由选源 (#236)
保留完整 8 位 TOS 参数,传播初始化失败,修复 Linux 策略路由选源与 MTR socket 轮换,并为 Windows 非零 ICMPv4 TOS 使用 WinDivert。补齐三平台抓包、Linux 隔离路由验收及平台文档。
2026-09-08 10:19:50 +08:00
tsosunchia 4e29f33cc8 fix(mtr): 修正回放帮助入口并拒绝未知响应类型 2026-09-08 10:11:13 +08:00
tsosunchia b76182eb24 fix(mtr): 统一录制信号处理并保留中断退出码 2026-09-08 09:33:44 +08:00
tsosunchia cdfd5c9034 test(mtr): 将三种构建的录制回放终端验收接入 CI 2026-09-08 08:30:37 +08:00
tsosunchia 75a4ed2140 feat(trace): 支持 Linux fwmark 策略路由探测 (#233)
* feat(trace): 支持 Linux fwmark 会话级策略路由探测

同步源地址选路与发送 socket 标记,覆盖三协议、双栈及 MTR 重建;增加 JSON 会话参数和隔离双出口回归。

* test(fwmark): 显式指定隔离网络的接口名称

* test(fwmark): 等待即时抓包就绪并修正错误输出检查

* fix(fwmark): 随机源端口不参与固定端口路由查询

* test(fwmark): 验证随机端口路由和显式接口约束

* test(fwmark): 验证目的地回包并隔离 ICMP 限速干扰

* test(fwmark): 移除内核不接受的源端口规则

* fix(fwmark): 路由查询前分配会话固定源端口

* fix(fwmark): 按原始 socket 语义查询路由并忽略传输端口
2026-09-08 07:28:07 +08:00
tsosunchia ca310448a4 feat(doctor): 增加独立环境自检与跨平台路由诊断 (#232)
- 汇总目标解析、源地址、路由预测与后端初始化结果
- 保持自检不发包、不安装驱动,并区分失败与未验证状态
- 隐藏调试日志凭据,补充三平台验收与文档
2026-09-07 21:47:07 +08:00
tsosunchia aeb6ee8c89 feat(mtr): 支持自定义统计列与 TUI 列编辑 (#231)
- 为 MTR 文字输出添加八项既有统计列的选择与排序
- 支持 TUI 列编辑、暂停和窗口缩放时串行重绘及终端恢复
- 在初始化前校验模式冲突并保持默认布局和 RAW/JSON schema
- 补充跨平台 PTY/ConPTY、排版、输入和并发回归及中英文说明
2026-09-07 16:42:13 +08:00
tsosunchia 205bdaa7f1 feat(mtr): 支持实时 NDJSON 与最终 JSON 报告 (#230)
- 为 full、tiny 和 ntr 提供 MTR JSON 输出并保留传统模式
- 传播初始化和监听错误,完善取消、资源清理及非零退出
- 补充事件顺序、信号处理和跨平台回归测试及文档
2026-09-07 14:35:59 +08:00
tsosunchia c7fe673d23 fix(ci): 显式使用 UTF-8 读取 Windows 回归输出 2026-09-06 11:36:07 +08:00
tsosunchia dbb3f58c25 test(ci): 验证 Windows 批处理中文路径与参数解码 2026-09-06 11:24:11 +08:00
tsosunchia abe3ef387f fix(ci): 使用 UTF-8 执行 Windows 回归批处理 2026-09-06 11:10:55 +08:00
tsosunchia ef143a73d6 feat(cli): 添加显式传统模式并开放 tiny MTR 2026-09-06 10:57:58 +08:00
tsosunchia 954267663d fix(bench): 覆盖 Geo 缓存并校验 profile 摘要
- 在复合 workload 中同时训练直接、缓存命中与受控未命中路径
- SHA-256 计算失败时中止 profile manifest 生成
2026-09-05 16:41:44 +08:00
tsosunchia 8cb5929ede fix(bench): 校验 PGO 工具链并修正吞吐统计
- 固定并校验 Go 1.27.1,补充可移植 SHA-256 计算\n- 计入 WebSocket envelope 与 TCP packet 字节数\n- 明确 fake Geo provider 直连并固定二进制 JSON 后端
2026-09-05 16:25:16 +08:00
tsosunchia 6580ebc335 docs(performance): 记录默认 PGO 的 NO-GO 结论 2026-09-05 16:09:51 +08:00
tsosunchia edfc38cdf6 test(bench): 建立可复现的 PGO 综合工作负载 2026-09-05 15:50:46 +08:00
tsosunchia 12f614e082 fix(test): 固定 JSON 合同的跨平台验证环境
- 固定 JSONL golden 使用 LF,避免 Windows checkout 改写字节合同
- 限制启动与 RSS 测量脚本只在 macOS 执行
- 在 REST 合同测试创建 Gin context 前启用测试模式
2026-09-05 14:30:07 +08:00
tsosunchia f612c70f02 docs(json): 固定 Go 1.27 发布运行时决策 2026-09-05 14:10:17 +08:00
tsosunchia 98740a1ffa test(bench): 支持复现 Darwin 发布链接参数 2026-09-05 14:06:47 +08:00
tsosunchia d00b254c91 test(bench): 记录帮助启动耗时与峰值内存 2026-09-05 13:58:48 +08:00
tsosunchia 164eeabc3a test(bench): 添加 JSON 后端对照基准脚本 2026-09-05 13:52:11 +08:00
tsosunchia 2e13e6960a ci(perf): 明确基线运行时并合并输出写入 2026-09-04 14:42:52 +08:00
tsosunchia 2cab379924 test(bench): 建立 geo mtr websocket 性能与输出基线 2026-09-04 11:43:21 +08:00
tsosunchia bf4946243f Prevent stale labels, flaky websocket tests, and speed misreports
Bound Leo IP sends and stale response delivery by timeout, bootstrap speed-mode metadata lookups without JSON banner noise, respect --speed=false pre-dispatch, validate speed source binding, cap probe response reads, avoid caching empty nali labels, treat server-only speed metadata as healthy when no client IP is available, make websocket async tests event-driven, restart Leo receive parsing reliably, close websocket receive channels exactly once, send Leo requests on the waited websocket, back off failed Geo/RDNS metadata lookups, refresh MTR API info cache timestamps after lookup, report upload response read errors, avoid launching latency probes after cancellation, and keep speed JSON tests tolerant of degraded latency samples.
2026-04-19 23:45:16 +08:00
tsosunchia 1b489476f6 fix speed regression checks 2026-04-18 18:48:13 +08:00
tsosunchia 756508006d add nexttrace speed mode 2026-04-18 18:23:49 +08:00
tsosunchia a1f46dd974 Ignore pow token fetch logs in regression JSON checks 2026-04-08 23:29:45 +08:00
tsosunchia f9214c4095 Fix Windows deploy options JSON parsing 2026-04-08 22:58:17 +08:00
tsosunchia d40677a186 Fix Windows MTU source-device handling 2026-04-08 22:51:36 +08:00
tsosunchia 844d3c1742 Harden regression scripts and preserve WinDivert errors 2026-04-08 22:31:38 +08:00
tsosunchia 49b0144cca Fix deploy listener race and ICMP source-device gating
- let deploy mode bind the listener before printing the Web UI address and report the actual bound endpoint when :0 is used
- switch Unix and Windows regression deploy checks to parse the real base URL from deploy logs instead of preallocating a port in the script
- add Unix deploy cleanup traps and make runner scripts temporary/self-cleaning
- gate ICMP source-device propagation to Linux and macOS so unsupported Unix targets keep --dev as source-address selection only
- add server and trace regression tests for the new listener and source-device behavior
2026-04-08 21:59:21 +08:00
tsosunchia 4d5f682393 Fix Windows source-device errors and WinDivert retries 2026-04-08 21:14:43 +08:00
tsosunchia 0ddac64b7a Fix source-device normalization and deploy smoke tests 2026-04-08 20:46:33 +08:00
tsosunchia 4e9841e8f9 Align installer smoke test with NTrace-core fallback 2026-04-08 19:32:52 +08:00