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

mockgcp: support for workflows #3584

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

justinsb
Copy link
Collaborator

@justinsb justinsb commented Feb 1, 2025

  • mockgcp: add test case for workflows workflow
  • mockgcp: support for workflows
  • mockgcp: generate bindings for workflows.v1
  • mockgcp: capture golden output for workflow test
  • tests: don't require header on any testdata files

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
/hold

two questions, non blocker.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to check in this file (and the next one)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, they are referenced from script.yaml

@@ -121,6 +121,8 @@ func (p *Proxy) BuildGcloudConfig(proxyEndpoint *net.TCPAddr, mockgcp mockgcp.In
"storage.googleapis.com",
"cloudresourcemanager.googleapis.com",
"serviceusage.googleapis.com",
"workflows.googleapis.com",
"workflowexecutions.googleapis.com",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool! Is this added by AI via some hints like "update the service in proxy.go" or manually added?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I manually added these, but yes it would be easy enough to ask AI to add them automatically. I guess one gotcha is that we don't actually know the service names at this stage (until we've run the test).

Maybe we should just add all the hostnames we know of (or at least the ones that gcloud knows of!)

There might also be a better way to intercept gcloud traffic, I just haven't found one yet!

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

@justinsb justinsb force-pushed the mockgcp_workflows_support branch from 1692f79 to 45048f7 Compare February 7, 2025 16:10
@google-oss-prow google-oss-prow bot removed the lgtm label Feb 7, 2025
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@justinsb justinsb force-pushed the mockgcp_workflows_support branch from 45048f7 to 56f4c67 Compare February 7, 2025 16:37
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