fix(ci): meta-audit gate 冒烟化——补 starlette 依赖 + CI 不 gate all_passed - #367
Open
frankiehot-tech wants to merge 1 commit into
Open
fix(ci): meta-audit gate 冒烟化——补 starlette 依赖 + CI 不 gate all_passed#367frankiehot-tech wants to merge 1 commit into
frankiehot-tech wants to merge 1 commit into
Conversation
Meta-Audit Gate 已连续失败 run #248-252(每 5 分钟 1 次): - otel_middleware.py 顶层 import starlette,但 otel extras 未声明,CI 装 .[dev] 时 ModuleNotFoundError 导致 meta_monitor 无法启动 - M0 audit_log / M3 report_freshness / M4 telemetry 依赖部署环境运行时数据, 干净 CI runner 无数据源必然 all_passed=false,gate 永远红 修复: - pyproject.toml: otel extras 补 starlette>=0.37 - meta-audit-gate.yml: install 补全 .[dev,otel,sidecar];Run 步骤容忍运行时数据 gate 非零退出;Check 改为冒烟验证(报告存在 + 可解析),真实健康门禁由部署环境 run_loop (--daemon) 承担
|
Athena seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Meta-Audit Gate 已连续失败 run #248-252(每 5 分钟 1 次),是本次远程开源仓库健康度审计(2026-08-14)的 P0 项之一。
根因
src/maref/observability/otel_middleware.py顶层from starlette.middleware.base import ...,但otelextras 未声明 starlette。CI 安装.[dev]时ModuleNotFoundError导致 meta_monitor 无法启动。all_passed必然为 false,即使依赖修复后 gate 仍红。修复
pyproject.toml:otelextras 补starlette>=0.37meta-audit-gate.yml:.[dev,otel,sidecar]run_loop (--daemon)承担(CI 冒烟只验证"meta_monitor 可运行 + 报告可生成")验证
python -m maref.observability.meta_monitor --single-run在空环境(模拟 CI)可运行并生成报告