Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jan 9, 2023
1 parent c033ecf commit 9112630
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Rust workflows

### cargo-install

- [taiki-e/install-action](https://github.com/taiki-e/install-action) can only be used when pre built binaries are available.
- [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) will compile the binary and cache it.
2 changes: 1 addition & 1 deletion .github/workflows/bench-turbopack-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

- uses: ./.github/actions/setup-rust
with:
shared-key: benchmark-${{ matrix.bench.cache_key }}
shared-cache-key: benchmark-${{ matrix.bench.cache_key }}

- name: Clear potentially cached benchmarks
run: rm -rf target/criterion
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/bench-turbotrace-against-node-nft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
runs-on: ubuntu-latest
name: bench

env:
BUILD_ARGS: --release -p turbopack --features bench_against_node_nft bench_against_node_nft

steps:
- uses: actions/checkout@v3

Expand All @@ -49,14 +52,12 @@ jobs:
- name: Build benchmark
timeout-minutes: 60
run: |
cargo nextest run --no-run --release \
-p turbopack --features bench_against_node_nft bench_against_node_nft
cargo nextest run --no-run ${{ env.BENCH_ARGS }}
- name: Run benchmark
timeout-minutes: 60
run: |
cargo nextest run --test-threads 1 --no-fail-fast --release \
-p turbopack --features bench_against_node_nft bench_against_node_nft
cargo nextest run --test-threads 1 --no-fail-fast ${{ env.BENCH_ARGS }}
- name: Show benchmark result
run: cargo xtask nft-bench-result
2 changes: 1 addition & 1 deletion .github/workflows/dispatch-next-dev-custom-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build benchmarks
timeout-minutes: 120
run: cargo bench --no-run -p next-dev
run: cargo bench --no-run -p next-dev

- name: Run cargo bench
timeout-minutes: 120
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@ jobs:

- name: Build nextest
timeout-minutes: 120
# We exclude turbo as it requires linking Go and all logic resides in turborepo-lib
run: |
# We exclude turbo as it requires linking Go and all logic resides in turborepo-lib
cargo nextest run --no-run --workspace --release --exclude turbo
- name: Run nextest
timeout-minutes: 120
# We exclude turbo as it requires linking Go and all logic resides in turborepo-lib
run: |
# We exclude turbo as it requires linking Go and all logic resides in turborepo-lib
cargo nextest run --workspace --release --no-fail-fast --exclude turbo
rust_test_bench:
Expand Down

0 comments on commit 9112630

Please sign in to comment.