Unverified Commit 00ea5aa0 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Enable the SDK codegen file size check (#2462)

parent 637333c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ ARG rust_stable_version
ARG rust_nightly_version
RUN set -eux; \
    yum -y install \
        bc \
        ca-certificates \
        gcc \
        git \
+6 −7
Original line number Diff line number Diff line
@@ -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