← Back to Pull requests

[1.17] test/kubernetes/e2e: introduce profiles for tests to use recommended helm values #10125

Merged
sam-heilbron merged 57 files (1409 lines) on Sep 30, 2024 17:10 UTC
View on GitHub
sam-heilbron sam-heilbron commented on Sep 27, 2024 22:20 UTC
Author

Backport of https://github.com/solo-io/gloo/pull/10106

Description

Introduce standard recommended helm values for installations, and update our end-to-end tests to use them

Context


Backport


I chose to backport this to ensure that our 1.17 and 1.18 branches stay as in sync as possible. We are regularly backporting improvements to 1.17, so having the tests be in sync will make the lives of developers a lot easier.

Helm Profiles


The idea here is that there are different "profiles" who will install Gloo Gateway. Depending on the use-case, the recommended Helm values will vary. We don't need to make these profiles a first-class part of the product yet, but by defining them in tests, it puts us a step closer towards being able to introduce these in our CLI or other install tooling.

Single Source of Truth Value


I believe there is a lot of value in restructuring our tests to ensure that we define our production recommendations in a single place. Below, I try to clarify.

Align Recommendations with Tests


We can now have user-facing documentation that is tied directly to a single file, and ensure that what we recommend to users is exactly what our tests use

Reduce Developer Mistakes


In this PR you can see the number of manifests that exist to support our tests. Many have almost identical configuration. However, as we introduce new recommended values, you must apply that to all files, and a developer may forget that. In addition, for new tests, it is easy for a developer to not have all the context and accidentally run tests against a non-standard set of Helm values.
By defining our recommended values in a single file, and requiring a "profile" to be defined for all tests, it reduces the chance for developer mistakes.

Focus Unique Test Values


For a given test installation, it is easier to see what is unique about that installation, since the file now only contains the non-standard values.

Interesting decisions


  • Testing steps


  • All existing tests continue to pass
  • Notes for reviewers


  • Checklist:


  • I have performed a self-review of my own code

  • I have commented my code, particularly in hard-to-understand areas

  • I have made corresponding changes to the documentation

  • I have added tests that prove my fix is effective or that my feature works
  • Diff: 1409 lines (+508 / -901) across 57 files Reviewer: jbohanon Review duration: 4009m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.95) × (1 − Review Confidence (0.66)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.95 · 1409 lines diff across 57 files
    0.95
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.33 · 1 substantive comment(s)
    0.33
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    65%
    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.400
    Shallow Review Depth shallow_review_depth
    0.235
    Sensitive Paths sensitive_paths
    0.095
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    4 items
    solo-changelog-bot[bot] solo-changelog-bot[bot] commented on Sep 27, 2024 22:20 UTC
    Bot

    Issues linked to changelog:
    https://github.com/solo-io/docs/issues/489

    jbohanon jbohanon approved these changes on Sep 30, 2024 10:59 UTC
    Approved Reviewer

    Approved these changes.

    sheidkamp sheidkamp approved these changes on Sep 30, 2024 16:52 UTC
    Approved Reviewer

    Looks the same as the initial PR, minus the helm tests that aren't in this branch.

    Reviewers
    Assignees
    sam-heilbron sam-heilbron
    Labels
    risk: low confidence: 65.7% reviewed sensitive_module
    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: 94.7% (HIGH) · Higher = larger blast radius
    94.7%
    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: 65.7% · Lower = rushed or shallow review
    65.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: 32.5% · Safe to merge
    32.5%