Skip to content

Commit

Permalink
ci: increase test sharding to reduce disk usage (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen authored Oct 2, 2023
1 parent fdf61bd commit b6b7350
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
fail-fast: false
matrix:
special_features: ["", "lambdaworks-felt"]
target: [ test#1, test#2, test-no_std, test-wasm ]
target: [ test#1, test#2, test#3, test#4, test-no_std, test-wasm ]
name: Run tests
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
case ${NAME} in
'test')
cargo llvm-cov nextest --lcov --output-path lcov-${{ matrix.target }}-${{ matrix.special_features }}.info \
--partition count:${PARTITION}/2 \
--partition count:${PARTITION}/4 \
--workspace --features "cairo-1-hints, test_utils, ${{ matrix.special_features }}"
;;
'test-no_std')
Expand Down Expand Up @@ -417,6 +417,18 @@ jobs:
path: lcov-test#2-.info
key: codecov-cache-test#2--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (part. 3)
uses: actions/cache/restore@v3
with:
path: lcov-test#3-.info
key: codecov-cache-test#3--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (part. 4)
uses: actions/cache/restore@v3
with:
path: lcov-test#4-.info
key: codecov-cache-test#4--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests without stdlib
uses: actions/cache/restore@v3
with:
Expand All @@ -436,6 +448,18 @@ jobs:
path: lcov-test#2-lambdaworks-felt.info
key: codecov-cache-test#2-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 3)
uses: actions/cache/restore@v3
with:
path: lcov-test#3-lambdaworks-felt.info
key: codecov-cache-test#3-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 4)
uses: actions/cache/restore@v3
with:
path: lcov-test#4-lambdaworks-felt.info
key: codecov-cache-test#4-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests without stdlib (w/lambdaworks)
uses: actions/cache/restore@v3
with:
Expand Down

1 comment on commit b6b7350

@github-actions
Copy link

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: b6b7350 Previous: fdf61bd Ratio
add_u64_with_felt/1 4 ns/iter (± 0) 2 ns/iter (± 0) 2
add_u64_with_felt/2 4 ns/iter (± 0) 2 ns/iter (± 0) 2
add_u64_with_felt/5 2 ns/iter (± 0) 1 ns/iter (± 0) 2
add_u64_with_felt/6 4 ns/iter (± 0) 3 ns/iter (± 0) 1.33
add_u64_with_felt/7 4 ns/iter (± 0) 3 ns/iter (± 0) 1.33
add_u64_with_felt/8 3 ns/iter (± 0) 2 ns/iter (± 0) 1.50

This comment was automatically generated by workflow using github-action-benchmark.

CC: @unbalancedparentheses

Please sign in to comment.