feat: CI support for governance_observability - #23
Conversation
|
Review against current Will fail the merged
|
Adds run.sh with step-labelled execution of all three scripts. Fixes agent_tracing.py to hard-fail on missing OPIK_WORKSPACE at module load (consistent with use_case_team.py and data_governance_team.py). Adds .gitignore for generated governance_extract_*.json output files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The reconciled pr-test.yml runs `bash run.sh` with no credentials (the secrets-free dry-run job) and expects exit 0. The three scripts read OPIK_WORKSPACE / OPIK_API_KEY at import and call the live Opik API unconditionally, so they crashed without creds. Add the standard DRY_RUN = not (OPIK_API_KEY and OPIK_WORKSPACE) gate: switch the hard os.environ[...] lookups to .get() and short-circuit each __main__ with a [DRY RUN] stub. Also apply ruff format (the lint job runs format --check). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e2dcbf2 to
d6b567e
Compare
Summary
run.shwith three labelled steps: agent tracing → use case team → data governance teamagent_tracing.pyto hard-fail on missingOPIK_WORKSPACEat module load (matches behaviour of the other two scripts).gitignorefor generatedgovernance_extract_*.jsonoutput filesTest plan
opik-examplesworkspace — all three steps passed, traces visible in Opiklrb/ci-workflows🤖 Generated with Claude Code