Skip to content

Commit

Permalink
Merge branch 'main' into jordan.gonzalez/bottlecap/universal-instrume…
Browse files Browse the repository at this point in the history
…ntation
  • Loading branch information
astuyve committed Oct 9, 2024
2 parents b61fe08 + 5d728fa commit d6ba035
Show file tree
Hide file tree
Showing 12 changed files with 2,370 additions and 1,514 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/rs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
unzip "protoc-${{ env.PB_VERSION }}-${{ env.PB_TARGET }}.zip" -d "$HOME/.local"
export PATH="$PATH:$HOME/.local/bin"
- uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
- uses: actions-rust-lang/setup-rust-toolchain@v1.10.0
with:
cache: false
- uses: mozilla-actions/[email protected].5
- uses: mozilla-actions/[email protected].6
- working-directory: bottlecap
run: cargo check --workspace

Expand All @@ -71,11 +71,11 @@ jobs:
unzip "protoc-${{ env.PB_VERSION }}-${{ env.PB_TARGET }}.zip" -d "$HOME/.local"
export PATH="$PATH:$HOME/.local/bin"
- uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
- uses: actions-rust-lang/setup-rust-toolchain@v1.10.0
with:
components: clippy
cache: false
- uses: mozilla-actions/[email protected].5
- uses: mozilla-actions/[email protected].6
- working-directory: bottlecap
run: cargo clippy --workspace --all-features

Expand All @@ -100,10 +100,10 @@ jobs:
unzip "protoc-${{ env.PB_VERSION }}-${{ env.PB_TARGET }}.zip" -d "$HOME/.local"
export PATH="$PATH:$HOME/.local/bin"
- uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
- uses: actions-rust-lang/setup-rust-toolchain@v1.10.0
with:
cache: false
- uses: mozilla-actions/[email protected].5
- uses: mozilla-actions/[email protected].6
- working-directory: bottlecap
run: cargo build --all

Expand All @@ -128,13 +128,13 @@ jobs:
unzip "protoc-${{ env.PB_VERSION }}-${{ env.PB_TARGET }}.zip" -d "$HOME/.local"
export PATH="$PATH:$HOME/.local/bin"
- uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
- uses: actions-rust-lang/setup-rust-toolchain@v1.10.0
with:
cache: false
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- uses: mozilla-actions/[email protected].5
- uses: mozilla-actions/[email protected].6
- working-directory: bottlecap
run: cargo nextest run --workspace

Expand All @@ -146,7 +146,7 @@ jobs:
os: [ ubuntu-22.04, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
- uses: actions-rust-lang/setup-rust-toolchain@v1.10.0
with:
components: rustfmt
cache: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/serverless-vuln-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,31 @@ jobs:
./scripts/build_binary_and_layer_dockerized.sh
- name: Scan amd64 image with trivy
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
uses: aquasecurity/trivy-action@a20de5420d57c4102486cdd9578b45609c99d7eb # v0.26.0
with:
image-ref: "datadog/build-lambda-extension-amd64:${{ env.VERSION }}"
ignore-unfixed: true
exit-code: 1
format: table

- name: Scan arm64 image with trivy
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
uses: aquasecurity/trivy-action@a20de5420d57c4102486cdd9578b45609c99d7eb # v0.26.0
with:
image-ref: "datadog/build-lambda-extension-arm64:${{ env.VERSION }}"
ignore-unfixed: true
exit-code: 1
format: table

- name: Scan latest released image with trivy
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
uses: aquasecurity/trivy-action@a20de5420d57c4102486cdd9578b45609c99d7eb # v0.26.0
with:
image-ref: "public.ecr.aws/datadog/lambda-extension:latest"
ignore-unfixed: true
exit-code: 1
format: table

- name: Scan latest-alpoine released image with trivy
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
uses: aquasecurity/trivy-action@a20de5420d57c4102486cdd9578b45609c99d7eb # v0.26.0
with:
image-ref: "public.ecr.aws/datadog/lambda-extension:latest-alpine"
ignore-unfixed: true
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/scripts/check_layer_size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -z "$LAYER_FILE" ]; then
fi

MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 18 \* 1024) # 17 MB, amd64 is 17, while arm64 is 15
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 47 \* 1024) # 46 MB, amd is 46, while arm64 is 45
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 49 \* 1024) # 49 MB, amd is 49, while arm64 is 48

LAYERS_DIR=".layers"

Expand Down
Loading

0 comments on commit d6ba035

Please sign in to comment.