← Back to Pull requests

Use vendor member logo when productLogoUrl is omitted #163

Closed
unknown closed this pull request without merging on Oct 29, 2026 21:37 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 17:37 UTC
Author

Fixes #162

Problem

When the landscape generator creates a new entry, it always writes
logo: <platform>.svg, even when productLogoUrl is omitted or the download
fails. The resulting cncf/landscape PR references a logo that doesn't exist.

Change

New entries now always reference a logo that exists in hosted_logos/:

1. productLogoUrl downloads successfully → use it (unchanged).
2. URL omitted or download fails → reuse the logo from the vendor's CNCF
member card (<vendorName> (member)), as instructions.md documents
("If not supplied, we'll use your company logo"). There's already a precedent:
the NVKE entry uses nvidia-member.svg. When this fallback is used, the PR
body says so, e.g. "added new entry using the vendor member logo (nvidia-member.svg)",
and names the productLogoUrl if one was set but failed to download.
3. No member card or logo file found → return an error and leave
landscape.yml unchanged. The workflow fails, so a maintainer can set
productLogoUrl or add the logo by hand.

The member lookup uses the same rule validate.go applies to vendorName:
only cards in the "CNCF Members" category, with (member)/ (supporter)
stripped, exact match. A submission that passes validation therefore always
finds its member card.

The existing-entry (second_path) path is unchanged.

Validation

  • New unit tests cover the member lookup (exact match, supporter cards,

  • near-misses, (member) cards outside CNCF Members), logo resolution (download
    succeeds, URL omitted, download fails, no member card, member logo file
    missing), and processProduct (uses the member logo; makes no write when no
    logo is available).
  • validate.yaml now also runs the landscape-tagged unit tests.

  • Ran the member lookup against the current cncf/landscape landscape.yml for

  • all 42 distinct vendorName values in this repo: 32 matched, and every
    referenced logo exists in hosted_logos/. The 10 that don't match (e.g.
    Amazon Web Services (AWS), Google, Baidu Cloud, The k0s Project) are
    older submissions that the current validator would also reject. They'd now
    error out instead of producing a broken entry if they submitted a new product
    without a logo URL.

    Independent of #160 / #161.

    Diff: 287 lines (+215 / -72) across 3 files Reviewer: jeefy Review duration: 239m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 287 lines diff across 3 files
    0.40
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #163"
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 15.7% · Safe to merge
    15.7%