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

Merge clippy and clippy (wasm) jobs on CI #5447

Merged
merged 3 commits into from Jul 4, 2023

Conversation

konstin
Copy link
Member

@konstin konstin commented Jun 29, 2023

Summary

The clippy wasm job rarely fails if regular clippy doesn't, wasm clippy still compiles a lot of native dependencies for the proc macro and we have less CI jobs overall, so i think this an improvement to our CI.

$ CARGO_TARGET_DIR=target-wasm cargo clippy -p ruff_wasm --target wasm32-unknown-unknown --all-features -j 2 -- -D warnings
$ du -sh target-wasm/*
12K	target-wasm/CACHEDIR.TAG
582M	target-wasm/debug
268M	target-wasm/wasm32-unknown-unknown

Test plan

n/a

## Summary

The clippy wasm job rarely fails if regular clippy doesn't, wasm clippy still compiles a lot of native dependencies for the proc macro and we have less CI jobs overall, so i think this an improvement to our CI.

```shell
$ CARGO_TARGET_DIR=target-wasm cargo clippy -p ruff_wasm --target wasm32-unknown-unknown --all-features -j 2 -- -D warnings
$ du -sh target-wasm/*
12K	target-wasm/CACHEDIR.TAG
582M	target-wasm/debug
268M	target-wasm/wasm32-unknown-unknown
```

## Test plan

n/a
@konstin konstin marked this pull request as ready for review June 29, 2023 18:38
@github-actions
Copy link
Contributor

github-actions bot commented Jun 29, 2023

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Benchmark

Linux

group                                      main                                    pr
-----                                      ----                                    --
formatter/large/dataset.py                 1.00      9.3±0.51ms     4.4 MB/sec     1.00      9.3±0.68ms     4.4 MB/sec
formatter/numpy/ctypeslib.py               1.00      2.0±0.10ms     8.3 MB/sec     1.03      2.1±0.14ms     8.0 MB/sec
formatter/numpy/globals.py                 1.07   231.3±14.82µs    12.8 MB/sec     1.00   217.1±15.37µs    13.6 MB/sec
formatter/pydantic/types.py                1.00      4.4±0.24ms     5.8 MB/sec     1.01      4.5±0.28ms     5.7 MB/sec
linter/all-rules/large/dataset.py          1.00     15.6±0.68ms     2.6 MB/sec     1.05     16.4±0.61ms     2.5 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      4.0±0.26ms     4.2 MB/sec     1.06      4.2±0.19ms     4.0 MB/sec
linter/all-rules/numpy/globals.py          1.00   499.9±27.26µs     5.9 MB/sec     1.09   543.9±34.69µs     5.4 MB/sec
linter/all-rules/pydantic/types.py         1.00      7.2±0.44ms     3.5 MB/sec     1.02      7.4±0.43ms     3.5 MB/sec
linter/default-rules/large/dataset.py      1.00      7.6±0.28ms     5.4 MB/sec     1.09      8.3±0.39ms     4.9 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.02  1757.1±105.48µs     9.5 MB/sec    1.00  1727.2±69.17µs     9.6 MB/sec
linter/default-rules/numpy/globals.py      1.07   209.5±12.80µs    14.1 MB/sec     1.00   196.5±22.52µs    15.0 MB/sec
linter/default-rules/pydantic/types.py     1.08      3.9±0.15ms     6.5 MB/sec     1.00      3.6±0.15ms     7.0 MB/sec

Windows

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00     10.9±0.67ms     3.7 MB/sec    1.04     11.3±0.61ms     3.6 MB/sec
formatter/numpy/ctypeslib.py               1.00      2.3±0.15ms     7.2 MB/sec    1.03      2.4±0.11ms     7.0 MB/sec
formatter/numpy/globals.py                 1.00   271.9±19.46µs    10.9 MB/sec    1.01   274.4±23.62µs    10.8 MB/sec
formatter/pydantic/types.py                1.00      5.1±0.33ms     5.0 MB/sec    1.04      5.3±0.31ms     4.8 MB/sec
linter/all-rules/large/dataset.py          1.00     18.0±0.73ms     2.3 MB/sec    1.01     18.2±0.93ms     2.2 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      4.8±0.35ms     3.5 MB/sec    1.02      4.9±0.22ms     3.4 MB/sec
linter/all-rules/numpy/globals.py          1.01   596.6±37.73µs     4.9 MB/sec    1.00   589.7±36.95µs     5.0 MB/sec
linter/all-rules/pydantic/types.py         1.00      7.9±0.35ms     3.2 MB/sec    1.05      8.3±0.59ms     3.1 MB/sec
linter/default-rules/large/dataset.py      1.04      9.9±0.59ms     4.1 MB/sec    1.00      9.5±0.42ms     4.3 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00      2.1±0.12ms     8.0 MB/sec    1.01      2.1±0.07ms     8.0 MB/sec
linter/default-rules/numpy/globals.py      1.00   247.1±11.55µs    11.9 MB/sec    1.03   255.4±14.06µs    11.6 MB/sec
linter/default-rules/pydantic/types.py     1.05      4.5±0.26ms     5.6 MB/sec    1.00      4.3±0.22ms     5.9 MB/sec

@@ -604,7 +604,6 @@ fn handle_trailing_end_of_line_condition_comment<'a>(
| AnyNodeRef::StmtAsyncFor(ast::StmtAsyncFor { iter: expr, .. }) => {
Some(AnyNodeRef::from(expr.as_ref()))
}

Copy link
Member

Choose a reason for hiding this comment

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

Revert?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep that was the CI trigger change

@konstin konstin enabled auto-merge (squash) July 3, 2023 09:23
@charliermarsh charliermarsh merged commit 0a26201 into main Jul 4, 2023
15 checks passed
@charliermarsh charliermarsh deleted the merge_clippy_and_clippy_wasm_jobs branch July 4, 2023 19:22
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.

None yet

3 participants