From a97db2dc70627a04cf869018f043cf255f9bb2c8 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Tue, 20 May 2025 22:08:34 +0530 Subject: [PATCH 1/4] feat(dev): lightweight compose for quick iteration --- .../generate-openapi-code-from-typespec.yml | 3 +- .pre-commit-config.yaml | 7 ++++ CONTRIBUTING.md | 1 + deploy/docker-compose.dev.yaml | 33 +++++++++++++++++++ poe_tasks.toml | 2 ++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml create mode 100644 deploy/docker-compose.dev.yaml create mode 100644 poe_tasks.toml diff --git a/.github/workflows/generate-openapi-code-from-typespec.yml b/.github/workflows/generate-openapi-code-from-typespec.yml index c5dee9ec6..0d1e2b718 100644 --- a/.github/workflows/generate-openapi-code-from-typespec.yml +++ b/.github/workflows/generate-openapi-code-from-typespec.yml @@ -31,11 +31,12 @@ jobs: with: python-version: "3.12" - - name: Generate openapi code + - name: Ensure openapi code is fresh run: | cd typespec; npm ci; cd - export PATH=$PATH:$PWD/typespec/node_modules/.bin bash scripts/generate_openapi_code.sh + git diff --exit-code concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..156183637 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: local + hooks: + - id: codegen-freshness + language: system + entry: bash -c "scripts/generate_openapi_code.sh && git diff --exit-code" + pass_filenames: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d697fba4a..9ebdebb93 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -160,6 +160,7 @@ To get a comprehensive understanding of Julep, we recommend exploring the codeba 1. **Set Up Development Environment** - Clone the repository + - Install pre-commit and enable hooks: `pip install pre-commit && pre-commit install` - Install Docker and Docker Compose - Set up necessary API keys and environment variables diff --git a/deploy/docker-compose.dev.yaml b/deploy/docker-compose.dev.yaml new file mode 100644 index 000000000..a80d53c84 --- /dev/null +++ b/deploy/docker-compose.dev.yaml @@ -0,0 +1,33 @@ +name: julep-dev +include: + - ../agents-api/docker-compose.yml + - ../memory-store/docker-compose.yml + - ../scheduler/docker-compose.yml + - ../llm-proxy/docker-compose.yml + - ../integrations-service/docker-compose.yml +services: + agents-api: + profiles: [""] + worker: + profiles: [""] + memory-store: + profiles: [""] + vectorizer-worker: + profiles: [""] + integrations: + profiles: [""] + temporal: + profiles: [""] + depends_on: + temporal-db: + condition: service_started + temporal-db: + profiles: [""] + temporal-ui: + profiles: [""] + litellm: + profiles: [""] + litellm-db: + profiles: [""] + litellm-redis: + profiles: [""] diff --git a/poe_tasks.toml b/poe_tasks.toml new file mode 100644 index 000000000..2f6010699 --- /dev/null +++ b/poe_tasks.toml @@ -0,0 +1,2 @@ +[tasks.dev-up] +shell = "docker compose -f deploy/docker-compose.dev.yaml --env-file .env up --build" From b9a4639c8b4f272de8e1cfc1f33467a239e08233 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 7 Jun 2025 13:31:27 +0530 Subject: [PATCH 2/4] Discard changes to .github/workflows/generate-openapi-code-from-typespec.yml --- .github/workflows/generate-openapi-code-from-typespec.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/generate-openapi-code-from-typespec.yml b/.github/workflows/generate-openapi-code-from-typespec.yml index 0d1e2b718..c5dee9ec6 100644 --- a/.github/workflows/generate-openapi-code-from-typespec.yml +++ b/.github/workflows/generate-openapi-code-from-typespec.yml @@ -31,12 +31,11 @@ jobs: with: python-version: "3.12" - - name: Ensure openapi code is fresh + - name: Generate openapi code run: | cd typespec; npm ci; cd - export PATH=$PATH:$PWD/typespec/node_modules/.bin bash scripts/generate_openapi_code.sh - git diff --exit-code concurrency: group: ${{ github.workflow }}-${{ github.ref }} From 08eb59edab4b7abb58aff3e3443db8e1f25916ed Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 7 Jun 2025 13:31:47 +0530 Subject: [PATCH 3/4] Delete .pre-commit-config.yaml --- .pre-commit-config.yaml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 156183637..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,7 +0,0 @@ -repos: - - repo: local - hooks: - - id: codegen-freshness - language: system - entry: bash -c "scripts/generate_openapi_code.sh && git diff --exit-code" - pass_filenames: false From 37cf08dff60cde520f121394e5ea6563136a700b Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 7 Jun 2025 13:31:58 +0530 Subject: [PATCH 4/4] Discard changes to CONTRIBUTING.md --- CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ebdebb93..d697fba4a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -160,7 +160,6 @@ To get a comprehensive understanding of Julep, we recommend exploring the codeba 1. **Set Up Development Environment** - Clone the repository - - Install pre-commit and enable hooks: `pip install pre-commit && pre-commit install` - Install Docker and Docker Compose - Set up necessary API keys and environment variables