Skip to content

Commit

Permalink
Enable the SDK codegen file size check (#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti authored Mar 31, 2023
1 parent 637333c commit 00ea5aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions tools/ci-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ARG rust_stable_version
ARG rust_nightly_version
RUN set -eux; \
yum -y install \
bc \
ca-certificates \
gcc \
git \
Expand Down
13 changes: 6 additions & 7 deletions tools/ci-scripts/check-only-aws-sdk-services
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ for test_dir in tests/*; do
fi
done

# TODO(CrateReorganization): Uncomment when cleaning up `enableNewCrateOrganizationScheme`
# large_file_count="$(find sdk -iname '*.rs' -type f -size +1M | wc -l | bc)"
# if [[ "${large_file_count}" != "0" ]]; then
# echo "Found ${large_file_count} generated code files larger than 1 MB:"
# find sdk -iname '*.rs' -type f -size +1M
# exit 1
# fi
large_file_count="$(find sdk -iname '*.rs' -type f -size +1M | wc -l | bc)"
if [[ "${large_file_count}" != "0" ]]; then
echo "Found ${large_file_count} generated code files larger than 1 MB:"
find sdk -iname '*.rs' -type f -size +1M
exit 1
fi

0 comments on commit 00ea5aa

Please sign in to comment.