master CI is red (ratchet baselines) + Windows-only Python tooling/test bugs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 19.9k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 30
Description
Summary
Two classes of problem, both verified on a Windows host with no Rust toolchain (so this covers only the Python/CI surface; no .rs touched):
1. master CI is currently RED (highest priority)
On a clean checkout of origin/master (ccf6153e), three ratchet checkers fail because merged growth outran their baselines:
check_code_size_budget.pycheck_test_size_budget.pycheck_swallowed_error_budget.py
.github/workflows/ci.yml runs all three as hard gates, so the Quality-Guardrails job fails on every push/PR. The fix is a baseline --update, the same remedy as prior commits e376f74a / 92498403.
2. Windows-only Python tooling/test bugs (invisible in Linux CI)
analyze_runtime_memory_log.pyreads logs withpath.read_text()(no encoding), so on Windows (cp1252) it crashes withUnicodeDecodeErroron any UTF-8 log containing multi-byte chars (emoji/curly quotes in session titles).reload_recovery_audit.pyreads durable recovery*.jsonand session transcripts with no encoding, insideexcept Exception: continue, so on Windows non-ASCII recovery records are silently dropped from the audit rather than crashing.test_openrelay_discovery_test.pylaunches its fixture server by executing a.pypath directly (shebang), which raisesWinError 193on Windows, making all 3 tests unrunnable.check_powershell_syntax.ps1only scannedscripts/, leaving.github/scripts/*.ps1(run by Windows CI) unguarded.
Fix
A branch with 6 low-risk commits (all under scripts/, 0 .rs) fixes each of the above, each with a regression test where applicable. Every non-compile CI gate verified green via a one-command reproducer. PR incoming.
Environment
Windows, cp1252 locale, no cargo/rustc (so Rust-gated jobs were not run; unaffected since no Rust source changed).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .github/workflows/ci.yml and reproduce the Quality-Guardrails failures from the three ratchet checkers: check_code_size_budget.py, check_test_size_budget.py, and check_swallowed_error_budget.py. Then inspect analyze_runtime_memory_log.py, reload_recovery_audit.py, test_openrelay_discovery_test.py, and check_powershell_syntax.ps1, including the .github/scripts/*.ps1 coverage. Done means the baseline gates and the Windows regression tests pass, with the reported encoding, fixture-launch, and PowerShell coverage issues addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, powershell, python
- Domain
- ci-cd, testing-qa, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100