-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Spelling #9778
Spelling #9778
Conversation
Welcome @jsoref! It looks like this is your first PR to knative/serving 🎉 |
Hi @jsoref. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Spelling corrections were mostly picked automatically by Google Sheets, it's quite possible I've messed up, but I try to review before submitting...
@@ -83,7 +83,7 @@ data: | |||
logging.request-log-template: '{"httpRequest": {"requestMethod": "{{.Request.Method}}", "requestUrl": "{{js .Request.RequestURI}}", "requestSize": "{{.Request.ContentLength}}", "status": {{.Response.Code}}, "responseSize": "{{.Response.Size}}", "userAgent": "{{js .Request.UserAgent}}", "remoteIp": "{{js .Request.RemoteAddr}}", "serverIp": "{{.Revision.PodIP}}", "referer": "{{js .Request.Referer}}", "latency": "{{.Response.Latency}}s", "protocol": "{{.Request.Proto}}"}, "traceId": "{{index .Request.Header "X-B3-Traceid"}}"}' | |||
|
|||
# If true, the request logging will be enabled. | |||
# NB: up to and including Knative version 0.18 if logging.requst-log-template is non-empty, this value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Google says that this is not present beyond one gist
@@ -109,7 +109,7 @@ type revisionWatcher struct { | |||
logger *zap.SugaredLogger | |||
|
|||
// podsAddressable will be set to false if we cannot | |||
// probe a pod directly, but its cluster IP has beeen successfully probed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes people intentionally add extra letters, this doesn't appear to be such an instance
@@ -179,7 +179,7 @@ func (r *reconcilerImpl) Reconcile(ctx context.Context, key string) error { | |||
logger := logging.FromContext(ctx) | |||
|
|||
// Initialize the reconciler state. This will convert the namespace/name | |||
// string into a distinct namespace and name, determin if this instance of | |||
// string into a distinct namespace and name, determine if this instance of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't shock me if I'm supposed to change this elsewhere, just let me know where and I should be able to eventually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tcnghia: there's a vendor/
directory in this repository, often those are directories that people aren't supposed to change directly, it has instances with determin
-- can I just change them directly? Or is there an appropriate place to change it. Here's what my local clones have:
https://gist.github.com/jsoref/6115a4ce35488ecc6797ec3cb79563b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change vendor directory, it gets auto populated with some tooling we have. is a mix of internal and external modules
@@ -44,7 +44,7 @@ func ReconcileCertificate(ctx context.Context, owner kmeta.Accessor, desired *v1 | |||
|
|||
recorder := controller.GetEventRecorder(ctx) | |||
if recorder == nil { | |||
return nil, fmt.Errorf("recoder for reconciling Certificate %s/%s is not created", desired.Namespace, desired.Name) | |||
return nil, fmt.Errorf("recorder for reconciling Certificate %s/%s is not created", desired.Namespace, desired.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm always worried about changes like his, but as the line above is recorder
, I'm relatively confident here
// We want exactly 2. Not 1, not panicing 3, just 2. | ||
// We want exactly 2. Not 1, not panicking 3, just 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is more like (panic)ing as in go's panic
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I get that.
https://www.google.com/search?q=go+%22panicing%22
~298,000 results
+Did you mean: go "panicking"
https://www.google.com/search?q=go+%22panicking%22
~14,300,000 results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good panicking
/ok-to-test |
@jsoref very nice through update, thanks. Can you please rerun hack/update-codegen.sh (see https://github.com/knative/serving/pull/9778/checks?check_run_id=1239381808 ) |
@tcnghia: I don't think I have a working go install. I'll have to look later. (I'm happy to give write bits to my fork too...) |
@n3wscott @mattmoor I wonder if this is something we can automate so that our less-frequent contributors can just do /update-codegen and get a commit :) -- or a downloadable patch to use with |
This comment has been minimized.
This comment has been minimized.
cc @n3wscott I was just using his library 😉 |
We never have supported bash 3, only bash 4 |
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Very nice job @jsoref 👍 |
@@ -20,7 +20,7 @@ metadata: | |||
labels: | |||
serving.knative.dev/release: devel | |||
annotations: | |||
knative.dev/example-checksum: "12baeac1" | |||
knative.dev/example-checksum: "1d830d9e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this change, nothing to do with the spell checking
@@ -149,7 +149,7 @@ func TestQueueTraceSpans(t *testing.T) { | |||
h := queue.ProxyHandler(breaker, network.NewRequestStats(time.Now()), true /*tracingEnabled*/, proxy) | |||
h(writer, req) | |||
} else { | |||
h := health.ProbeHandler(healthState, tc.prober, true /* isAggresive*/, true /*tracingEnabled*/, nil) | |||
h := health.ProbeHandler(healthState, tc.prober, true /* isAggressive*/, true /*tracingEnabled*/, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I should point out that the first commented item has a leading space (but no trailing), whereas the second has no whitespace. I suspect the latter is the preferred style, but I'm not eager to make changes :-)
@@ -153,11 +153,11 @@ data: | |||
# Scale to zero pod retention period defines the minimum amount | |||
# of time the last pod will remain after Autoscaler has decided to | |||
# scale to zero. | |||
# This flag is for the situations where the pod starup is very expensive | |||
# This flag is for the situations where the pod startup is very expensive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
// We want exactly 2. Not 1, not panicing 3, just 2. | ||
// We want exactly 2. Not 1, not panicking 3, just 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good panicking
@@ -20,7 +20,7 @@ metadata: | |||
labels: | |||
serving.knative.dev/release: devel | |||
annotations: | |||
knative.dev/example-checksum: "3af7fc85" | |||
knative.dev/example-checksum: "97c1d10b" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why your tool changing yaml checking sums
@jsoref the PR looks good, just a few comments
|
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for bearing with us through this and thanks for everybodz helping to unblock things 🎉
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csantanapr, jsoref, markusthoemmes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR corrects misspellings identified by the check-spelling action.
The misspellings have been reported at jsoref@6819186#commitcomment-43154265
The action reports that the changes in this PR would make it happy: jsoref@d52634d
Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.
Spelling errors make code harder to read, they lead to various other kinds of bugs, they make it harder to search for tokens, ...
I can file an issue for this if requested.
Proposed Changes
Release Note