From fc077e76a43f23984d30d5d2bc1a828cbb4cfac0 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Wed, 13 May 2026 14:14:21 -0400 Subject: [PATCH] Fix shared layer packaging that broke all Lambdas (#67) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix shared layer packaging — remove python/ wrapper that caused double nesting SAM BuildMethod: python3.12 wraps layer content in python/ during build. The source had an extra python/ directory, resulting in the shared package landing at python/python/shared/ instead of python/shared/. All 4 Lambdas are failing with ImportModuleError since the PR #62 merge. * Update CI source-dirs to match new shared layer path --- .github/workflows/ci.yaml | 2 +- src/shared/{python => }/shared/__init__.py | 0 src/shared/{python => }/shared/blocks.py | 0 src/shared/{python => }/shared/ring_scheduler.py | 0 src/shared/{python => }/shared/schedule.py | 0 src/shared/{python => }/shared/secrets.py | 0 src/shared/{python => }/shared/three_cx_client.py | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename src/shared/{python => }/shared/__init__.py (100%) rename src/shared/{python => }/shared/blocks.py (100%) rename src/shared/{python => }/shared/ring_scheduler.py (100%) rename src/shared/{python => }/shared/schedule.py (100%) rename src/shared/{python => }/shared/secrets.py (100%) rename src/shared/{python => }/shared/three_cx_client.py (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4fc0c3d..ab8ea48 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,4 +7,4 @@ jobs: ci: uses: Sea-Haven-Industries/.github/.github/workflows/ci-python-sam.yaml@main with: - source-dirs: "src/slack-bot src/weekly-post src/roster-sync src/ring-scheduler src/shared/python/shared" + source-dirs: "src/slack-bot src/weekly-post src/roster-sync src/ring-scheduler src/shared/shared" diff --git a/src/shared/python/shared/__init__.py b/src/shared/shared/__init__.py similarity index 100% rename from src/shared/python/shared/__init__.py rename to src/shared/shared/__init__.py diff --git a/src/shared/python/shared/blocks.py b/src/shared/shared/blocks.py similarity index 100% rename from src/shared/python/shared/blocks.py rename to src/shared/shared/blocks.py diff --git a/src/shared/python/shared/ring_scheduler.py b/src/shared/shared/ring_scheduler.py similarity index 100% rename from src/shared/python/shared/ring_scheduler.py rename to src/shared/shared/ring_scheduler.py diff --git a/src/shared/python/shared/schedule.py b/src/shared/shared/schedule.py similarity index 100% rename from src/shared/python/shared/schedule.py rename to src/shared/shared/schedule.py diff --git a/src/shared/python/shared/secrets.py b/src/shared/shared/secrets.py similarity index 100% rename from src/shared/python/shared/secrets.py rename to src/shared/shared/secrets.py diff --git a/src/shared/python/shared/three_cx_client.py b/src/shared/shared/three_cx_client.py similarity index 100% rename from src/shared/python/shared/three_cx_client.py rename to src/shared/shared/three_cx_client.py