From e21c8ea1b7098e346ed6c1492e7514e3b3c9c745 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Fri, 10 Nov 2023 17:30:31 -0500 Subject: [PATCH] Remove cargo doc from all-services check to speed up CI (#3179) ## Motivation and Context Running this check on all services significantly slows down CI ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --- tools/ci-scripts/check-aws-sdk-smoketest-docs-clippy-udeps | 2 +- tools/ci-scripts/check-only-aws-sdk-services | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/ci-scripts/check-aws-sdk-smoketest-docs-clippy-udeps b/tools/ci-scripts/check-aws-sdk-smoketest-docs-clippy-udeps index 38942ef0678..b3b0ade515d 100755 --- a/tools/ci-scripts/check-aws-sdk-smoketest-docs-clippy-udeps +++ b/tools/ci-scripts/check-aws-sdk-smoketest-docs-clippy-udeps @@ -10,7 +10,7 @@ set -eux pushd aws-sdk-smoketest &>/dev/null # Override "fail on warning" for smoke test docs since DynamoDB's modeled docs cause rustdoc warnings -RUSTDOCFLAGS="" cargo doc --no-deps --document-private-items --all-features +RUSTDOCFLAGS="--cfg docsrs" cargo +"${RUST_NIGHTLY_VERSION}" doc --no-deps --document-private-items --all-features cargo clippy --all-features cargo +"${RUST_NIGHTLY_VERSION}" udeps diff --git a/tools/ci-scripts/check-only-aws-sdk-services b/tools/ci-scripts/check-only-aws-sdk-services index d1e0ea754ee..b15c4133b3d 100755 --- a/tools/ci-scripts/check-only-aws-sdk-services +++ b/tools/ci-scripts/check-only-aws-sdk-services @@ -13,7 +13,6 @@ cd aws-sdk sed -i '/"examples\//d' Cargo.toml cargo check --all-targets --all-features -RUSTDOCFLAGS="--cfg docsrs" cargo +"${RUST_NIGHTLY_VERSION}" doc --no-deps --document-private-items --all-features for test_dir in tests/*; do if [ -f "${test_dir}/Cargo.toml" ]; then