From db341a535a01881b96fefaa6f325db1f97707488 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Wed, 11 Nov 2026 00:23:11 +1100 Subject: [PATCH 1/2] remove redundant scripts --- python/src/otel/Makefile | 14 ------------- ruby/src/otel/layer/Makefile | 10 --------- ruby/src/zip_ruby_layer.sh | 39 ------------------------------------ 3 files changed, 63 deletions(-) delete mode 100644 python/src/otel/Makefile delete mode 100644 ruby/src/otel/layer/Makefile delete mode 100755 ruby/src/zip_ruby_layer.sh diff --git a/python/src/otel/Makefile b/python/src/otel/Makefile deleted file mode 100644 index bdb34e793e..0000000000 --- a/python/src/otel/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -export SDK=$(shell pwd)/otel_sdk - -build-OTelLayer: - mkdir -p $(ARTIFACTS_DIR)/python - python3 -m pip install -r $(SDK)/requirements.txt -t $(ARTIFACTS_DIR)/python - python3 -m pip install -r $(SDK)/nodeps-requirements.txt -t $(ARTIFACTS_DIR)/tmp --no-deps - python3 -m pip freeze --path $(ARTIFACTS_DIR)/python - cp -r $(ARTIFACTS_DIR)/tmp/* $(ARTIFACTS_DIR)/python/ - rm -rf $(ARTIFACTS_DIR)/tmp - cp -r $(SDK)/* $(ARTIFACTS_DIR)/python - chmod 755 $(ARTIFACTS_DIR)/python/otel-instrument - chmod 755 $(ARTIFACTS_DIR)/python/otel-handler - rm -rf $(ARTIFACTS_DIR)/python/boto* - rm -rf $(ARTIFACTS_DIR)/python/urllib3* diff --git a/ruby/src/otel/layer/Makefile b/ruby/src/otel/layer/Makefile deleted file mode 100644 index 1c0d254dbe..0000000000 --- a/ruby/src/otel/layer/Makefile +++ /dev/null @@ -1,10 +0,0 @@ - -build-OTelLayer: - mkdir -p $(ARTIFACTS_DIR)/ruby/gems/3.3.0 - bundle config set --global silence_root_warning 1 - bundle config set --local path 'ruby' - bundle install - cp -r ruby/ruby/3.3.0/* $(ARTIFACTS_DIR)/ruby/gems/3.3.0 - cp otel-handler $(ARTIFACTS_DIR)/otel-handler - cp wrapper.rb $(ARTIFACTS_DIR)/wrapper.rb - rm -rf $(ARTIFACTS_DIR)/ruby/gems/3.3.0/cache diff --git a/ruby/src/zip_ruby_layer.sh b/ruby/src/zip_ruby_layer.sh deleted file mode 100755 index 4bdd466328..0000000000 --- a/ruby/src/zip_ruby_layer.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e -set -u - -echo_usage() { - echo "usage: Build Lambda layer/application by SAM" - echo " -n " -} - -main() { - echo "running..." - layerName="opentelemetry-ruby-layer" - - while getopts "n:h" opt; do - case "${opt}" in - h) - echo_usage - exit 0 - ;; - n) - layerName="${OPTARG}" - ;; - \?) - exit 1 - ;; - :) - echo "Option -${OPTARG} requires an argument" >&2 - exit 1 - ;; - esac - done - - (cd .aws-sam/build/OTelLayer/ && zip -qr ../"$layerName".zip .) - mv .aws-sam/build/"$layerName".zip . - echo "Finished" -} - -main "$@" From 637f0b9092440d6a3a4bcb1f36b81d93eacd2bb5 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Wed, 11 Nov 2026 01:07:10 +1100 Subject: [PATCH 2/2] fix build --- .github/workflows/ci-python.yml | 15 ++++++++------- python/src/run.sh | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 120000 python/src/run.sh diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index 66520722a6..88a27ee7b7 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -24,7 +24,7 @@ permissions: contents: read jobs: - build: + test: runs-on: ubuntu-26.04 strategy: @@ -47,10 +47,11 @@ jobs: run: | pip install tox tox - - name: Set up Go for ADOT Collector - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + build: + runs-on: ubuntu-26.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - go-version: '^1.20.8' - - name: Build Python Layer which includes ADOT Collector - working-directory: python/src - run: ./run.sh -b + persist-credentials: false + - name: Build Python layer + uses: $/.github/actions/build-python-layer diff --git a/python/src/run.sh b/python/src/run.sh deleted file mode 120000 index e0cd9a6b84..0000000000 --- a/python/src/run.sh +++ /dev/null @@ -1 +0,0 @@ -../../utils/sam/run.sh \ No newline at end of file