From 4909bd9e8c90f8f23179e7b6f001bd359550ec89 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 18:45:17 -0700 Subject: [PATCH] fix(ci): generate a master key for the migration startup jobs (#44978) The migration_startup_tests job runs pytest over tests/e2e/migrations with PYTHONPATH=tests/e2e, so it loads tests/e2e/conftest.py, which has required LITELLM_MASTER_KEY at import since #44718. That PR gave every other e2e job a "Generate LiteLLM master key" step but not this one, so all five scheduled migration jobs died before collection with KeyError: 'LITELLM_MASTER_KEY'. Give the job the same step the other jobs have. Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ee23416ad47..05194e1bdb7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3063,6 +3063,11 @@ jobs: PYTHONPATH: tests/e2e steps: - checkout_migration_source + - run: + name: Generate LiteLLM master key + command: | + key="$(openssl rand -hex 16)" + printf 'export LITELLM_MASTER_KEY=sk-%s\n' "$key" >> "$BASH_ENV" - install_uv - install_rust - restore_cache: