Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error wrapping for errors in HTTP2 server preface #6639

Closed
wants to merge 2 commits into from

internal/transport: fix error wrapping for errors in server preface

71e7646
Select commit
Loading
Failed to load commit list.
Closed

Fix error wrapping for errors in HTTP2 server preface #6639

internal/transport: fix error wrapping for errors in server preface
71e7646
Select commit
Loading
Failed to load commit list.
Mergeable / Mergeable failed Mar 30, 2024 in 0s

3/3 Fail(s): LABEL, DESCRIPTION, MILESTONE

Status: FAIL

    Here are some stats of the run:
    3 validations were ran.
    0 PASSED
    3 FAILED

Details

❌ Validator: LABEL

  • label does not include "^Type:"
    Input : Status: Requires Reporter Clarification,stale
    Settings : {"must_include":{"regex":"^Type:"}}

❌ Validator: DESCRIPTION

  • description does not include "^RELEASE NOTES:\s([Nn][Oo][Nn][Ee]|[Nn]/[Aa]|\n(*|-)\s.+)$"**
    Input : # What?

This PR fixes the error wrapping that happens in the server preface and a test for it.

The test emulates communication when the client uses an incapable certificate (it's valid, but only can be used for email protection).

Why?

Without the fix commit the Dial will do constant retries till the context is canceled.

Resolves: #6593
Settings : {"must_include":{"regex":"^RELEASE NOTES:\\s*([Nn][Oo][Nn][Ee]|[Nn]/[Aa]|\\n(\\*|-)\\s*.+)$","regex_flag":"m"}}

❌ Validator: MILESTONE

  • milestone does not include "Release$"
    Input :
    Settings : {"must_include":{"regex":"Release$"}}