Tighten docs smoke field matching#876
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR refactors YAML issue-template field block parsing in ChangesTemplate field block parsing with exact ID matching
Possibly related PRs
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
2184b16 to
4a3577a
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1f2766fb-219b-4f50-8347-e1c2d9b07515
📒 Files selected for processing (2)
scripts/docs_smoke.pytests/test_docs_public_urls.py
xiefuzheng713-alt
left a comment
There was a problem hiding this comment.
Approved for current head f8159d69f9f4290a139bed608c2b84ba70545649.
I reviewed scripts/docs_smoke.py and tests/test_docs_public_urls.py. The change fixes the old substring-based field lookup by parsing id: lines, matching the exact field id, and ending the block at the next field with the same indentation. That keeps required-field checks scoped to the intended GitHub issue-template field while preserving the existing issue-template smoke behavior.
Validation I ran locally:
uv run --python 3.12 --extra dev python -m pytest tests/test_docs_public_urls.py -q-> 36 passed.uv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke ok.uv run --python 3.12 --extra dev ruff check scripts/docs_smoke.py tests/test_docs_public_urls.py-> passed; local.ruff_cachewrite warning only.uv run --python 3.12 --extra dev ruff format --check scripts/docs_smoke.py tests/test_docs_public_urls.py-> 2 files already formatted.- Direct probe: exact
evidencerequired field returned true;evidence_extradid not satisfyevidence; quotedid: "summary"returned true forsummary. git diff --check-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree03fdbe7f95d274818fc138beb3445fd8a997e763.
I also rechecked GitHub state before approving: this is not my PR, there were no prior human reviews on this head, mergeStateStatus=CLEAN, and the hosted Quality/readiness/docs/image check is successful. Scope is docs-smoke template-field validation only; I did not see ledger, wallet, treasury, payout, admin-token, exchange/bridge/cash-out, private-data, or MRWK price behavior changes.
|
Bounty #838 current-head review for PR #876. Reviewed head Verdict: no blocker found. GitHub state checked: |
Summary
Refs #846 / Bounty #846.
This tightens the docs smoke check so required template field ids are matched exactly instead of by substring.
Problem
The smoke check could treat a longer field id, such as
evidence_extra, as satisfying the requiredevidencefield.Fix
Validation
./.venv/bin/python -m pytest tests/test_docs_public_urls.py::test_docs_smoke_matches_required_template_field_ids_exactly -q-> passed./.venv/bin/python -m pytest tests/test_docs_public_urls.py -q-> 36 passed./.venv/bin/python -m ruff check scripts/docs_smoke.py tests/test_docs_public_urls.py-> passed./.venv/bin/python -m ruff format --check scripts/docs_smoke.py tests/test_docs_public_urls.py-> passed./.venv/bin/python scripts/docs_smoke.py-> docs smoke okRisk notes
I did not rerun the full test suite for this PR. Open PR #873 also touches the docs smoke files for Markdown anchor validation; this PR is limited to exact field-id matching and may need a rebase if that PR lands first.
Summary by CodeRabbit
Tests
Chores