5a558eb09e
TypeScript SDK Compatibility V1.x E2E Tests / Select Node version matrix (push) Has been cancelled
TypeScript SDK Compatibility V1.x E2E Tests / TypeScript SDK Compatibility V1.x E2E Tests Node ${{matrix.node_version}} (push) Has been cancelled
TypeScript SDK E2E Tests / TypeScript SDK E2E Tests Node ${{matrix.node_version}} (push) Has been cancelled
Opik Optimizer - E2E Tests / build-opik (push) Has been cancelled
TypeScript SDK Compatibility V1.x E2E Tests / build-opik (push) Has been cancelled
Python SDK E2E Tests / Select Python version matrix (push) Has been cancelled
Python SDK E2E Tests / Python SDK E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Python SDK E2E Tests / build-opik (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / Select Python version matrix (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / Python SDK Compatibility V1.x E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / build-opik (push) Has been cancelled
TypeScript SDK E2E Tests / Select Node version matrix (push) Has been cancelled
TypeScript SDK E2E Tests / build-opik (push) Has been cancelled
Opik Optimizer - E2E Tests / Opik Optimizer E2E Tests Python ${{matrix.python_version}} (push) Has been cancelled
Opik Optimizer - E2E Tests / Opik Optimizer Integration Smoke Tests (push) Has been cancelled
🐙 Code Quality / detect (push) Has been cancelled
🐙 Code Quality / lint (${{ matrix.leg.name }}) (push) Has been cancelled
🐙 Code Quality / summary (push) Has been cancelled
TypeScript SDK Library Integration Tests / Check Secrets (push) Has been cancelled
TypeScript SDK Library Integration Tests / opik-vercel (Vercel AI SDK / eve) (push) Has been cancelled
SDK Library Integration Tests Runner / Check Secrets (push) Has been cancelled
SDK Library Integration Tests Runner / Missed OpenAI API Key Warning (push) Has been cancelled
SDK Library Integration Tests Runner / Build (push) Has been cancelled
SDK Library Integration Tests Runner / openai_tests (push) Has been cancelled
SDK Library Integration Tests Runner / langchain_tests (push) Has been cancelled
SDK Library Integration Tests Runner / langchain_legacy_tests (push) Has been cancelled
SDK Library Integration Tests Runner / llama_index_tests (push) Has been cancelled
SDK Library Integration Tests Runner / anthropic_tests (push) Has been cancelled
SDK Library Integration Tests Runner / mistral_tests (push) Has been cancelled
SDK Library Integration Tests Runner / groq_tests (push) Has been cancelled
SDK Library Integration Tests Runner / aisuite_tests (push) Has been cancelled
SDK Library Integration Tests Runner / haystack_tests (push) Has been cancelled
SDK Library Integration Tests Runner / dspy_tests (push) Has been cancelled
SDK Library Integration Tests Runner / crewai_v0_tests (push) Has been cancelled
SDK Library Integration Tests Runner / crewai_v1_tests (push) Has been cancelled
SDK Library Integration Tests Runner / genai_tests (push) Has been cancelled
SDK Library Integration Tests Runner / adk_tests (push) Has been cancelled
SDK Library Integration Tests Runner / adk_legacy_1_3_0_tests (push) Has been cancelled
SDK Library Integration Tests Runner / evaluation_metrics_tests (push) Has been cancelled
SDK Library Integration Tests Runner / bedrock_tests (push) Has been cancelled
SDK Library Integration Tests Runner / litellm_tests (push) Has been cancelled
SDK Library Integration Tests Runner / harbor_tests (push) Has been cancelled
SDK Library Integration Tests Runner / Slack Notification (push) Has been cancelled
Lint Opik Helm Chart / render-equality (push) Has been cancelled
Opik Optimizer - Unit Tests / Opik Optimizer Unit Tests Python ${{matrix.python_version}} (push) Has been cancelled
Python BE E2E Tests / Python BE E2E (push) Has been cancelled
Python Backend Tests / run-python-backend-tests (push) Has been cancelled
Python SDK Unit Tests / Python SDK Unit Tests ${{matrix.python_version}} (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
SDK E2E Libraries Integration Tests / Check Secrets (push) Has been cancelled
SDK E2E Libraries Integration Tests / Missed OpenAI API Key Warning (push) Has been cancelled
SDK E2E Libraries Integration Tests / build-opik (push) Has been cancelled
SDK E2E Libraries Integration Tests / E2E Lib Integration Python ${{matrix.python_version}} (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-gemini) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-langchain) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-openai) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-otel) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-vercel) (push) Has been cancelled
TypeScript SDK Build & Publish / build-and-publish (push) Has been cancelled
TypeScript SDK Unit Tests / Test on Node ${{ matrix.node-version }} (push) Has been cancelled
Backend Tests / discover-tests (push) Has been cancelled
Backend Tests / ${{ matrix.name }} (push) Has been cancelled
Build and Publish SDK / build-and-publish (push) Has been cancelled
Build Opik Docker Images / set-version (push) Has been cancelled
Build Opik Docker Images / build-backend (push) Has been cancelled
Build Opik Docker Images / build-sandbox-executor-python (push) Has been cancelled
Build Opik Docker Images / build-python-backend (push) Has been cancelled
Build Opik Docker Images / build-frontend (push) Has been cancelled
Build Opik Docker Images / create-git-tag (push) Has been cancelled
ClickHouse Migration Cluster Check / validate-clickhouse-migrations (push) Has been cancelled
Docs - Publish / run (push) Has been cancelled
E2E Tests - Post Merge (v2) / 🧪 E2E v2 Tests (${{ github.event.inputs.tier || 't1' }}) (push) Has been cancelled
E2E Tests - Post Merge (v2) / 📢 Slack Notification (push) Has been cancelled
Frontend Unit Tests / Test on Node 20 (push) Has been cancelled
Guardrails E2E Tests / Select Python version matrix (push) Has been cancelled
Guardrails E2E Tests / Guardrails E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Guardrails E2E Tests / 📢 Slack Notification (push) Has been cancelled
Guardrails Backend Unit Tests / Guardrails Backend Unit Tests (push) Has been cancelled
Guardrails Backend Unit Tests / 📢 Slack Notification (push) Has been cancelled
Lint Opik Helm Chart / lint-helm-chart (Helm v3.21.0) (push) Has been cancelled
Lint Opik Helm Chart / lint-helm-chart (Helm v4.2.0) (push) Has been cancelled
Lint Opik Helm Chart / unittest-helm-chart (push) Has been cancelled
304 lines
11 KiB
YAML
304 lines
11 KiB
YAML
# Runner for the suite of library integration tests
|
|
#
|
|
# echo "result=${{ secrets.OPENAI_API_KEY != '' }}" >> $GITHUB_OUTPUT
|
|
name: SDK Library Integration Tests Runner
|
|
run-name: "SDK Library Integration Tests Runner ${{ github.ref_name }} by @${{ github.actor }}"
|
|
permissions:
|
|
contents: read
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
libs:
|
|
description: "Choose specific library to test against or all"
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- all
|
|
- openai
|
|
- langchain
|
|
- langchain_legacy
|
|
- llama_index
|
|
- anthropic
|
|
- mistral
|
|
- groq
|
|
- aisuite
|
|
- haystack
|
|
# - guardrails # disabled: guardrails-ai is on PyPI quarantine
|
|
- dspy
|
|
- crewai_v0
|
|
- crewai_v1
|
|
- genai
|
|
- adk
|
|
- adk_legacy_1_3_0
|
|
- metrics
|
|
- bedrock
|
|
- litellm
|
|
- harbor
|
|
run_expensive_tests:
|
|
description: "Run expensive tests (e.g., video generation). Enabled by default on weekly scheduled runs."
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
schedule:
|
|
# Daily run at midnight UTC Monday-Saturday (without expensive tests)
|
|
- cron: "0 0 * * 1-6"
|
|
# Weekly run on Sunday at midnight UTC (with expensive tests)
|
|
- cron: "0 0 * * 0"
|
|
pull_request:
|
|
paths:
|
|
- 'sdks/python/**'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'sdks/python/**'
|
|
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
LIBS: ${{ github.event.inputs.libs != '' && github.event.inputs.libs || 'all' }}
|
|
OPIK_SENTRY_ENABLE: False
|
|
|
|
jobs:
|
|
has_needed_secrets:
|
|
name: Check Secrets
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
has_secrets: ${{ steps.init.outputs.has_secrets }}
|
|
steps:
|
|
- name: Print has secrets into output
|
|
id: init
|
|
run: |
|
|
echo "has_secrets=${{ secrets.OPENAI_API_KEY != '' }}" >> "$GITHUB_OUTPUT"
|
|
|
|
missed_api_key_warning:
|
|
name: Missed OpenAI API Key Warning
|
|
needs: [has_needed_secrets]
|
|
runs-on: ubuntu-latest
|
|
if: ${{ needs.has_needed_secrets.outputs.has_secrets == 'false' }}
|
|
steps:
|
|
- name: Print disabled message
|
|
run: |
|
|
echo "::warning::SDK Library Integration Tests are disabled because OPENAI_API_KEY is not set"
|
|
|
|
init_environment:
|
|
name: Build
|
|
needs: [has_needed_secrets]
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
if: ${{ needs.has_needed_secrets.outputs.has_secrets == 'true' }}
|
|
outputs:
|
|
LIBS: ${{ steps.init.outputs.LIBS }}
|
|
|
|
steps:
|
|
- name: Make LIBS variable global (workaround for cron)
|
|
id: init
|
|
run: |
|
|
echo "LIBS=${{ env.LIBS }}" >> "$GITHUB_OUTPUT"
|
|
|
|
openai_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["openai", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-openai-tests.yml
|
|
with:
|
|
# Run expensive tests on weekly schedule (Sunday) or when manually requested
|
|
run_expensive_tests: ${{ (github.event_name == 'schedule' && github.event.schedule == '0 0 * * 0') || github.event.inputs.run_expensive_tests == 'true' }}
|
|
secrets: inherit
|
|
|
|
langchain_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["langchain", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-langchain-tests.yml
|
|
secrets: inherit
|
|
|
|
langchain_legacy_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["langchain_legacy", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-langchain-legacy-tests.yml
|
|
secrets: inherit
|
|
|
|
llama_index_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["llama_index", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-llama-index-tests.yml
|
|
secrets: inherit
|
|
|
|
anthropic_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["anthropic", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-anthropic-tests.yml
|
|
secrets: inherit
|
|
|
|
mistral_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["mistral", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-mistral-tests.yml
|
|
secrets: inherit
|
|
|
|
groq_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["groq", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-groq-tests.yml
|
|
secrets: inherit
|
|
|
|
aisuite_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["aisuite", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-aisuite-tests.yml
|
|
secrets: inherit
|
|
|
|
haystack_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["haystack", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-haystack-tests.yml
|
|
secrets: inherit
|
|
|
|
# guardrails-ai is on PyPI quarantine, so the install step fails before
|
|
# pytest runs. Re-enable once the package is back on PyPI.
|
|
# guardrails_tests:
|
|
# needs: [init_environment]
|
|
# if: contains(fromJSON('["guardrails", "all"]'), needs.init_environment.outputs.LIBS)
|
|
# uses: ./.github/workflows/lib-guardrails-tests.yml
|
|
# secrets: inherit
|
|
|
|
dspy_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["dspy", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-dspy-tests.yml
|
|
secrets: inherit
|
|
|
|
crewai_v0_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["crewai_v0", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-crewai-v0-tests.yml
|
|
secrets: inherit
|
|
|
|
crewai_v1_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["crewai_v1", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-crewai-v1-tests.yml
|
|
secrets: inherit
|
|
|
|
genai_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["genai", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-genai-tests.yml
|
|
with:
|
|
# Run expensive tests on weekly schedule (Sunday) or when manually requested
|
|
run_expensive_tests: ${{ (github.event_name == 'schedule' && github.event.schedule == '0 0 * * 0') || github.event.inputs.run_expensive_tests == 'true' }}
|
|
secrets: inherit
|
|
|
|
adk_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["adk", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-adk-tests.yml
|
|
secrets: inherit
|
|
|
|
adk_legacy_1_3_0_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["adk_legacy_1_3_0", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-adk-legacy-1-3-0-tests.yml
|
|
secrets: inherit
|
|
|
|
evaluation_metrics_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["metrics", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-metrics-with-llm-judge-tests.yml
|
|
secrets: inherit
|
|
|
|
bedrock_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["bedrock", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-bedrock-tests.yml
|
|
secrets: inherit
|
|
|
|
litellm_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["litellm", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-litellm-tests.yml
|
|
secrets: inherit
|
|
|
|
harbor_tests:
|
|
needs: [init_environment]
|
|
if: contains(fromJSON('["harbor", "all"]'), needs.init_environment.outputs.LIBS)
|
|
uses: ./.github/workflows/lib-harbor-tests.yml
|
|
secrets: inherit
|
|
|
|
# ========================================
|
|
# Slack Notification (manual and scheduled runs only)
|
|
# ========================================
|
|
notify-slack:
|
|
name: "Slack Notification"
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- openai_tests
|
|
- langchain_tests
|
|
- langchain_legacy_tests
|
|
- llama_index_tests
|
|
- anthropic_tests
|
|
- mistral_tests
|
|
- groq_tests
|
|
- aisuite_tests
|
|
- haystack_tests
|
|
# - guardrails_tests # disabled: guardrails-ai is on PyPI quarantine
|
|
- dspy_tests
|
|
- crewai_v0_tests
|
|
- crewai_v1_tests
|
|
- genai_tests
|
|
- adk_tests
|
|
- adk_legacy_1_3_0_tests
|
|
- evaluation_metrics_tests
|
|
- bedrock_tests
|
|
- litellm_tests
|
|
- harbor_tests
|
|
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
sparse-checkout: .github/scripts
|
|
sparse-checkout-cone-mode: false
|
|
|
|
- name: Determine trigger type
|
|
id: trigger
|
|
run: |
|
|
if [ "${{ github.event_name }}" == "schedule" ]; then
|
|
TYPE=$([[ "${{ github.event.schedule }}" == "0 0 * * 0" ]] && echo "Weekly Schedule" || echo "Daily Schedule")
|
|
else
|
|
TYPE="Manual Dispatch"
|
|
fi
|
|
echo "type=$TYPE" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Send Slack notification
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
SLACK_USER_ID: ${{ secrets.SLACK_SDK_TESTS_NOTIFY_USER_ID }}
|
|
TRIGGER_TYPE: ${{ steps.trigger.outputs.type }}
|
|
SUITE_RESULTS: >-
|
|
{
|
|
"OpenAI": "${{ needs.openai_tests.result }}",
|
|
"LangChain": "${{ needs.langchain_tests.result }}",
|
|
"LangChain Legacy": "${{ needs.langchain_legacy_tests.result }}",
|
|
"LlamaIndex": "${{ needs.llama_index_tests.result }}",
|
|
"Anthropic": "${{ needs.anthropic_tests.result }}",
|
|
"Mistral": "${{ needs.mistral_tests.result }}",
|
|
"Groq": "${{ needs.groq_tests.result }}",
|
|
"AISuite": "${{ needs.aisuite_tests.result }}",
|
|
"Haystack": "${{ needs.haystack_tests.result }}",
|
|
"DSPy": "${{ needs.dspy_tests.result }}",
|
|
"CrewAI v0": "${{ needs.crewai_v0_tests.result }}",
|
|
"CrewAI v1": "${{ needs.crewai_v1_tests.result }}",
|
|
"GenAI": "${{ needs.genai_tests.result }}",
|
|
"ADK": "${{ needs.adk_tests.result }}",
|
|
"ADK Legacy 1.3.0": "${{ needs.adk_legacy_1_3_0_tests.result }}",
|
|
"Evaluation Metrics": "${{ needs.evaluation_metrics_tests.result }}",
|
|
"Bedrock": "${{ needs.bedrock_tests.result }}",
|
|
"LiteLLM": "${{ needs.litellm_tests.result }}",
|
|
"Harbor": "${{ needs.harbor_tests.result }}"
|
|
}
|
|
run: .github/scripts/notify-slack-lib-integration.sh
|