Skip to content

test(asciidoc): expect run whitespace in the hard line break test - #5186

Merged
vagenas merged 1 commit into
docling-project:mainfrom
yashikam19:fix/asciidoc-test-ci
Nov 5, 2026
Merged

vagenas merged 1 commit into
docling-project:mainfrom
yashikam19:fix/asciidoc-test-ci

Conversation

@yashikam19

Copy link
Copy Markdown
Contributor

Summary

main fails two CI checks, which also blocks open PRs such as #4815:

Changes

  • Update the expected runs in the test. The backend output is correct: A **bold** line in Markdown and A <strong>bold</strong> line in HTML.
  • Add the test file to the [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.
  • Not run locally: the full test suite.

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>
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @yashikam19, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI asciidoc issue related to asciidoc backend tests issue related to changes needed in the tests labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

AI triage (advisory)

Checked commit cdcf80db49. The analysis read the diff only. It did not run code from this pull request.

The PR fixes the expected runs in test_trailing_plus_is_a_hard_line_break so they include their own whitespace. It also adds tests/test_backend_asciidoc.py to the max-lines-ignore list.

Topic labels added: asciidoc, tests.

CI safety: needs maintainer care before you approve CI.

  • .github/max-lines-ignore: changes CI workflows, actions, or CI scripts
2 related pull request(s) in the same code
PR State Signal Assessment
#5175 merged referenced as #5175 related: PR 5175 is merged and added the test that this PR corrects. This PR does not repeat that change.
#3891 merged referenced as #3891 related: PR 3891 is merged and set the whitespace contract that this test now follows. It also edited the same ignore list, but for a different file.

The ai:* labels are advisory. They do not approve CI and they do not add tests:full. A new push runs this check again.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the ai:review-lgtm AI first review found no blocker or major issue (advisory) label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yashikam19

Copy link
Copy Markdown
Contributor Author

@geoHeil the two failures from main are fixed here: lint (3.10) and run-tests-core (3.10) pass.

The only real failure is run-tests-ml (3.10, ocr). It stopped in Pre-download OCR models with HTTP Error 504: Gateway Time-out while downloading the EasyOCR detection model, before any OCR test ran. code-checks / check and ci-status fail only because of that job. Could you rerun the failed job?

@vagenas
vagenas merged commit d59ca4a into docling-project:main Nov 5, 2026
50 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai:ci-needs-care AI triage: check CI-safety findings before you approve CI ai:review-lgtm AI first review found no blocker or major issue (advisory) asciidoc issue related to asciidoc backend tests issue related to changes needed in the tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants