Repository navigation
chore(e2e): move the compat-matrix populator from a GCE VM to a Render cron job #42608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aee2de0
chore(e2e): move the compat-matrix populator from a GCE VM to a Rende…
mateo-berri bca73c7
docs(e2e): name the plan and trigger route Render's cron-job API accepts
mateo-berri 44404ce
fix(e2e): install the published litellm wheel instead of building the…
mateo-berri 4999ba7
fix(e2e): keep the SKIP_PUBLISH matrix where a Render run can read it
mateo-berri 52bbe19
fix(e2e): let the stale compat-matrix PR sweep see past the newest 10…
mateo-berri 1d38afd
docs(e2e): say the Render cron needs a manual deploy after each merge
mateo-berri 7f3a300
ci: build the compat-matrix cron image on pull requests
mateo-berri d244364
fix(e2e): shim the whole tests/e2e tree into the compat-matrix worktree
mateo-berri 1f93010
fix(e2e): scope the compat-matrix sweep to the publishing account's o…
mateo-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Compat Matrix Image | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - tests/e2e/claude_code/cron_vm/** | ||
| - .github/workflows/compat-matrix-image.yml | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| compat-matrix-image: | ||
| name: compat-matrix-image | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Build the Render cron image | ||
| run: docker build -f tests/e2e/claude_code/cron_vm/Dockerfile -t compat-matrix:${{ github.sha }} tests/e2e | ||
|
|
||
| - name: Run the pinned binaries as the cron user | ||
| run: | | ||
| docker run --rm compat-matrix:${{ github.sha }} bash -c 'set -e; whoami; claude --version; gh --version; uv --version' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| FROM debian:bookworm-slim@sha256:3783cc01769c7b2b1b83a5c5ad96c815348e28ed7da68e2e3687004faa906251 | ||
|
|
||
| ARG GH_VERSION=2.101.0 | ||
| ARG GH_SHA256=9bca2d1c16825f109907a23307628a2f0698fbf99662b73a5cf0b020293072b8 | ||
| ARG UV_VERSION=0.10.9 | ||
| ARG UV_SHA256=20d79708222611fa540b5c9ed84f352bcd3937740e51aacc0f8b15b271c57594 | ||
| ARG CLAUDE_CODE_VERSION=2.1.228 | ||
| ARG CLAUDE_CODE_SHA256=d535985e6941a3eb00179ccd7f52ceb0c6623a0305a518ebc4e6514f84a94c99 | ||
|
|
||
| SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends ca-certificates curl git jq procps iproute2 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN curl -fsSLo /tmp/gh.tar.gz "https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.tar.gz" \ | ||
| && echo "${GH_SHA256} /tmp/gh.tar.gz" | sha256sum -c - \ | ||
| && tar -xzf /tmp/gh.tar.gz -C /usr/local/bin --strip-components=2 "gh_${GH_VERSION}_linux_amd64/bin/gh" \ | ||
| && rm /tmp/gh.tar.gz | ||
|
|
||
| RUN curl -fsSLo /tmp/uv.tar.gz "https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz" \ | ||
| && echo "${UV_SHA256} /tmp/uv.tar.gz" | sha256sum -c - \ | ||
| && tar -xzf /tmp/uv.tar.gz -C /usr/local/bin --strip-components=1 uv-x86_64-unknown-linux-gnu/uv \ | ||
| && rm /tmp/uv.tar.gz | ||
|
|
||
| RUN curl -fsSLo /tmp/claude "https://downloads.claude.ai/claude-code-releases/${CLAUDE_CODE_VERSION}/linux-x64/claude" \ | ||
| && echo "${CLAUDE_CODE_SHA256} /tmp/claude" | sha256sum -c - \ | ||
| && install -m 0755 /tmp/claude /usr/local/bin/claude \ | ||
| && rm /tmp/claude | ||
|
|
||
| RUN groupadd --gid 1000 populator && useradd --uid 1000 --gid 1000 --create-home populator | ||
|
|
||
| ENV HOME=/home/populator \ | ||
| LITELLM_REPO=/opt/litellm \ | ||
| DISABLE_AUTOUPDATER=1 | ||
|
|
||
| COPY --chown=populator:populator . /opt/litellm/tests/e2e/ | ||
|
|
||
| USER populator | ||
| WORKDIR /home/populator | ||
| CMD ["/opt/litellm/tests/e2e/claude_code/cron_vm/run_daily.sh"] | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
tests/e2e/claude_code/cron_vm/litellm-compat-matrix.service
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.