Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: bump toolchain to 2023-09-09 #11809

Merged
merged 33 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9d3e587
bump toolchain
TennyZhuang Jul 28, 2023
605bb56
Merge branch 'main' into tygg-bump-toolchain-20230728
xxchan Aug 20, 2023
ade0d7e
remove dup resolver = 2
xxchan Aug 20, 2023
5a7bcbb
bump to 08-21, fixing TAIT bug
xxchan Aug 21, 2023
1059d1e
rustfmt: fmt let-else, disable wrap_comments
xxchan Aug 21, 2023
09af429
Merge branch 'main' into tygg-bump-toolchain-20230728
xxchan Aug 21, 2023
bf19bda
revert changes about TAIT
xxchan Aug 21, 2023
cf32041
Merge branch 'main' into tygg-bump-toolchain-20230728
MrCroxx Aug 28, 2023
74331f2
fix some clippy reports
MrCroxx Aug 28, 2023
6f78e2a
fix some clippy report
MrCroxx Aug 28, 2023
4004aa0
fix all clippy reports
MrCroxx Aug 28, 2023
722f8f6
fix bugs
MrCroxx Aug 28, 2023
fd087d6
Merge branch 'main' into tygg-bump-toolchain-20230728
MrCroxx Aug 28, 2023
bf3bbe7
update docker version
MrCroxx Aug 29, 2023
5f2fcff
Merge branch 'main' into tygg-bump-toolchain-20230728
MrCroxx Aug 29, 2023
cc5d116
install sccache with binstall
MrCroxx Aug 29, 2023
7e6e7c3
update docker build
MrCroxx Aug 29, 2023
cc55bac
use expect insteal of allow
MrCroxx Aug 29, 2023
06c6a59
fix lifetime
MrCroxx Aug 29, 2023
ed3a75a
fix state store stream compile
wenym1 Aug 29, 2023
5ab88a8
Merge remote-tracking branch 'origin/main' into tygg-bump-toolchain-2…
xxchan Sep 9, 2023
ab8c61c
fix thiserror/anyhow, fmt, some clippy
xxchan Sep 9, 2023
3d3f863
fix clippy
xxchan Sep 9, 2023
ae36c29
prefer `error::request_ref`
xxchan Sep 9, 2023
6325dbd
fix sqlsmith clippy
xxchan Sep 9, 2023
3c399e9
bump to 2023-09-09, use [lints] table
xxchan Sep 9, 2023
7a21774
update ci image
xxchan Sep 9, 2023
1dc58b5
Fix "cargo-hakari"
xxchan Sep 9, 2023
ca8b696
use [lints]
xxchan Sep 9, 2023
620e5c4
fix
xxchan Sep 9, 2023
200c771
update gen-flamegraph.sh
xxchan Sep 9, 2023
26413b8
fix reschedule bug
xxchan Sep 9, 2023
69f2e71
Merge branch 'main' into tygg-bump-toolchain-20230728
xxchan Sep 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 16 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ca
RUN cargo binstall -y --no-symlinks cargo-llvm-cov cargo-nextest cargo-hakari cargo-sort cargo-cache cargo-audit \
[email protected] \
[email protected] \
&& cargo install sccache --locked \
sccache@0.5.4 \
&& cargo cache -a \
&& rm -rf "/root/.cargo/registry/index" \
&& rm -rf "/root/.cargo/registry/cache" \
Expand Down
2 changes: 1 addition & 1 deletion ci/build-ci-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cat ../rust-toolchain
# !!! CHANGE THIS WHEN YOU WANT TO BUMP CI IMAGE !!! #
# AND ALSO docker-compose.yml #
######################################################
export BUILD_ENV_VERSION=v20230821
export BUILD_ENV_VERSION=v20230829

export BUILD_TAG="public.ecr.aws/x5u3w5h6/rw-build-env:${BUILD_ENV_VERSION}"

Expand Down
10 changes: 5 additions & 5 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
retries: 5

source-test-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230821
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230829
depends_on:
- mysql
- db
Expand All @@ -80,7 +80,7 @@ services:
- ..:/risingwave

sink-test-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230821
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230829
depends_on:
- mysql
- db
Expand All @@ -90,12 +90,12 @@ services:
- ..:/risingwave

rw-build-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230821
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230829
volumes:
- ..:/risingwave

ci-flamegraph-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230821
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230829
# NOTE(kwannoel): This is used in order to permit
# syscalls for `nperf` (perf_event_open),
# so it can do CPU profiling.
Expand All @@ -106,7 +106,7 @@ services:
- ..:/risingwave

regress-test-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230821
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230829
depends_on:
db:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion ci/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2023-05-31"
channel = "nightly-2023-08-21"
2 changes: 1 addition & 1 deletion ci/scripts/gen-flamegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ install_all() {
git clone https://github.com/gimli-rs/addr2line
pushd addr2line
git checkout 0.20.0
echo "nightly-2023-04-07" > rust-toolchain
echo "nightly-2023-08-21" > rust-toolchain
cargo b --examples -r
mv ./target/release/examples/addr2line $(which addr2line)
popd
Expand Down
5 changes: 4 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ group_imports = "StdExternalCrate"
reorder_impl_items = true
reorder_imports = true
tab_spaces = 4
wrap_comments = true
# TODO: Fix it later. It produces too many unwanted changes related with markdown lists now. e.g.,
# https://github.com/rust-lang/rustfmt/issues/5862
# https://github.com/rust-lang/rustfmt/issues/5836
# wrap_comments = true
2 changes: 1 addition & 1 deletion src/batch/benches/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn bench_expand(c: &mut Criterion) {
let chunk_num = SIZE / chunk_size;
b.to_async(&rt).iter_batched(
|| create_expand_executor(vec![vec![0, 1], vec![2]], chunk_size, chunk_num),
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn bench_filter(c: &mut Criterion) {
let chunk_num = TOTAL_SIZE / chunk_size;
b.to_async(&rt).iter_batched(
|| create_filter_executor(chunk_size, chunk_num),
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/hash_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn bench_hash_agg(c: &mut Criterion) {
chunk_num,
)
},
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn bench_limit(c: &mut Criterion) {
let chunk_num = SIZE / chunk_size;
b.to_async(&rt).iter_batched(
|| create_limit_executor(chunk_size, chunk_num, 128, 128),
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn bench_order_by(c: &mut Criterion) {
let chunk_num = SIZE / chunk_size;
b.to_async(&rt).iter_batched(
|| create_order_by_executor(chunk_size, chunk_num, single_column),
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/top_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn bench_top_n(c: &mut Criterion) {
let chunk_num = SIZE / chunk_size;
b.to_async(&rt).iter_batched(
|| create_top_n_executor(chunk_size, chunk_num, single_column, 128, 128),
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/batch/benches/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn bench_join(
right_chunk_num,
)
},
|e| execute_executor(e),
execute_executor,
BatchSize::SmallInput,
);
},
Expand Down
6 changes: 3 additions & 3 deletions src/batch/src/executor/group_top_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl<K: HashKey> GroupTopNExecutor<K> {
}

let mut chunk_builder = DataChunkBuilder::new(self.schema.data_types(), self.chunk_size);
for (_, h) in groups.iter_mut() {
for (_, h) in &mut groups {
let mut heap = TopNHeap::empty();
swap(&mut heap, h);
for ele in heap.dump() {
Expand Down Expand Up @@ -308,7 +308,7 @@ mod tests {
let mut stream = top_n_executor.execute();
let res = stream.next().await;

assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
assert!(
Expand Down Expand Up @@ -338,7 +338,7 @@ mod tests {
}

let res = stream.next().await;
assert!(matches!(res, None));
assert!(res.is_none());
}

assert_eq!(0, parent_mem.get_bytes_used());
Expand Down
2 changes: 1 addition & 1 deletion src/batch/src/executor/merge_sort_exchange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ mod tests {

let mut stream = executor.execute();
let res = stream.next().await;
assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
assert_eq!(res.capacity(), 3 * num_sources);
Expand Down
6 changes: 3 additions & 3 deletions src/batch/src/executor/order_by.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ mod tests {

let mut stream = order_by_executor.execute();
let res = stream.next().await;
assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
let col0 = res.column_at(0);
Expand Down Expand Up @@ -246,7 +246,7 @@ mod tests {

let mut stream = order_by_executor.execute();
let res = stream.next().await;
assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
let col0 = res.column_at(0);
Expand Down Expand Up @@ -296,7 +296,7 @@ mod tests {

let mut stream = order_by_executor.execute();
let res = stream.next().await;
assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
let col0 = res.column_at(0);
Expand Down
2 changes: 1 addition & 1 deletion src/batch/src/executor/sort_over_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl SortOverWindowExecutor {
) {
let mut states =
WindowStates::new(this.calls.iter().map(create_window_state).try_collect()?);
for row in rows.iter() {
for row in &*rows {
for (call, state) in this.calls.iter().zip_eq_fast(states.iter_mut()) {
// TODO(rc): batch appending
state.append(
Expand Down
2 changes: 1 addition & 1 deletion src/batch/src/executor/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl BoxedExecutorBuilder for SourceExecutor {

// prepare connector source
let source_props: HashMap<String, String> =
HashMap::from_iter(source_node.properties.clone().into_iter());
HashMap::from_iter(source_node.properties.clone());
let config = ConnectorProperties::extract(source_props)
.map_err(|e| RwError::from(ConnectorError(e.into())))?;

Expand Down
8 changes: 4 additions & 4 deletions src/batch/src/executor/top_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl Eq for HeapElem {}

impl PartialOrd for HeapElem {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.encoded_row.partial_cmp(&other.encoded_row)
Some(self.cmp(other))
}
}

Expand Down Expand Up @@ -350,7 +350,7 @@ mod tests {
let mut stream = top_n_executor.execute();
let res = stream.next().await;

assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(res) = res {
let res = res.unwrap();
assert_eq!(res.cardinality(), 3);
Expand All @@ -361,7 +361,7 @@ mod tests {
}

let res = stream.next().await;
assert!(matches!(res, None));
assert!(res.is_none());
}

#[tokio::test]
Expand Down Expand Up @@ -408,6 +408,6 @@ mod tests {
let mut stream = top_n_executor.execute();
let res = stream.next().await;

assert!(matches!(res, None));
assert!(res.is_none());
}
}
2 changes: 1 addition & 1 deletion src/batch/src/monitor/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub static GLOBAL_BATCH_TASK_METRICS: LazyLock<BatchTaskMetrics> =
impl BatchTaskMetrics {
/// The created [`BatchTaskMetrics`] is already registered to the `registry`.
fn new(registry: &Registry) -> Self {
let task_labels = vec!["query_id", "stage_id", "task_id"];
let task_labels = ["query_id", "stage_id", "task_id"];
let mut descs = Vec::with_capacity(8);

let task_first_poll_delay = GaugeVec::new(opts!(
Expand Down
Loading