Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from TimelyDataflow/master
Browse files Browse the repository at this point in the history
  • Loading branch information
antiguru authored Feb 23, 2024
2 parents 15b7b8d + 0f93140 commit 8797bfb
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 338 deletions.
53 changes: 39 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
name: test

on: [push, pull_request]
name: "Test Suite"
on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
os:
- ubuntu
- macos
- windows
toolchain:
- stable
- 1.72
name: cargo test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: Cargo test
run: cargo test

# Check formatting with rustfmt
mdbook:
name: test mdBook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update 1.70 --no-self-update && rustup default 1.70
- run: cargo build --workspace
- name: test mdBook
# rustdoc doesn't build dependencies, so it needs to run after `cargo build`,
# but its dependency search gets confused if there are multiple copies of any
# dependency in target/debug/deps, so it needs to run before `cargo test` et al.
# clutter target/debug/deps with multiple copies of things.
run: for file in $(find mdbook -name '*.md' | sort); do rustdoc --test $file -L ./target/debug/deps; done
- run: cargo test --workspace
- uses: actions/checkout@v4
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- run: cargo build
- name: test mdBook
# rustdoc doesn't build dependencies, so it needs to run after `cargo build`,
# but its dependency search gets confused if there are multiple copies of any
# dependency in target/debug/deps, so it needs to run before `cargo test` et al.
# clutter target/debug/deps with multiple copies of things.
run: for file in $(find mdbook -name '*.md' | sort); do rustdoc --test $file -L ./target/debug/deps; done
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ members = [

[dev-dependencies]
bincode = "1.3.1"
rdkafka = "0.24"
indexmap = "2.1"
rand="0.4"
byteorder="1"
Expand Down
312 changes: 0 additions & 312 deletions examples/capture-test.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ pub fn configure(config: &mut timely::WorkerConfig, options: &Config) {
std::sync::Arc::new(move |batches| {
let mut non_empty = 0;
for (_index, count, length) in batches {
if count > 1 { return Some(effort as usize); }
if length > 0 { non_empty += 1; }
if *count > 1 { return Some(effort as usize); }
if *length > 0 { non_empty += 1; }
if non_empty > 1 { return Some(effort as usize); }
}
None
Expand Down
Loading

0 comments on commit 8797bfb

Please sign in to comment.