mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-15 12:53:31 +08:00
The repository now has a measurable PR quality path instead of a loose set of manual checks. Coverage, quarantine governance, provider smoke, desktop smoke, and workflow wiring all produce durable reports that contributors and maintainers can inspect without reconstructing terminal output. This also fixes the desktop smoke current-runtime path so browser-driven smoke runs use the desktop default active provider instead of forcing the official current model, and records that runtime decision as an artifact. Constraint: Default PR gates must remain non-live and contributor-safe while live model checks stay explicit. Constraint: Release packaging is still GitHub Actions based, so release preflight must run before the build matrix. Rejected: Make live provider or desktop smoke mandatory on every PR | secrets, quotas, and model availability are maintainer-controlled. Rejected: Let PRs lower coverage baselines in the same change | base-branch ratchet comparison must remain authoritative. Confidence: high Scope-risk: moderate Directive: Do not relax coverage or quarantine policy without a maintainer approval label and a fresh quality report. Tested: ALLOW_CLI_CORE_CHANGE=1 ALLOW_COVERAGE_BASELINE_CHANGE=1 bun run quality:gate --mode pr Tested: bun run quality:gate --mode baseline --allow-live --only provider-smoke:* --provider-model nvidia-custom:main:nvidia-custom-main --artifacts-dir /tmp/quality-gate-live-smoke Tested: bun run quality:gate --mode baseline --allow-live --only desktop-smoke:* --provider-model current:current:current-runtime --artifacts-dir /tmp/quality-gate-desktop-smoke-fixed Tested: git diff --check Not-tested: Full live release mode with multiple providers in hosted CI; provider credentials and quota remain maintainer-controlled.
45 lines
2.1 KiB
JSON
45 lines
2.1 KiB
JSON
{
|
|
"quarantined": [
|
|
{
|
|
"id": "server:cron-scheduler",
|
|
"path": "src/server/__tests__/cron-scheduler.test.ts",
|
|
"reason": "Known unstable scheduler timing assertions; keep out of default server gate until fixed.",
|
|
"owner": "maintainers",
|
|
"reviewAfter": "2026-06-01",
|
|
"exitCriteria": "Replace timing-sensitive assertions with deterministic scheduler controls and prove the test passes in check:server for five consecutive local/CI runs."
|
|
},
|
|
{
|
|
"id": "server:providers-real",
|
|
"path": "src/server/__tests__/providers-real.test.ts",
|
|
"reason": "Live provider coverage belongs in maintainer baseline or release mode, not the default PR gate.",
|
|
"owner": "maintainers",
|
|
"reviewAfter": "2026-06-01",
|
|
"exitCriteria": "Move live behavior into provider-smoke lanes and keep only non-live provider contract tests in check:server."
|
|
},
|
|
{
|
|
"id": "server:tasks",
|
|
"path": "src/server/__tests__/tasks.test.ts",
|
|
"reason": "Known default-gate instability; keep quarantined until task timing is hardened.",
|
|
"owner": "maintainers",
|
|
"reviewAfter": "2026-06-01",
|
|
"exitCriteria": "Harden task timing with fake timers or event-based waits and prove the suite passes in check:server for five consecutive local/CI runs."
|
|
},
|
|
{
|
|
"id": "server:e2e:business-flow",
|
|
"path": "src/server/__tests__/e2e/business-flow.test.ts",
|
|
"reason": "Broad e2e flow is not deterministic enough for default PR checks.",
|
|
"owner": "maintainers",
|
|
"reviewAfter": "2026-06-01",
|
|
"exitCriteria": "Split into deterministic contract tests or move to an explicit smoke lane with bounded fixtures, logs, and timeout policy."
|
|
},
|
|
{
|
|
"id": "server:e2e:full-flow",
|
|
"path": "src/server/__tests__/e2e/full-flow.test.ts",
|
|
"reason": "Broad e2e flow is not deterministic enough for default PR checks.",
|
|
"owner": "maintainers",
|
|
"reviewAfter": "2026-06-01",
|
|
"exitCriteria": "Split into deterministic contract tests or move to an explicit smoke lane with bounded fixtures, logs, and timeout policy."
|
|
}
|
|
]
|
|
}
|