Skip to content

test: cover every line again under Rust 1.100, and bump url to 2.5.9 - #14

Merged
blaipr merged 2 commits into
mainfrom
test/coverage-rust-1-100
Nov 22, 2026
Merged

blaipr merged 2 commits into
mainfrom
test/coverage-rust-1-100

Conversation

@blaipr

@blaipr blaipr commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Two fixes in one PR because each unblocks the other's required checks (test, audit and deny are all required on main).

Coverage. The coverage gate (100% of lines) fails since the runners moved from Rust 1.99.1 to 1.100.0, which counts three lines on their own that 1.99 folded into covered neighbours:

  • http/auth.rs: the early return for a Cookie header that is not text. Now tested.
  • ldap_directory.rs and login.rs: the message line of a multi-line tracing::warn!. With tracing's log feature on (through axum's tower-log), the message also sits in the fallback branch for when no subscriber is set, which never runs under test. The messages move to consts so each call fits one line; the logged text is unchanged.

url 2.5.9. Fixes RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested blob: URLs), which fails audit and deny. Supersedes #13.

Rust 1.100 counts three lines on their own that 1.99 folded into covered
neighbours: the early return for a Cookie header that is not text (now
tested), and the message lines of two multi-line tracing::warn! calls,
which only tracing's log fallback reaches. The messages move to consts so
each call fits one line; the logged text is unchanged.
2.5.9 fixes RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested
blob: URLs), which fails the audit and deny checks.
@blaipr blaipr changed the title test: cover every line again under Rust 1.100 test: cover every line again under Rust 1.100, and bump url to 2.5.9 Nov 22, 2026
@blaipr
blaipr merged commit 9fefc0a into main Nov 22, 2026
3 checks passed
@blaipr
blaipr deleted the test/coverage-rust-1-100 branch November 22, 2026 17:45
blaipr added a commit that referenced this pull request Nov 22, 2026
The coverage step printed only the summary table, so a failing run said
how many lines no test reached but not which: finding them for #14 took
a throwaway commit. `--show-missing-lines` lists each file and its
uncovered line numbers after the table.

The step summary now picks the table's last rows by the `TOTAL` line
instead of `tail -n 3`, since that list would follow it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant