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

chore: normalize status.observedState.etag in golden tests #2064

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

justinsb
Copy link
Collaborator

Also simplify etag computation, as we don't rely on the value itself
any more.

Also simplify etag computation, as we don't rely on the value itself
any more.
@justinsb
Copy link
Collaborator Author

/assign @yuwenma

@justinsb
Copy link
Collaborator Author

(I did this because it blocked #2052 )

return "W/" + strong
}

func ComputeEtagBytes(obj proto.Message) []byte {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the current in-use ComputeEtag. Some expects a []byte form and some needs a pointer. So I'm trying to make this a generic lib for other contributors to use out of the box, so they don't need to handle the dereference pointer badly (like what I did previously).

@yuwenma
Copy link
Collaborator

yuwenma commented Jun 20, 2024

/lgtm
/approve

(I did this because it blocked #2052 )

Ah! Fair

@google-oss-prow google-oss-prow bot added the lgtm label Jun 20, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit e0f4d1b into GoogleCloudPlatform:master Jun 20, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants