Repository navigation
ci: check Rust function spacing in the formatting gate - #1063
Merged
LunaStev merged 4 commits intoNov 2, 2026
Merged
Conversation
Use the existing formatter's --check mode after rustfmt so CI also rejects missing blank lines between functions Add regression coverage for the CI command, missing spacing and unchanged source files Signed-off-by: hiyouwhatsapp <[email protected]>
Signed-off-by: hiyouwhatsapp <[email protected]>
Member
|
The implementation looks good overall. Integrating the existing Rust function-spacing checker into the CI formatting gate is the right approach. However, the current CI has 8 failing jobs.
Please rerun the full CI after addressing these issues. No changes to the overall implementation approach are requested. |
Signed-off-by: devlewanabe <[email protected]>
Signed-off-by: devlewanabe <[email protected]>
LunaStev
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #893
The formatting gate only ran cargo fmt, so it could miss blank lines between Rust functions.
It now uses the existing formatter's --check path, which runs rustfmt and checks function spacing without writing files. The 38 missing blank lines in 13 existing Rust files are fixed.
The reported FreeBSD "test1-O2 exit=17" is intentional output from a passing reporting regression. The actual runtime job timed out while waiting for the single-user shell prompt. Its saved guest log shows a kernel device message splitting "pathname" in the prompt. A separate fix recognizes the short prompt prefix and still requires the actual root shell prompt before executing guest cases.
Validation: