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

project CI refresh #33

Merged
merged 19 commits into from
Apr 12, 2024
Merged

project CI refresh #33

merged 19 commits into from
Apr 12, 2024

Conversation

cpu
Copy link
Contributor

@cpu cpu commented Apr 9, 2024

Continuing the CI standardization and refresh started in rusticata/rusticata-macros#8

cpu added 18 commits April 9, 2024 18:28
* Reformats to better support parameters.
* Adds merge_group trigger for supporting queued merges.
* Adds cron scheduled build.
The `actions-rs/clippy-check` action is archived and there isn't a clear
alternative. Since clippy is already being run in `rust.yml` the right
fix seems to be removing this extra workflow.
This better matches what other rusticata crates are using.
Findings of the type:
```
warning: the item `AsMut` is imported redundantly
 --> src/utils.rs:1:20
  |
1 | use std::convert::{AsMut, AsRef};
  |                    ^^^^^
 --> /rustc/a165f1f65015b1bd4afd2ec50700aaacf2e0c485/library/std/src/prelude/mod.rs:115:13
  |
  = note: the item `AsMut` is already defined here
  |
  = note: `#[warn(unused_imports)]` on by default
```
Of the form:
```
error: unnecessary qualification
   --> src/error.rs:67:8
    |
67  |     I: std::fmt::Debug,
    |        ^^^^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:117:31
    |
117 |         unused_import_braces, unused_qualifications)]
    |                               ^^^^^^^^^^^^^^^^^^^^^
help: remove the unnecessary path segments
    |
67  -     I: std::fmt::Debug,
67  +     I: fmt::Debug,
```
```
error: usage of a legacy numeric constant
   --> src/pcapng.rs:544:22
    |
544 |         if caplen >= std::u32::MAX - 4 {
    |                      ^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
    |
544 |         if caplen >= u32::MAX - 4 {
    |                      ~~~~~~~~
```
* adds coverage for --all-features
* adds coverage for --no-default-features
.github/workflows/rust.yml Outdated Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
Copy link
Member

@chifflier chifflier left a comment

Choose a reason for hiding this comment

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

Thanks a lot for all your contributions!

.github/workflows/rust.yml Outdated Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
@cpu
Copy link
Contributor Author

cpu commented Apr 10, 2024

@chifflier If you want to leave this un-merged I can push an update to add the matrix config from asn1-rs later tonight after I'm finished work. Otherwise I'll follow-up in a separate PR. Thanks!

@chifflier
Copy link
Member

@chifflier If you want to leave this un-merged I can push an update to add the matrix config from asn1-rs later tonight after I'm finished work. Otherwise I'll follow-up in a separate PR. Thanks!

Sure, you can push the commit to this PR. I'll wait so you do not need to open a new one.
Thanks

Adopts a similar feature matrix approach as the asn1-rs CI. `cargo test`
will be run for no default features, default features, and all features.

The asn1-rs matrix differs only by having a separate "no std" job that
uses `--no-default-features`. Since this crate doesn't offer a std
feature we roll this step into the same matrix as the other feature
configs.
@cpu
Copy link
Contributor Author

cpu commented Apr 11, 2024

I'll wait so you do not need to open a new one.

Done ☑️

@chifflier
Copy link
Member

Perfect, thanks!

@chifflier chifflier merged commit bccce2d into rusticata:master Apr 12, 2024
11 checks passed
@cpu cpu deleted the cpu-ci-refresh branch April 12, 2024 13:10
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