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(toolchain): bump to nightly-2023-10-21 #12992

Merged
merged 14 commits into from
Oct 24, 2023
Merged
69 changes: 39 additions & 30 deletions Cargo.lock

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

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ aws-smithy-types = "0.55"
aws-endpoint = "0.55"
aws-types = "0.55"
etcd-client = { package = "madsim-etcd-client", version = "0.4" }
futures-async-stream = "0.2"
futures-async-stream = "0.2.9"
hytra = "0.1"
rdkafka = { package = "madsim-rdkafka", version = "0.3.0", features = [
"cmake-build",
Expand Down Expand Up @@ -165,6 +165,8 @@ unused_must_use = "forbid"
future_incompatible = "warn"
nonstandard_style = "warn"
rust_2018_idioms = "warn"
# Backward compatibility is not important for an application.
async_fn_in_trait = "allow"

[workspace.lints.clippy]
uninlined_format_args = "allow"
Expand Down Expand Up @@ -229,12 +231,17 @@ opt-level = 2
incremental = false
debug = 1

# Patch third-party crates for deterministic simulation.
[patch.crates-io]
# Patch third-party crates for deterministic simulation.
quanta = { git = "https://github.com/madsim-rs/quanta.git", rev = "948bdc3" }
getrandom = { git = "https://github.com/madsim-rs/getrandom.git", rev = "8daf97e" }
tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "fe39bb8e" }
tokio-retry = { git = "https://github.com/madsim-rs/rust-tokio-retry.git", rev = "95e2fd3" }
tokio-postgres = { git = "https://github.com/madsim-rs/rust-postgres.git", rev = "ac00d88" }
# patch: unlimit 4MB message size for grpc client
etcd-client = { git = "https://github.com/risingwavelabs/etcd-client.git", rev = "4e84d40" }

# Patch for coverage_attribute.
# https://github.com/sgodwincs/dlv-list-rs/pull/19#issuecomment-1774786289
dlv-list = { git = "https://github.com/sgodwincs/dlv-list-rs.git", rev = "5bbc5d0" }
ordered-multimap = { git = "https://github.com/risingwavelabs/ordered-multimap-rs.git", rev = "19c743f" }
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=v20230919
export BUILD_ENV_VERSION=v20231022

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:v20230919
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20231022
depends_on:
- mysql
- db
Expand All @@ -81,7 +81,7 @@ services:
- ..:/risingwave

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

rw-build-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230919
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20231022
volumes:
- ..:/risingwave

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

regress-test-env:
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20230919
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20231022
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-09-09"
channel = "nightly-2023-10-21"
6 changes: 2 additions & 4 deletions src/batch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#![feature(trait_alias)]
#![feature(exact_size_is_empty)]
#![feature(type_alias_impl_trait)]
#![cfg_attr(coverage, feature(no_coverage))]
#![feature(generators)]
#![cfg_attr(coverage, feature(coverage_attribute))]
#![feature(coroutines)]
#![feature(proc_macro_hygiene, stmt_expr_attributes)]
#![feature(iterator_try_collect)]
#![feature(lint_reasons)]
Expand All @@ -27,13 +27,11 @@
#![feature(let_chains)]
#![feature(bound_map)]
#![feature(int_roundings)]
#![feature(async_fn_in_trait)]
#![feature(allocator_api)]
#![feature(impl_trait_in_assoc_type)]
#![feature(result_option_inspect)]
#![feature(assert_matches)]
#![feature(lazy_cell)]
#![feature(return_position_impl_trait_in_trait)]

mod error;
pub mod exchange_source;
Expand Down
6 changes: 3 additions & 3 deletions src/batch/src/rpc/service/task_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl TaskService for BatchServiceImpl {
type CreateTaskStream = ReceiverStream<TaskInfoResponseResult>;
type ExecuteStream = ReceiverStream<GetDataResponseResult>;

#[cfg_attr(coverage, no_coverage)]
#[cfg_attr(coverage, coverage(off))]
async fn create_task(
&self,
request: Request<CreateTaskRequest>,
Expand Down Expand Up @@ -97,7 +97,7 @@ impl TaskService for BatchServiceImpl {
}
}

#[cfg_attr(coverage, no_coverage)]
#[cfg_attr(coverage, coverage(off))]
async fn cancel_task(
&self,
req: Request<CancelTaskRequest>,
Expand All @@ -109,7 +109,7 @@ impl TaskService for BatchServiceImpl {
Ok(Response::new(CancelTaskResponse { status: None }))
}

#[cfg_attr(coverage, no_coverage)]
#[cfg_attr(coverage, coverage(off))]
async fn execute(
&self,
req: Request<ExecuteRequest>,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/src/bin/compactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, feature(coverage_attribute))]

risingwave_cmd::main!(compactor);
2 changes: 1 addition & 1 deletion src/cmd/src/bin/compute_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, feature(coverage_attribute))]

risingwave_cmd::main!(compute);
2 changes: 1 addition & 1 deletion src/cmd/src/bin/ctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, feature(coverage_attribute))]

risingwave_cmd::main!(ctl);
2 changes: 1 addition & 1 deletion src/cmd/src/bin/frontend_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, feature(coverage_attribute))]

risingwave_cmd::main!(frontend);
2 changes: 1 addition & 1 deletion src/cmd/src/bin/meta_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, feature(coverage_attribute))]

risingwave_cmd::main!(meta);
2 changes: 1 addition & 1 deletion src/cmd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ macro_rules! main {
#[cfg(not(enable_task_local_alloc))]
risingwave_common::enable_jemalloc!();

#[cfg_attr(coverage, no_coverage)]
#[cfg_attr(coverage, coverage(off))]
fn main() {
let opts = clap::Parser::parse();
$crate::$component(opts);
Expand Down
Loading
Loading