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

tests: set 0 llm #3226

Merged
merged 2 commits into from
Dec 5, 2024
Merged

tests: set 0 llm #3226

merged 2 commits into from
Dec 5, 2024

Conversation

acpana
Copy link
Collaborator

@acpana acpana commented Nov 20, 2024

Adds a scenario test for setting 0 for native types for the LoggingLogMetric.

A few call outs

  • test was hand written
  • no issues were detected

Note in the future we will want tooling that can generate these tests for us and run against the direct controllers. To that end, both the filler mechanism in the random filler (#3151) and the field analysis tool (#2326) will help.

@acpana
Copy link
Collaborator Author

acpana commented Nov 20, 2024

/hold want #3200 to go in first

@acpana
Copy link
Collaborator Author

acpana commented Nov 20, 2024

/hold cancel

@acpana acpana changed the base branch from acpana/scenarios-refactor to master November 20, 2024 23:06
Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

Thanks! Could you upload the real GCP result as well? You can run hack/record-gcp and git-commit the output, and run hack/compare-mock and git-commit again, and upload the 2 commits, so we can check the diff between real and mock

"valueType": "DISTRIBUTION"
},
"name": "logginglogmetric-${uniqueId}",
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

super nit: this resourceName seems to be missing in the MockGCP

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh good catch -- this might need to be a mock improvement change. I can explore that outside of this PR.

Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks!

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

Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
@yuwenma
Copy link
Collaborator

yuwenma commented Dec 5, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Dec 5, 2024
@google-oss-prow google-oss-prow bot merged commit adcb218 into master Dec 5, 2024
20 checks passed
@yuwenma yuwenma added this to the 1.126 milestone Dec 11, 2024
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.

2 participants