-
[OPIK-6019] [INFRA] refactor: centralize SDK CI version matrices into repo variables (#6329)
发布于
2026-04-19 05:34:25 +00:00 - [OPIK-6019] [INFRA] perf: optimize SDK CI matrix — min/max versions on PRs, full matrix on main
Reduce CI runner usage on pull requests by running tests against only the
lowest and highest supported versions. Full matrix runs on merge to main,
workflow_dispatch, and schedule triggers.- Added 4 repo variables (PYTHON_VERSIONS_ALL/PR, NODE_VERSIONS_ALL/PR)
to centralize version definitions - Direct workflows use github.event_name conditional with vars
- Reusable lib-* workflows accept a full_matrix input, passed by the runner
- Restricted lib-* workflows (crewai, dspy, aisuite, langchain-legacy, harbor)
use inline conditionals for their non-standard version ranges - Optimizer workflows now also trigger on push to main for full coverage
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- fix(ci): restore schedule comments on run_expensive_tests
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- refactor(ci): simplify to version centralization only, remove PR conditional logic
Per review feedback, remove the PR vs main conditional matrix optimization.
Keep only the centralized version management via repo variables
(PYTHON_VERSIONS, NODE_VERSIONS).- Remove full_matrix input from all lib-* reusable workflows
- Remove full_matrix passing from runner workflow
- Simplify matrix expressions to just fromJSON(vars.PYTHON_VERSIONS)
- Restricted lib-* workflows revert to original inline arrays
- Repo variables renamed: _ALL/_PR suffixes removed
The PR optimization will be revisited as a pipeline restructuring
approach (OPIK-6028) that builds Docker images once and parallelizes
tests against pre-built images.Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件