Skip to content
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

style: lint fuzz projects in CI #283

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

Bogay
Copy link
Contributor

@Bogay Bogay commented Jan 24, 2025

This PR adds steps to run cargo fmt and cargo clippy to fuzz_write and fuzz_read, also fixed some issues found by fmt and clippy.

@Bogay
Copy link
Contributor Author

Bogay commented Jan 24, 2025

I found 4cebeba in this PR is also fixed by #279 . Maybe it can be merged first and then I can rebase later.

@Pr0methean Pr0methean enabled auto-merge January 27, 2025 17:49
auto-merge was automatically disabled February 14, 2025 18:18

Head branch was pushed to by a user without write access

@Bogay Bogay force-pushed the feat/lint-fuzz-projs-in-ci branch from df9deaf to cb89e86 Compare February 14, 2025 18:18
@Bogay
Copy link
Contributor Author

Bogay commented Feb 14, 2025

The CI was failed for build on macos 1 and I could see similar fails in other PR 2. Today I noticed there are some successful runs for the same job 3 4 which should be irrelevant about this issue. Although I am not very sure the root cause about these fails but I think it's not related to the changes of this RP.

@Pr0methean can you approve the workflows again? I guess CI should pass now.

p.s. I just pushed some changes because I wanted to see if I could trigger CI again, but it seems I can't.

Footnotes

  1. https://github.com/zip-rs/zip2/actions/runs/12945415752/job/36240998588

  2. https://github.com/zip-rs/zip2/actions/runs/12986765460/job/36214281064

  3. https://github.com/zip-rs/zip2/actions/runs/13060728073/job/36442802284

  4. https://github.com/zip-rs/zip2/actions/runs/13310471001/job/37171512567

@Pr0methean Pr0methean enabled auto-merge February 25, 2025 20:20
@Pr0methean Pr0methean changed the title feat: lint fuzz projects in CI style: lint fuzz projects in CI Feb 25, 2025
Pr0methean
Pr0methean previously approved these changes Feb 25, 2025
@Pr0methean
Copy link
Member

Approved; this will be added to the merge queue if the fuzz checks pass.

it seems that they depends on cargo-afl, so we need to use
`cargo afl clippy` instead of `cargo clippy`.
In this commit I replaced `self.path.join("/")` with
`self.path.join("")` because I think the expected result should be
the original path with trailing "/".

see: https://rust-lang.github.io/rust-clippy/master/index.html#join_absolute_paths
auto-merge was automatically disabled February 27, 2025 12:24

Head branch was pushed to by a user without write access

@Bogay Bogay force-pushed the feat/lint-fuzz-projs-in-ci branch from 802fa76 to a018d23 Compare February 27, 2025 12:24
@Pr0methean Pr0methean enabled auto-merge February 27, 2025 19:13
@Pr0methean Pr0methean added this pull request to the merge queue Feb 27, 2025
Merged via the queue into zip-rs:master with commit c6ba201 Feb 27, 2025
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.

2 participants