Files
MemRelay/projects/991bd0b4-6f60-47c0-8e47-1bb256c04653/curated/development/MROTemp 项目运维与进展记录.md
T

75 lines
4.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: MROTemp 项目运维与进展记录
type: curated
permalink: main/projects/991bd0b4-6f60-47c0-8e47-1bb256c04653/curated/development/mrotemp-项目运维与进展记录
stable_id: d4e55d86-693c-4f7a-ad4f-1cb1f7deb253
scope: project
project_id: 991bd0b4-6f60-47c0-8e47-1bb256c04653
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: maintenance
revision: 1
source_memory_ids: []
source_checkpoint_ids: []
source_file_ids: []
source_git_commit: null
source_git_commits: []
source_agent_sync_ids: []
model_connection: Sub2API
model_name: git-restore
source_count: 20
source_revisions: {}
source_dispositions:
processed: 20
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids:
- curated_baseline:e7b53c05-668f-4e03-bf26-2ce743e1bdf0
- curated_baseline:2e140573-4a5f-4c14-8a79-08dd33b55585
- curated_baseline:168cdd47-5b20-4ce0-ab8a-c608a2015d0a
- curated_baseline:4bdbea5e-0993-482a-84fc-13091da4b2e8
- curated_baseline:f94294ff-29ed-4609-8ee5-2ba7ceb89fdb
- global_guidance_document:8a861a5f-35c3-4f95-bd5b-6b2297888f56
job_cited_source_ids: []
conflicts: []
supersedes: []
preferences: []
source_cursor: 53
source_hash: cd96d5b27b5d1ef34ff30350e40c12b9d9b7e389c5813755521578d1f2597d9c
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: null
created_at: '2026-08-13T18:33:59.907953+00:00'
updated_at: '2026-09-23T15:02:54.380973+00:00'
tags:
- 运维
- 进展
- 决策
- 任务
- 时间线
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
---
## 当前状态
- **脚本** `mro_to_csv.py` 已完成,实现仅提取第一个 `measurement`,去除 `MR.` 前缀,生成 GBK 编码 CSV(参考决策 `memory:2e140573-4a5f-4c14-8a79-08dd33b55585`)【source_ids: ["memory:2e140573-4a5f-4c14-8a79-08dd33b55585"]】。
- **性能**:约 34k 行 XML,处理时间约 1 秒,内存占用 < 100 MB(符合 KISS & YAGNI)【source_ids: ["memory:bf88c265-4749-4c50-85bc-4bae25298cd5"]】。
- **已知问题**:Windows 控制台直接输出 CSV 可能出现乱码,但文件本身编码正确;可通过 `chcp 65001` 或使用记事本打开解决【source_ids: ["memory:e7b53c05-668f-4e03-bf26-2ce743e1bdf0"]】。
- **上下文列**:已在 CSV 表头加入 `FileName, eNB, id, MmeUeS1apId, MmeCode, MmeGroupId, TimeStamp`,便于后续追溯【source_ids: ["memory:e7b53c05-668f-4e03-bf26-2ce743e1bdf0"]】。
## 待办任务
| 编号 | 描述 | 前置条件 | 完成标准 |
|------|------|----------|-----------|
| 1 | 将更多业务 XML 放入 `source/` 并运行脚本 | 虚拟环境已配置,`lxml` 已安装 | 在 `output/` 生成符合命名规则的 GBK CSV |
| 2 | 验证 Windows 控制台中文显示不产生误报 | 任务 1 成功 | 无报错、无中文乱码警告 |
| 3 | 为每个输入文件生成日志 (`.log`) 记录处理时间与行数 | 任务 1 成功 | `output/` 旁生成同名 `.log`,内容包含 `FileName, StartTime, EndTime, RowCount` |
| 4 | 如用户明确要求,实现 `--all-measurements` 参数以导出全部 measurement | 当前需求锁定为仅第一个 measurement | 参数生效后能遍历全部 measurement 并生成相同列的 CSV |
## 运维要点
- **凭证管理**:所有登录、SSH、数据库或 API 调用前必须先查询 Vaultwarden,唯一匹配时自动使用(全局凭证边界)【source_ids: ["memory:105b328f-4bda-4641-90a7-7282ef156316"]】。
- **记忆更新**:每次任务完成后,编辑 `aidocs/project_context.md`,在顶部静态说明下追加时间戳条目,记录“做了什么、为何、验证方式、问题与后续”。该文件已加入 `.gitignore`,不提交至 Git【source_ids: ["memory:5ed86f53-b53e-4534-8e51-d3a010069d5e"]】。
- **代码提交**:使用 `type: 中文说明` 格式提交有意义的改动,确保不泄露敏感信息【source_ids: ["memory:5ed86f53-b53e-4534-8e51-d3a010069d5e"]】。
- **依赖审查**:仅保留 `lxml==6.1.1`,如需新增库必须满足 KISS & YAGNI 原则【source_ids: ["memory:bf88c265-4749-4c50-85bc-4bae25298cd5"]】。
**标签**: `运维` `进展` `决策` `任务` `时间线`