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
260 lines
9.4 KiB
YAML
260 lines
9.4 KiB
YAML
# Internal release
|
|
name: "Release"
|
|
run-name: "Release from ${{github.ref_name}} by @${{ github.actor }}"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
reuse_existing_tag:
|
|
type: boolean
|
|
required: false
|
|
default: false
|
|
description: "Reuse an existing git tag for this version instead of creating + pushing a new one. Use to replay a release whose tag was already created (e.g. by a prior failed run)."
|
|
workflow_call: # in order to make this action been called from outside
|
|
inputs:
|
|
reuse_existing_tag:
|
|
type: boolean
|
|
required: false
|
|
default: false
|
|
description: "Reuse an existing git tag for this version instead of creating + pushing a new one."
|
|
outputs:
|
|
version:
|
|
description: 'The release version'
|
|
value: ${{ jobs.set-version.outputs.version }}
|
|
|
|
jobs:
|
|
set-version:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
outputs:
|
|
version: ${{ steps.version.outputs.version }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set version
|
|
id: version
|
|
run: |
|
|
echo "version=$(cat version.txt)" | tee -a "$GITHUB_OUTPUT"
|
|
|
|
create-git-tag:
|
|
needs:
|
|
- set-version
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Create git tag
|
|
env:
|
|
RELEASE_VERSION: ${{ needs.set-version.outputs.version }}
|
|
REUSE_EXISTING_TAG: ${{ inputs.reuse_existing_tag }}
|
|
run: |
|
|
set -x
|
|
git config --local user.email "github-actions@comet.com"
|
|
git config --local user.name "github-actions"
|
|
|
|
if [ "${REUSE_EXISTING_TAG}" = "true" ]; then
|
|
# Resolve the SHA the remote tag points to and surface it in the
|
|
# warning. `reuse_existing_tag=true` is an operator trust statement
|
|
# ("I trust this tag"). Printing the SHA lets the operator sanity-
|
|
# check from the Actions log that the tag points to the commit they
|
|
# expect — and cancel the run if it doesn't — without us having to
|
|
# take a stance on what 'correct' means here (e.g., an ancestor
|
|
# check would falsely reject legitimate replays after a main
|
|
# rebase). See PR #7124 review thread for the threat-model
|
|
# discussion.
|
|
TAG_SHA=$(git ls-remote --tags origin "${RELEASE_VERSION}" | awk '{print $1}')
|
|
if [ -n "${TAG_SHA}" ]; then
|
|
echo "::warning title=create-git-tag::reuse_existing_tag=true and origin already has tag ${RELEASE_VERSION} (commit ${TAG_SHA}); skipping create+push. Build will pin to this commit — verify it's the source you intend to release."
|
|
exit 0
|
|
fi
|
|
echo "::error title=create-git-tag::reuse_existing_tag=true but origin does not have tag ${RELEASE_VERSION}. Refusing to silently create a new one."
|
|
exit 1
|
|
fi
|
|
|
|
git tag "${RELEASE_VERSION}"
|
|
git push --no-verify origin "${RELEASE_VERSION}"
|
|
|
|
release-apps:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
uses: ./.github/workflows/build_apps.yml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{needs.set-version.outputs.version}}
|
|
is_release: true
|
|
# Caller-passes ref: build_apps.yml already exposes a ref input (defaults to inputs.ref || github.ref).
|
|
# TS SDK workflows in OPIK-6627 used callee-derives because they lacked one. See OPIK-6633.
|
|
ref: refs/tags/${{needs.set-version.outputs.version}}
|
|
|
|
release-sdk:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
uses: ./.github/workflows/build_and_publish_sdk.yaml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{needs.set-version.outputs.version}}
|
|
is_release: true
|
|
|
|
release-typescript-sdk:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
uses: ./.github/workflows/typescript_sdk_publish.yml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{needs.set-version.outputs.version}}
|
|
is_release: true
|
|
skip_commit_push: true
|
|
|
|
release-typescript-sdk-integrations:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
uses: ./.github/workflows/typescript_sdk_integration_publish.yml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{needs.set-version.outputs.version}}
|
|
is_release: true
|
|
skip_commit_push: true
|
|
|
|
publish-helm-chart:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
uses: ./.github/workflows/publish_helm_chart.yaml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{needs.set-version.outputs.version}}
|
|
|
|
create-github-release:
|
|
needs:
|
|
- set-version
|
|
- create-git-tag
|
|
- release-apps
|
|
- release-sdk
|
|
- release-typescript-sdk
|
|
- release-typescript-sdk-integrations
|
|
- publish-helm-chart
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create GitHub release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{needs.set-version.outputs.version}}
|
|
generate_release_notes: true
|
|
|
|
- name: Delete Release Draft
|
|
uses: hugo19941994/delete-draft-releases@v1.0.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
commit-all-version-changes:
|
|
needs:
|
|
- set-version
|
|
- release-typescript-sdk
|
|
- release-typescript-sdk-integrations
|
|
- publish-helm-chart
|
|
- create-github-release
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: main
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GH_PAT_TO_ACCESS_GITHUB_API }}
|
|
|
|
- name: Setup Node.js for TypeScript version update
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
registry-url: "https://registry.npmjs.org"
|
|
|
|
- name: Update TypeScript SDK version
|
|
shell: bash
|
|
working-directory: sdks/typescript
|
|
run: |
|
|
npm version ${{ needs.set-version.outputs.version }} --no-git-tag-version
|
|
|
|
- name: Update TypeScript SDK Integrations versions
|
|
shell: bash
|
|
run: |
|
|
for integration in opik-openai opik-gemini opik-langchain opik-vercel opik-otel; do
|
|
if [ -d "sdks/typescript/src/opik/integrations/$integration" ]; then
|
|
echo "Updating version for $integration"
|
|
cd "sdks/typescript/src/opik/integrations/$integration"
|
|
npm version ${{ needs.set-version.outputs.version }} --no-git-tag-version
|
|
cd - > /dev/null
|
|
fi
|
|
done
|
|
|
|
- name: Update Chart.yaml with release version
|
|
shell: bash
|
|
run: |
|
|
set -x
|
|
cd deployment/helm_chart/opik
|
|
sed -i "s/^version:.*/version: ${{ needs.set-version.outputs.version }}/" Chart.yaml
|
|
sed -i "s/^appVersion:.*/appVersion: ${{ needs.set-version.outputs.version }}/" Chart.yaml
|
|
echo "Updated Chart.yaml version and appVersion to: ${{ needs.set-version.outputs.version }}"
|
|
grep -E "^version:|^appVersion:" Chart.yaml
|
|
cd -
|
|
|
|
# The chart README badges are derived from Chart.yaml by helm-docs, so
|
|
# regenerate here (git-push: false) to fold the update into the version
|
|
# commit below. Without this the README lags one release and the next
|
|
# chart-touching PR trips the helm-docs / update_helm_readme.yaml gate.
|
|
# Same action + inputs as update_helm_readme.yaml, keeping CI and the
|
|
# local pre-commit hook in agreement.
|
|
- name: Regenerate Helm chart README
|
|
uses: losisin/helm-docs-github-action@v1
|
|
with:
|
|
chart-search-root: deployment/helm_chart/opik
|
|
git-push: false
|
|
|
|
- name: Bump version.txt for next release
|
|
id: update_version
|
|
shell: bash
|
|
run: |
|
|
set -x
|
|
BASE_VERSION=$(tr -d '\r' < version.txt | xargs)
|
|
IFS='.' read -r -a version_parts <<< "$BASE_VERSION"
|
|
# Ensure all version parts are set
|
|
for i in {0..2}; do
|
|
version_parts[i]=${version_parts[i]:-0}
|
|
done
|
|
# Convert to decimal before incrementing to avoid octal interpretation issues
|
|
version_parts[2]=$((10#${version_parts[2]} + 1))
|
|
new_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}"
|
|
|
|
# Update version file with the new version
|
|
echo "$new_version" > version.txt
|
|
echo "new_version=${new_version}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Commit all version changes
|
|
run: |
|
|
git config --local user.email "github-actions@comet.com"
|
|
git config --local user.name "github-actions"
|
|
|
|
# Add all modified version files
|
|
git add sdks/typescript/package.json sdks/typescript/package-lock.json
|
|
git add sdks/typescript/src/opik/integrations/*/package.json sdks/typescript/src/opik/integrations/*/package-lock.json
|
|
git add deployment/helm_chart/opik/Chart.yaml
|
|
git add deployment/helm_chart/opik/README.md
|
|
git add version.txt
|
|
|
|
# Check if there are any changes to commit
|
|
if git diff --staged --quiet; then
|
|
echo "No changes to commit"
|
|
else
|
|
git commit -m "Update versions to ${{ needs.set-version.outputs.version }} and bump base version to ${{ steps.update_version.outputs.new_version }}"
|
|
git push origin main
|
|
fi
|
|
|
|
echo "Version updated to ${{ steps.update_version.outputs.new_version }} on main" >> "$GITHUB_STEP_SUMMARY"
|