Add test-python-versions matrix to quality gate #36
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 358 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36"
general
weight: 0.35
donn-leaf
Summary
Lets consumers run their test suite across several Python versions with one input instead of hand-rolling a second matrix job (as done in cognizant-ai-lab/leaf-common#191 and cognizant-ai-lab/neuro-san-studio#1363).
_python-quality-gate.yml:test-python-versionsinput (JSON list string, default'')quality-gatejob: test steps and the Slack step gaininputs.test-python-versions == ''unit-testsjob:if: test-python-versions != '' && run-pytest,strategy.matrix.python-version: fromJSON(inputs.test-python-versions),fail-fast: false; same checkout +test-command-override/ pytest steps asquality-gatenotifyjob:needs: [quality-gate, unit-tests], sends one Slack message withstatus: contains(needs.*.result, 'failure') ? failure : success; only when a matrix is setNew composite
actions/python-ci-setupholds the setup steps that were inline inquality-gate(apt packages, requirements detection,setup-python-env) so both jobs share them. It hard-codes./.build-common/actions/setup-python-envsinceuses:cannot be templated; the header comment documents that expectation.Backward compatibility: with the default
''the workflow is behaviourally identical to today (same singlequality-gatejob, same check name, same Slack step). Consumers that opt in get extra checks<job> / Unit tests (3.x)and<job> / Notify Slack.Downstream check: consumers found via
_python-quality-gate— leaf-common, neuro-san (tests.yml, integration.yml), neuro-san-deploy, neuro-san-studio, nsflow, neuro-ui; all pin to tags (1.0.6–1.0.9) and none of them use the removed inline step ids (detect-reqs), so nothing breaks onmainor on tag upgrade.Validation:
yamllint --strictandactionlintpass. Dogfooded from a leaf-common branch pointing at this SHA withtest-python-versions: '["3.12", "3.13", "3.14"]': https://github.com/cognizant-ai-lab/leaf-common/actions/runs/33778473493Link to Devin session: https://app.devin.ai/sessions/25fc14ae7bdc496f98837871f43ed0ea
Open in Devin Desktop: https://app.devin.ai/desktop/session/25fc14ae7bdc496f98837871f43ed0ea?variant=devin
Requested by: @donn-leaf
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/cognizant-ai-lab/build-common/pull/36" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=3">
<img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=3" alt="Devin Review">
</picture>
</a>
<!-- devin-review-badge-end -->