• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 25955687064
67%

Build:
DEFAULT BRANCH: main
Ran 16 May 2026 07:05AM UTC
Jobs 1
Files 302
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2026 07:03AM UTC coverage: 66.768% (+0.04%) from 66.729%
25955687064

push

github

web-flow
chore(tools): Fix rustdoc page parsing in web fetch tool (#643)

The HTML section extractor had two failure modes when used against
rustdoc-generated pages (docs.rs or local `cargo doc` output).

First, the section listing was polluted with page-chrome IDs
(`rustdoc_body_wrapper`, `rustdoc-toc`, `rustdoc-modnav`,
`main-content`). These were picked up by the ancestor-id fallback in
`resolve_heading_id` because rustdoc wraps the whole page in elements
carrying those IDs. A new `RUSTDOC_SCAFFOLDING_IDS` filter drops them
from the listing while still allowing explicit `sections=[...]` requests
to target `main-content` on non-rustdoc pages.

Second, method and variant documentation was never returned. Rustdoc
places the signature heading inside `<section id="method.X">` and puts
the prose in a sibling `<div class="docblock">` outside the section —
optionally further wrapped in a `<details>` toggle. The extractor was
walking the section's own children, finding nothing, and returning an
empty string. Two new helpers, `extract_rustdoc_section` and
`preview_from_section_docblock`, resolve the sibling docblock in both
the flat and toggle layouts. `extract_section_html_from_doc` now
short-circuits into this path for any `<section>` target, and the
preview walk gains a matching fallback so listing previews agree with
extracted bodies.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

58 of 61 new or added lines in 1 file covered. (95.08%)

1 existing line in 1 file now uncovered.

26310 of 39405 relevant lines covered (66.77%)

192.27 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
77.31
2.38% .config/jp/tools/src/web/fetch/html.rs

Coverage Regressions

Lines Coverage ∆ File
1
77.31
2.38% .config/jp/tools/src/web/fetch/html.rs
Jobs
ID Job ID Ran Files Coverage
1 25955687064.1 16 May 2026 07:05AM UTC 302
66.77
GitHub Action Run
Source Files on build 25955687064
  • Tree
  • List 302
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25955687064
  • 6cc7b312 on github
  • Prev Build on main (#25955030295)
  • Next Build on main (#25955866145)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc