← Back to Pull requests

scripts: move verify-shellws to scripts/verify/shellws.sh #22816

Merged
ggirish90 merged 3 files (48 lines) on Nov 18, 2026 20:49 UTC
View on GitHub
ggirish90 ggirish90 commented on Nov 12, 2026 19:30 UTC
Author

Fixes #22721

Part of #20856.

Moves the verify-shellws check out of the shellws_pass function in scripts/test.sh into a standalone script, scripts/verify/shellws.sh.

Changes:

  • Add scripts/verify/shellws.sh with the same tab-indentation check. It sources test_lib.sh for the logging helpers and exits 255 on failure, matching the old return 255.

  • Update the verify-shellws Makefile target to run ./scripts/verify/shellws.sh directly instead of PASSES="shellws" ./scripts/test.sh.

  • Remove shellws_pass from scripts/test.sh.
  • The script cds into ETCD_ROOT_DIR since the check uses a relative find ., so it behaves the same no matter where it's invoked from. scripts/verify/grpc_experimental.sh does the same.

    Testing:

  • make verify-shellws on a clean tree passes
  • Diff: 48 lines (+35 / -13) across 3 files Reviewer: ivanvc Review duration: 8719m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.29) × (1 − Review Confidence (0.82)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.29 · 48 lines diff across 3 files
    0.29
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.74 · 5 substantive comment(s)
    0.74
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    81%
    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.233
    Real PR Conversation Timeline
    12 items
    kubernetes-prow[bot] kubernetes-prow[bot] commented on Nov 12, 2026 19:30 UTC
    Bot

    Hi @ggirish90. Thanks for your PR.

    I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

    Regular contributors should join the org to skip this step.

    Once the patch is verified, the new status will be reflected by the ok-to-test label.

    I understand the commands that are listed here.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
    </details>

    ggirish90 ggirish90 commented on Nov 16, 2026 06:39 UTC
    Author

    Hi @ivanvc, just following up on this PR from KubeCon ContribFest. The changes have been tested locally, and make verify-shellws passes.

    Would appreciate a review when you get a chance. Happy to address any feedback. Thanks!

    ivanvc ivanvc commented on Nov 16, 2026 22:42 UTC
    Contributor

    /ok-to-test

    codecov[bot] codecov[bot] commented on Nov 16, 2026 23:12 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 73.01%. Comparing base (dd2c518) to head (168143b).

    <details><summary>Additional details and impacted files</summary>

    see 19 files with indirect coverage changes

    @@            Coverage Diff             @@
    ##             main   #22816      +/-   ##
    ==========================================
    - Coverage   73.07%   73.01%   -0.06%     
    ==========================================
      Files         449      449              
      Lines       31903    31903              
    ==========================================
    - Hits        23312    23293      -19     
    - Misses       8588     8607      +19     
      Partials        3        3              
    

    ------

    Continue to review full report in Codecov by Harness.

    Legend - Click here to learn more

    Δ = absolute <relative> (impact), ø = not affected, ? = missing data

    Powered by Codecov. Last update dd2c518...168143b. Read the comment docs.

    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    serathius serathius commented on Nov 17, 2026 16:59 UTC
    Contributor

    Please fix conflict

    ggirish90 ggirish90 commented on Nov 17, 2026 21:11 UTC
    Author

    @serathius - resolved the conflicts.

    ggirish90 ggirish90 commented on Nov 17, 2026 21:12 UTC
    Author

    /retest

    ivanvc ivanvc approved these changes on Nov 17, 2026 21:30 UTC
    Approved Reviewer

    LGTM. Thanks, @ggirish90.

    ivanvc ivanvc commented on Nov 18, 2026 20:39 UTC
    Contributor

    /cc @ahrtr @serathius @fuweid

    ahrtr ahrtr approved these changes on Nov 18, 2026 20:49 UTC
    Approved Reviewer

    Approved these changes.

    kubernetes-prow[bot] kubernetes-prow[bot] commented on Nov 18, 2026 20:49 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/etcd-io/etcd/pull/22816#pullrequestreview-5964852337" title="Approved">ahrtr</a>, <a href="https://github.com/etcd-io/etcd/pull/22816#" title="Author self-approved">ggirish90</a>, <a href="https://github.com/etcd-io/etcd/pull/22816#pullrequestreview-5946935238" title="Approved">ivanvc</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [ahrtr,ivanvc]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Reviewers
    Assignees
    ggirish90 ggirish90
    Labels
    risk: low confidence: 82.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: 29.2% (LOW) · Higher = larger blast radius
    29.2%
    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: 82.0% · Lower = rushed or shallow review
    82.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: 5.3% · Safe to merge
    5.3%
    Repository