From bd95176507c110bdb568b57c6839dfe060f430d1 Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Wed, 25 Mar 2026 11:25:28 -0400 Subject: [PATCH 1/3] Pin bundler for CI investigation Pin Bundler to 4.0.8 in the Ruby sandbox examples so we can test\nwhether the example failure tracks the Bundler upgrade.\n\nSplit CI into separate test, example, and build jobs so the Ruby\nexample result does not mask the package build outcome. --- .github/workflows/ci.yml | 48 +++++++++++++++++++++++++++-- examples/sandbox_07_ruby_sinatra.py | 2 +- examples/sandbox_09_rails_api.py | 5 ++- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b0f0d1..0c89c31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,8 @@ on: pull_request: jobs: - lint-test-and-build: - name: lint-test-and-build + lint-and-tests: + name: lint-and-tests runs-on: ubuntu-latest environment: ci env: @@ -32,8 +32,52 @@ jobs: - name: Run tests run: ./scripts/test.sh + example-tests: + name: example-tests + runs-on: ubuntu-latest + environment: ci + env: + BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v3 + + - name: Set up virtualenv (Python 3.12) + run: uv venv --python 3.12 + + - name: Install dependencies + run: uv pip install -e .[dev] + - name: Run example tests run: ./scripts/test-examples.sh + build-package: + name: build-package + runs-on: ubuntu-latest + environment: ci + env: + BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v3 + + - name: Set up virtualenv (Python 3.12) + run: uv venv --python 3.12 + + - name: Install dependencies + run: uv pip install -e .[dev] + - name: Build package run: ./scripts/build.sh diff --git a/examples/sandbox_07_ruby_sinatra.py b/examples/sandbox_07_ruby_sinatra.py index 200bd82..af45e48 100644 --- a/examples/sandbox_07_ruby_sinatra.py +++ b/examples/sandbox_07_ruby_sinatra.py @@ -83,7 +83,7 @@ async def main() -> None: "bash", [ "-lc", - ("gem install --no-document bundler"), + ("gem install --no-document bundler -v 4.0.8"), ], sudo=True, ) diff --git a/examples/sandbox_09_rails_api.py b/examples/sandbox_09_rails_api.py index 6a533cd..ae288f9 100644 --- a/examples/sandbox_09_rails_api.py +++ b/examples/sandbox_09_rails_api.py @@ -74,7 +74,10 @@ async def main() -> None: "bash", [ "-lc", - ("gem install --no-document bundler && gem install --no-document rails"), + ( + "gem install --no-document bundler -v 4.0.8 " + "&& gem install --no-document rails" + ), ], sudo=True, ) From d8ed503501ce7f46373811a9af34442b6547651c Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Wed, 25 Mar 2026 11:37:06 -0400 Subject: [PATCH 2/3] Format Bundler investigation change Apply the repository formatter output for the Bundler pin\ninvestigation branch. --- examples/sandbox_09_rails_api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/sandbox_09_rails_api.py b/examples/sandbox_09_rails_api.py index ae288f9..3d9a9a3 100644 --- a/examples/sandbox_09_rails_api.py +++ b/examples/sandbox_09_rails_api.py @@ -74,10 +74,7 @@ async def main() -> None: "bash", [ "-lc", - ( - "gem install --no-document bundler -v 4.0.8 " - "&& gem install --no-document rails" - ), + ("gem install --no-document bundler -v 4.0.8 && gem install --no-document rails"), ], sudo=True, ) From 5b8ec0a751a7026f69c62dc16f9ecad3814ca61d Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Wed, 25 Mar 2026 11:42:32 -0400 Subject: [PATCH 3/3] Restore CI job structure Revert the investigation workflow split so this branch matches the\nmain CI job structure while keeping the Bundler pin in place. --- .github/workflows/ci.yml | 48 ++-------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c89c31..7b0f0d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,8 @@ on: pull_request: jobs: - lint-and-tests: - name: lint-and-tests + lint-test-and-build: + name: lint-test-and-build runs-on: ubuntu-latest environment: ci env: @@ -32,52 +32,8 @@ jobs: - name: Run tests run: ./scripts/test.sh - example-tests: - name: example-tests - runs-on: ubuntu-latest - environment: ci - env: - BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v3 - - - name: Set up virtualenv (Python 3.12) - run: uv venv --python 3.12 - - - name: Install dependencies - run: uv pip install -e .[dev] - - name: Run example tests run: ./scripts/test-examples.sh - build-package: - name: build-package - runs-on: ubuntu-latest - environment: ci - env: - BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v3 - - - name: Set up virtualenv (Python 3.12) - run: uv venv --python 3.12 - - - name: Install dependencies - run: uv pip install -e .[dev] - - name: Build package run: ./scripts/build.sh