Skip to content

Commit

Permalink
Lint has been silently timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-ds committed Nov 2, 2024
1 parent 22415cf commit 3ffafd9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 35
continue-on-error: true
timeout-minutes: 45

steps:
- uses: actions/checkout@v3
Expand All @@ -174,17 +173,21 @@ jobs:
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check for unexpected chain load operations
continue-on-error: true
run: |
./scripts/check_chain_loads.sh
- name: Build check_copyright_header script
continue-on-error: true
run: |
cd ./scripts/check_copyright_header
cargo build --locked --release
- name: Check Copyright headers
continue-on-error: true
run: >
find linera-* examples -name '*.rs' -a -not -wholename '*/target/*' -print0
| xargs -0 scripts/target/release/check_copyright_header
- name: Put lint toolchain file in place
continue-on-error: true
run: |
ln -sf toolchains/nightly/rust-toolchain.toml
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -205,19 +208,24 @@ jobs:
run: |
RUSTFLAGS='' cargo install cargo-sort --git https://github.com/Twey/cargo-sort/ --tag linera
- name: Check formatting
continue-on-error: true
run: |
cargo fmt -- --check
- name: Check if Cargo.toml files are sorted
continue-on-error: true
run: |
cargo sort --check --workspace --grouped
- name: Check if example Cargo.toml files are sorted
continue-on-error: true
run: |
cd examples
cargo sort --check --workspace --grouped
- name: Check for unused dependencies
continue-on-error: true
run: |
cargo machete
- name: Check for outdated README.md
continue-on-error: true
run: |
(set -e; for I in linera-*; do if [ -d "$I" ]; then echo $I; cargo rdme --check --no-fail-on-warnings -w $I; fi; done)
(set -e; cd examples; for dir in */; do
Expand All @@ -228,12 +236,14 @@ jobs:
fi
done)
- name: Run Wasm application lints
continue-on-error: true
run: |
cd examples
cargo fmt -- --check
cargo clippy --all-targets --all-features --target wasm32-unknown-unknown --locked
cargo clippy --all-targets --all-features --target x86_64-unknown-linux-gnu --locked
- name: Run clippy
continue-on-error: true
run: |
cargo clippy --locked --all-targets --all-features
cargo clippy --locked --no-default-features --features kubernetes
Expand All @@ -243,9 +253,11 @@ jobs:
-p linera-rpc \
-p linera-views
- name: Run cargo doc
continue-on-error: true
run: |
cargo doc --locked --all-features
- name: Run cargo check-all-features
continue-on-error: true
run: |
cargo check-all-features
cargo check-all-features --all-targets
Expand Down

0 comments on commit 3ffafd9

Please sign in to comment.