Skip to content

Remove schemars all together #3395

Merged
apoelstra merged 1 commit into
rust-bitcoin:masterfrom
tcharding:09-21-rm-schemars-test
Sep 24, 2024
Merged

Remove schemars all together #3395
apoelstra merged 1 commit into
rust-bitcoin:masterfrom
tcharding:09-21-rm-schemars-test

Conversation

@tcharding

@tcharding tcharding commented Sep 20, 2024

Copy link
Copy Markdown
Member

We introduced schemars as a personal favor to a user, and it broke our CI repeatedly but eventually it seemed like it was stable (mainly, our MSRV caught up with its MSRV) so we just let it slide. In the end having schemars on hashes but nowhere else in the rust-bitcoin ecosystem did not prove that useful.

Remove schemars all together.

Fix: #3393

@github-actions github-actions Bot added C-hashes PRs modifying the hashes crate doc labels Sep 20, 2024
@apoelstra

Copy link
Copy Markdown
Member

I'm not sure it should be a separate issue -- if we drop this test crate then we won't know when schemars eventually breaks. I think we should remove it all at once.

@tcharding tcharding force-pushed the 09-21-rm-schemars-test branch from 328cba7 to d52c56c Compare September 22, 2024 20:55
@github-actions github-actions Bot added the test label Sep 22, 2024
@tcharding tcharding changed the title hashes: Remove schemars test crate Remove schemars all together Sep 22, 2024
@tcharding tcharding changed the title Remove schemars all together Remove schemars all together Sep 22, 2024
We introduced schemars as a personal favor to a user, and it broke our
CI repeatedly but eventually it seemed like it was stable (mainly, our
MSRV caught up with its MSRV) so we just let it slide. In the end having
schemars on hashes but nowhere else in the rust-bitcoin ecosystem did
not prove that useful.

Remove schemars all together.

Fix: rust-bitcoin#3393

@apoelstra apoelstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 58704c2 successfully ran local tests

@apoelstra

Copy link
Copy Markdown
Member

I will let my ACK sit for 24 hours before merging to give Kix a chance to complain -- but because this is breaking CI I'll be more agressive about one-ack merging it than I normally would for a "rip out a feature" PR.

@tcharding

Copy link
Copy Markdown
Member Author

FTR its an easy one to revert if needed.

@apoelstra apoelstra merged commit 40ba08f into rust-bitcoin:master Sep 24, 2024
@tcharding tcharding deleted the 09-21-rm-schemars-test branch October 14, 2024 22:18
@tcharding

Copy link
Copy Markdown
Member Author

While reviewing #6163 this came up. Shall we backport this to 0.32 and 0.31 @apoelstra? I.e. remove schemars test crate all LTS branches.

@tcharding tcharding added port-0.32.x Needs porting to 0.32.x branch port-0.31.x Needs porting to 0.31.x branch Needs Backport labels May 12, 2026
@tcharding

Copy link
Copy Markdown
Member Author

cc @jamillambert

@apoelstra

Copy link
Copy Markdown
Member

Shall we backport this to 0.32 and 0.31 @apoelstra? I.e. remove schemars test crate all LTS branches.

No, that would be a breaking change.

@tcharding

Copy link
Copy Markdown
Member Author

Woops, I did not realize there was code involved. I only hit the extendend_tests/schemars crate in what ever I was doing yesterday when I did this. My bad.

@tcharding tcharding removed the port-0.32.x Needs porting to 0.32.x branch label May 13, 2026
@tcharding tcharding removed port-0.31.x Needs porting to 0.31.x branch Needs Backport labels May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-hashes PRs modifying the hashes crate doc test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI on master is broken because of schemars again

2 participants