Repository navigation
test(asciidoc): expect run whitespace in the hard line break test - #5186
Conversation
Runs carry their own whitespace since the inline group contract in docling-project#3891, so the test added in docling-project#5175 fails on main. Also exempt the test file from the line limit, which it exceeds on main. Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
|
✅ DCO Check Passed Thanks @yashikam19, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit The PR fixes the expected runs in Topic labels added: CI safety: needs maintainer care before you approve CI.
2 related pull request(s) in the same code
The |
There was a problem hiding this comment.
AI first review (advisory): no blocker found
This review covers the full diff at cdcf80db49. It read the code and did not run it.
I found no defect. In tests/test_backend_asciidoc.py the new expected runs ("A ", "bold", " line\nand more.") match what _join_lines and _flush_text_data produce. The [warn] entry in .github/max-lines-ignore is read by scripts/checks/check_max_lines.py as intended.
A maintainer makes the merge decision. This review never approves the pull request.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@geoHeil the two failures from The only real failure is |
Summary
mainfails two CI checks, which also blocks open PRs such as #4815:run-tests-core:test_trailing_plus_is_a_hard_line_break, added in fix(asciidoc): turn a trailing " +" into a hard line break #5175, expects runs without whitespace ('A'). Since the contract in feat: honor the InlineGroup whitespace contract in the backends #3891, runs carry their own whitespace ('A ').lint:tests/test_backend_asciidoc.pyhas 1541 lines, and the limit is 1500.Changes
A **bold** linein Markdown andA <strong>bold</strong> linein HTML.[warn]list in.github/max-lines-ignore, as for other long backend test files. I can split the file instead if you prefer.Validation
uv run pytest tests/test_backend_asciidoc.py: 79 passed.uv run prek run --all-files: passed.make validate: passed.