-
Notifications
You must be signed in to change notification settings - Fork 434
Quality of life on stable channel #1084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So
By removing (the unnecessary) Futher investigastion needed. I am not sure if this a bug in mdbook, rustdoc, the compiler or our code. Edit: Same error using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btielen thanks! Overall seems to be a nice life improvement, especially with book tests!
As for formatting on stable, I'd rather keep formatting on nightly. Stable formatting lacks some good features, we're intending to use. Just use make fmt
for formatting. CONTRIBUTING.md
just hasn't been updated for a while 😅
So it looks like the I made the requested changes. @ilslv The |
Almost certainly yes.
I'm not sure about that. We use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btielen thanks for the update! I'm going to merge this. I'll update the codegen tests issue.
While working on an integration for Axum, I experienced some inconveniences:
cargo test
fails on rust-stable becausejuniper_codegen_tests
fails on stablejuniper_book_tests
fails sometimes, I think because the life cycle of the build script inbook/tests/build.rs
is unpredictable.cargo fmt
fails on rust stable, whileCONTRIBUTING.md
states that formatting has to be done on stable (likecargo clippy
)cargo test -p juniper_integration_tests
takes long to build and even crashed my computer a few times for some reason. See also this todoChanges
This PR fixes these inconveniences by:
juniper_codegen_tests
on nightlyjuniper_book_tests
and usingmdbook test
insteadjuniper_integration_tests
in smaller unitsConclusion
cargo test
from the root directory should now pass all tests on stable, beta and nightlyjuniper_integration_tests
reduced from 3m56 to 2m04 on my computerjuniper_integration_tests
on windows in the CI-pipelinecargo clippy
andcargo fmt
should now be both run on stable