-
Notifications
You must be signed in to change notification settings - Fork 819
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
Manually run fmt on all files under parquet #6328
Conversation
Thanks @etseidl The check certainly seems to find the problem: https://github.com/apache/arrow-rs/actions/runs/10619078161/job/29435831298?pr=6328 The only other thing I think is important here is to provide instructions (as comments) about how to fix the CI check if it fails. E.g. "if this test fails, run |
As a comment in |
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.
Looks great to me -- thank you @etseidl
IF we get annoyed the formatting isn't working / CI fails too often we can figure out some way to get these files formatted directly via cargo fmt
(e.g. change the macro incantantations etc)
@@ -100,6 +100,13 @@ jobs: | |||
run: rustup component add rustfmt | |||
- name: Format arrow | |||
run: cargo fmt --all -- --check | |||
- name: Format parquet | |||
# Many modules in parquet are skipped, so check parquet separately. If this check fails, run: |
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.
💯 thank you
The only other thing I think is important here is to provide instructions (as comments) about how to fix the CI check if it fails. E.g. "if this test fails, run
cargo fmt .....
and check in the result" kindAs a comment in
rust.yml
? Can do. I was also thinking some words in the formatting section ofCONTRIBUTING.md
would be helpful.
Yes, the reason I think it is useful to include this information is so that if the CI test fails, the developer can just look at the CI failure report on github (rather than hunting around in the docs) and know how to fix it.
THis looks good to me -- thank you
🚀 |
Thanks again @etseidl -- sorry for the delay in merge |
Which issue does this PR close?
Closes #6179.
Rationale for this change
Modules declared in a macro are skipped by rustfmt. This only appears to be an issue in the parquet crate.
What changes are included in this PR?
Runs rustfmt for all rust source files under parquet in the CI workflow. Also updates formatting instructions in
CONTRIBUTING.md
.Are there any user-facing changes?
No