Skip to content

Fix a couple of CI failues#597

Merged
tcharding merged 2 commits into
rust-bitcoin:masterfrom
jamillambert:0520-CI-fixes
May 21, 2026
Merged

Fix a couple of CI failues#597
tcharding merged 2 commits into
rust-bitcoin:masterfrom
jamillambert:0520-CI-fixes

Conversation

@jamillambert
Copy link
Copy Markdown
Collaborator

@jamillambert jamillambert commented May 20, 2026

Now that CI uses rbmt, random combinations of features are tested in CI. This causes CI failures on PRs unrelated to the PR changes, often due to feature gates.

Fix two that came up recently.

The control character proptest assumed only ASCII whitespace could be
trimmed from the end of the input. Url::parse uses str::trim(), which
follows Rust's Unicode whitespace rules, so trailing vertical tab was
accepted after trimming and the test failed.

Fix the test to skip trailing control characters using char::is_whitespace()
instead of is_ascii_whitespace(), so the property matches the parser's
actual behavior.
Copy link
Copy Markdown
Contributor

@satsfy satsfy left a comment

Choose a reason for hiding this comment

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

tACK 86b2260

Thanks for fixing! I run into this error frequently. Tried fixing it some months ago, but in the wrong context #540 (comment)

Petty nit: on commit 86b226 webpki-root missing an s and it says tetst .

rustls_stream.rs imported and used webpki_roots::TLS_SERVER_ROOTS behind
the rustls-webpki feature. Enabling rustls-webpki in the CI test without
webpki-roots causes a failure.

Gate the import on webpki-roots, which is the feature that enables that
crate.
@jamillambert
Copy link
Copy Markdown
Collaborator Author

Fixed the commit log.

Copy link
Copy Markdown
Contributor

@satsfy satsfy left a comment

Choose a reason for hiding this comment

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

utACK 4127c8b

No changes.

Copy link
Copy Markdown
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 4127c8b

@tcharding tcharding merged commit 62b192a into rust-bitcoin:master May 21, 2026
39 checks passed
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.

3 participants