Closed
Description
Problem
cargo fmt --all
runs unexpectedly slow in a medium-sized workspace project.
Steps
- Run a GitHub workflow that runs
cargo fmt --all
on the repository. - Check execution time.
This run shows rustfmt and/or cargo pausing for more than 20 s before producing any output in verbose mode. Seen with timestamps in the raw log:
2020-06-08T17:05:32.3268959Z [command]/usr/share/rust/.cargo/bin/cargo fmt --all --verbose -- --check --verbose
2020-06-08T17:05:55.8733086Z [bench (2018)] "/home/runner/work/chain-libs/chain-libs/btree/benches/benchmark.rs"
Notes
Output of cargo version
:
cargo 1.44.0 (05d080faa 2020-05-06)
Output of rustfmt --version
rustfmt 1.4.14-stable (e417356 2020-04-21)
Virtual environment information from GitHub workflow:
Operating System
Ubuntu
18.04.4
LTS
Virtual Environment
Environment: ubuntu-18.04
Version: 20200518.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200518.1/images/linux/Ubuntu1804-README.md
Metadata
Metadata
Assignees
Labels
No labels