← Back to Pull requests

Add a workflow to merge new upstream releases #16

Open
unknown opened this pull request with 254 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 26, 2026 08:10 UTC
Author

What this PR does, in one sentence

Adds a daily (or on-demand) workflow that merges the latest stable kubernetes-sigs/cloud-provider-kind release into this fork through a PR, and lands it once CI is green.

Context

Following upstream is a manual job today: someone has to notice a new release, merge the tag, regenerate vendor/, and open a PR. The repository also has no CI that builds or tests the code, so nothing validates such a merge before it lands.

What the PR brings

  • update-upstream: reads the upstream tags, takes the highest stable vX.Y.Z, and stops if its commit is already in the history of main. Otherwise it merges the tag into an upstream-sync/<tag> branch, refreshes go.mod/vendor/ in a separate commit, and opens a PR. When the CI run passes, the PR is merged with a merge commit (never squash or rebase), so the upstream tag stays an ancestor of main and the next run sees it as already integrated.

  • ci: build, vet, tests and image build. It runs on PRs and pushes to main, and is reused by the workflow above on the exact commit it then merges.

  • Guardrails:

  • - Upstream tags are never fetched into refs/tags, because the fork's own v* release tags (which trigger publish) share the upstream naming.
    - The fork's .github is kept as is, and vendor/ is regenerated rather than merged.
    - On a merge conflict nothing is pushed and the run fails with the list of files. Resolving it by hand on upstream-sync/<tag> and opening a PR lets the next run validate and merge it.
    - A failing CI leaves the PR open. Closing a PR skips that tag; converting it to draft puts it on hold.

    Before it can run for real

  • "Allow GitHub Actions to create and approve pull requests" must be enabled for the repository.

  • Merging v0.12.0 conflicts today (Dockerfile, go.mod, go.sum, three files under pkg/), so the first sync needs a manual merge. After that the workflow keeps up on its own.
  • 🤖 Generated with Claude Code

    Diff: 254 lines (+190 / -64) across 3 files Reviewer: ndeloof Review duration: 6673m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.332
    Real PR Conversation Timeline
    1 comments
    "Review active on #16"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 20.8% · Safe to merge
    20.8%