Skip to content

Commit

Permalink
feat: Pass arch to check layer size, set e on it (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve authored Mar 12, 2024
1 parent 92498ff commit 20a2e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
dependencies:
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
script:
- PYTHON_VERSION={{ $runtime.python_version }} ./scripts/check_layer_size.sh
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/check_layer_size.sh

lint python:
stage: test
Expand Down
1 change: 1 addition & 0 deletions scripts/check_layer_size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Compares layer size to threshold, and fails if below that threshold

# 7 mb size limit
set -e
MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 7 \* 1024)
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 24 \* 1024)

Expand Down

0 comments on commit 20a2e4e

Please sign in to comment.