From ba2d3b2490a963112674978e52dbe9049275e7ca Mon Sep 17 00:00:00 2001 From: Nixevol Date: Thu, 8 Oct 2026 15:43:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=E8=BF=87=E6=97=B6?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=81=87=E8=AE=BE=E5=B9=B6=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BC=80=E5=8F=91=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ docs/assumptions.md | 26 -------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 docs/assumptions.md diff --git a/.gitignore b/.gitignore index 9d5f7ea..166189b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ __pycache__/ runtime_config.py output/ dist/ +aidocs/ +Temp/ diff --git a/docs/assumptions.md b/docs/assumptions.md deleted file mode 100644 index 07d2775..0000000 --- a/docs/assumptions.md +++ /dev/null @@ -1,26 +0,0 @@ -# Assumptions and pending decisions - -## Implemented assumptions - -- The source directory contains seven expected source types for each complete hour. -- The newest usable hour is the newest 16-digit filename window for which all seven types exist. A newer incomplete hour is logged and skipped. -- Each ZIP contains exactly one XLSX member. The member is selected by extension because the two 700M ZIP series use a legacy filename encoding. -- Only `Sheet0` is converted and merged. The `指标(计数器)` sheet is metadata and is not included in the summary. -- NR CGI is derived as `{gNBplmn}-{gNBId}-{cellId}`. -- 4G CGI is derived as `460-00-{eNodeBID}-{小区ID}`, using the equivalent node and cell column names in each source schema. -- Only history CSV files uploaded to Metrix Storage use GBK without a UTF-8 BOM. Local converted and summary CSV files remain UTF-8 with BOM; `manifest.json` remains UTF-8 JSON. -- Source files are read-only. The script writes only below its configured output directory. -- MySQL is the scheduled-run output. The table uses one `metric_time DATETIME` column containing the source KPI start time. -- A successful run transactionally refreshes the selected hour and deletes rows for all other hours. A selected hour older than the newest database hour is rejected to prevent data rollback. - -## Pending user decisions - -- Whether the seven converted full CSV files must be retained after successful database import. -- Whether the `指标(计数器)` metadata sheet must also be stored. -- Schedule minute and expected source-file arrival delay. A safe initial suggestion is hourly at minute 20. -- Historical backfill range and retention policy for generated CSV files. -- Whether an incomplete newest hour should only warn, fail the run, or wait and retry. - -## Mock boundary - -Automated tests generate seven in-memory XLSX/ZIP sources plus a newer incomplete hour. The mock verifies both CGI rules, complete-hour fallback, schema validation, CSV conversion, summary merging, cross-midnight windows, transactional latest-hour replacement, and database rollback protection.