← Back to Pull requests

SRVOCF-1079: Control func cli version installed in workflow #179

Closed
unknown closed this pull request without merging on Sep 11, 2026 15:26 UTC
View on GitHub
unknown unknown commented on Sep 02, 2026 13:53 UTC
Author

Summary

Go and Python function builds were failing in CI because the generated workflow installed func CLI knative-v1.22.0 - upstream had the default outdated. That version treats an HTTP 500 from the OCP internal registry as fatal during func push, whereas knative-v1.23.0 contains the upstream fix (knative/func#3885).

  • Update knative.dev/func module to a pseudo version that includes func cli overwrite possibility and the default updated

  • Pin FuncCliVersion: knative-v1.23.3 in the generated GitHub Actions workflow so it installs the fixed CLI version - enabled by https://github.com/knative/func/pull/4029 and fix the python issue with https://github.com/knative/func/pull/4040 (now irrelevant since we are using builder: s2i instead of builder: host

  • Extract the pinned version to config.FuncCLIVersion to make future updates explicit and discoverable; add an assertion in the scaffold test to catch version mismatches on future module bumps
  • Manual tests were run across all runtimes (Go, Python, Node, Quarkus) to confirm the fix. In the future, e2e tests using act in the fake GitHub server will exercise function creation end-to-end across all runtimes, catching this class
    of issue automatically even when it originates upstream.

    Checklist

  • Updated docs/ARCHITECTURE.md (if there are relevant changes to our layered architecture)
  • Fixes SRVOCF-1079

    Diff: 183 lines (+137 / -46) across 2 files Reviewer: dsimansk Review duration: 13053m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 183 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.312
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #179"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.1% · Safe to merge
    14.1%