← Back to Pull requests

[docs] Add wmco-local-debug skill #4809

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 16, 2026 04:13 UTC
Author

Adds .claude/skills/wmco-local-debug/SKILL.md, the operating procedure for a live WMCO cluster bound
to a pull request. It exists because a WMCO change or test failure can rarely be settled without a
cluster that carries the pull request's operator and a Windows node, and the pieces to build one were
spread across a debug job, a rehearsal log, a runbook and several Slack threads.

The file is the documentation. This description says what it contains and how it was checked.

Scope

Any live WMCO work, not only OTE: operator, controller, daemon and Windows node changes, Windows
Containers test debugging, and separating a real failure from a broken environment. It covers both
supported ways of getting a cluster - the opt-in Azure OTE debug job in openshift/release and
cluster-bot - and everything from Step 3 onwards applies to either.

What the skill documents

  • Getting a cluster: the two ways, what each installs for you, and which to pick.

  • Who owns what: the job definition is shared by the team, every run is individual, namespace

  • access follows the person who triggered it, and a teammate gets a cluster by requesting the job on
    their own pull request rather than by sharing a run.
  • Job reference: the exact azure-e2e-ote-debug contract - ipi-azure-ovn-hybrid, build13,

  • openshift-org-azure, hack/run-ci-e2e-test.sh -t setup-only -s, the PULL_NUMBER gate,
    TIMEOUT +4 hours, /tmp/debug.done, the windows-machine-config-operator/all suite with
    TEST_SKIPS, the 6h45m step and 20h job timeouts - and why the hold lives in the setup pod rather
    than the shared wait step.
  • Finding the run: deriving the ci-op-* namespace from the build cluster, and how to tell an

  • active hold from a pod that is Pending on anti-affinity.
  • Access: two ways to obtain the debug kubeconfig, file permissions, the environment checks that

  • must pass before any result is trusted, and the rule that keeps the debug kubeconfig out of the
    build-cluster shell.
  • Development loop: operator logs, swapping the deployment image, the SSH key and node address,

  • the services ConfigMap, what reconfiguration costs, and which repository scripts reproduce the same
    setup on a cluster you own.
  • Building and running tests: native and Linux builds into separate output directories, the

  • KUBECONFIG requirement that makes go test and the binary silently do nothing without it, listing
    tests, running one from the workstation or inside the hold pod with --timeout, and how to read the
    JSON result line.
  • Releasing the hold: the touch /tmp/debug.done from the build-cluster shell and why the job

  • should be allowed to finish its suite, diagnostics and deprovisioning.
  • Environment limits that look like failures: a missing machine approver leaving machines

  • Provisioned with unapproved CSRs, a namespace-scoped CatalogSource blocking an OLM reinstall, a
    Terminating namespace caused by Windows pods that cannot terminate after their CSI volume is gone,
    a fixed namespace left by an earlier attempt, and wall-clock deadlines stretched by a sleeping
    workstation.
  • Adding another opt-in debug variant: six rules - always_run: false without

  • pipeline_run_if_changed, every test-level env var declared on a step, hold inside an already
    scheduled step, timeouts that budget setup plus hold, make update after any configuration edit so
    the generated presubmits stay in sync, and a rehearsal before merging.
  • Traps proven on real rehearsals: a symptom/cause/action table, including the 97-minute Pending

  • hold, the machine-approver CSR case, the "not cluster-wide" skip, the Terminating namespace, the
    immediate "namespace already exists" failure, KUBECONFIG unset, the wrong-cluster mistake and the
    Linux binary overwriting the native one.
  • Evidence rules: never print kubeconfigs, pull secrets or private keys; record the commit or image

  • digest, the command and the result line; report pass, skip and infrastructure failure separately; do
    not delete resources you do not own.

    Layout

    .claude/skills/wmco-local-debug/SKILL.md, with name and description frontmatter, so the skill is
    discoverable rather than a Markdown file that has to be found by hand.

    Validation

    Every command in the document was run against the repository before being written down:

  • make build-tests-ext from the root produces build/_output/bin/wmco-tests-ext.

  • mkdir -p build/_output-linux/bin && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make build-tests-ext OUTPUT_DIR=build/_output-linux

  • produces build/_output-linux/bin/wmco-tests-ext, an ELF 64-bit statically linked binary, and leaves
    the native binary untouched.
  • KUBECONFIG=/dev/null ./build/_output/bin/wmco-tests-ext list tests -o names lists the suite;

  • without KUBECONFIG the same command fails with Please set KUBECONFIG first!.
  • KUBECONFIG=/dev/null GOWORK=off go test ./test/e2e -count=1 runs the package's unit tests and

  • passes; without KUBECONFIG the same command prints ok while running none of them.
  • The job contract and the trap table come from the rehearsals of

  • openshift/release#88887, where the hold was moved
    into the setup pod after sitting Pending for 97 minutes, and from driving OCP-66352, OCP-74760,
    OCP-37086 and OCP-37096 against a held cluster.

    Related

  • openshift/release#88887 adds the job this skill

  • drives, and its README points here for the operating procedure instead of repeating it.
  • The WINC-1975 test migration uses the same environment; the limits section records what it can and

  • cannot finish on a rehearsal cluster.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: redhat-chai-bot Review duration: 2087m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.57) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 650 lines diff across 8 files
    0.57
    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%
    42%
    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.388
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #4809"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 57% (MEDIUM) · Higher = larger blast radius
    57%
    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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 32.5% · Safe to merge
    32.5%