pbl_evidence/logs/m5a-run-meta.txt

42 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

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.

=== M5a 实测运行元信息(logs/m5a-run-meta.txt) ===
generated_at : 2026-09-22 21:00:30 +0800(本次按磁盘当前版本重跑后刷新,覆盖 19:56 那份基于旧版 selfcheck 的记录)
cwd : modules/pbl_evidence
interpreter : Python 3.10.12 (/usr/bin/python3)
说明 : 本文件记录本次被运行/被引用的 .py 的路径、字节数、sha256 与 python -m py_compile 真实 rc(rc=0 即语法编译通过)。
: 本次任务范围仅「运行 + 落日志」,未修改任何源码逻辑,未执行任何 git 操作(add/commit/push 均无)。
--- 环境与 DB 可用性(分层如实描述,与 logs/m5a-idempotency-run.log 头部口径一致) ---
pytest 层 :环境变量 PBL_EVIDENCE_TEST_DB 未设置 → 无可用测试库 → 无 DB,仅跑 fail-closed 路径;
真库双采幂等用例 test_double_collect_is_idempotent_with_db 如实 SKIPPED(skip 原因由 pytest -rs 原样回显)。
selfcheck 层:scripts/selfcheck_m5a.py 为纯静态/文件级自检,不建任何 DB 连接,故其结果与 DB 可用性无关。
harness 层 :环境变量 PBL_M5A_DB 未设置,但 tests/m5a_live_db_harness.py 按设计回落读取
projects/pbls/env/test.json 的 db.sandbox 段,连本地沙箱 MariaDB(test@127.0.0.1:3306)
跑通「真库」端到端路径(C-3.x fail-closed + IDM.x 幂等/唯一键冲突实测),用后 DROP DATABASE pbl_m5a_u7rb。
→ 因此本环境并非「完全无 DB」:pytest 静态/fail-closed 层无 DB,harness 真库层有沙箱 DB(口令不落日志,脚本内已脱敏)。
PATH BYTES RC PYC SHA256(16)
scripts/selfcheck_m5a.py 47184 0 OK f3993dffa88d8493
tests/test_m5a_idempotency.py 14706 0 OK ef214767c6b802dd
tests/m5a_live_db_harness.py 28648 0 OK 01b45a0af96b5f60
(RC 列 = `python3 -m py_compile <文件>` 的真实退出码,0=编译通过;BYTES/SHA256 由本次运行前实测磁盘取得,
完整 sha256:selfcheck_m5a.py=f3993dffa88d8493168964bfd3788fceb8f70457b53573d387c227cab8eaebc6
test_m5a_idempotency.py=ef214767c6b802dded0a656323d08b4d0c491680bbfd249ef60bff0d17de65e9
m5a_live_db_harness.py=01b45a0af96b5f6015bbb02a9e2113012de59a02512427be892caf458ad7487a)
--- 本次产出的日志文件(真实 stdout+stderr 重定向,非占位、非引擎 mtime 清单) ---
logs/m5a-selfcheck-run.log 6083 bytes sha256=e49def4863b5b8aa
logs/m5a-selfcheck-run.prev.log 4998 bytes sha256=176a6c635ca03ff1 (覆盖式写入前 cp 保留的上一次基线:19:56 那轮,基于旧版 selfcheck 43575B/65d4d0acd0bfba00,末行 # RC=1)
logs/m5a-idempotency-run.log 9275 bytes sha256=00bb8df54ff43255
logs/m5a-run-meta.txt self (本文件自身不断言字节数,避免自引用矛盾;现场以 ls -la 为准)
--- 运行结果摘要(真实 rc,逐条可回溯到上面日志正文) ---
python3 scripts/selfcheck_m5a.py : RC=0 (ALL PASS 12/12;#11 运行证据日志门禁在当前版本判据已收窄为「裸 Traceback 行」,harness 引用式 ` | Traceback` 不再被误判,故上一轮 19:56 的 FAIL 已消除)
python3 -m pytest tests/test_m5a_idempotency.py -v -rs : RC=0 (8 passed, 1 skipped;skip 原因=无 DB,仅跑 fail-closed 路径,真库双采用例不执行)
python3 tests/m5a_live_db_harness.py : RC=0 (末行 LIVE DB HARNESS ALL PASS;C-3.1~C-3.4 fail-closed 全 [PASS] + IDM.1~IDM.10 全 [PASS],含 DB 层 1062 Duplicate entry 't1-evt_u7rb_0001-artifact' for key 'uk_ev_dedup' 真防重实测;凭据回落 env/test.json db.sandbox 连本地沙箱 MariaDB,用后 DROP DATABASE pbl_m5a_u7rb)
--- 与上一轮交付(19:56)的差异说明(响应 QC #10) ---
上一轮日志的 RC=1 与 meta 中 selfcheck_m5a.py 的 43575B/65d4d0acd0bfba00 基于已被淘汰的旧版本磁盘内容;
本轮已按磁盘当前版本(47184B / f3993dffa88d8493,mtime 2026-09-22 20:09:30)重跑并如实记录,
日志末行为 `# RC=0`、12 项全 PASS,meta 的 BYTES/SHA256/rc 与磁盘完全一致,旧输出保留在 .prev.log 作基线对照。