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

Experimental cloud operations client #1462

Merged
merged 11 commits into from
Jul 8, 2024
Merged

Experimental cloud operations client #1462

merged 11 commits into from
Jul 8, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented May 10, 2024

What was changed

  • Added client.CloudOperationsClient
    • Only one method for now, CloudService(), but has room for high-level wrappers if we ever want them
  • Added client.DialCloudOperationsClient() and client.CloudOperationsClientOptions
  • Added integration test as just a smoke test to confirm cloud client works

Users must deal w/ a required version header and an API key that can only live for a limited time during the current beta cloud API. We decided we'll no longer block this issue on those experience concerns.

(this was started in #1426, but moved to local branch to run cloud tests)

Checklist

  1. Closes Cloud Operations API Client #1459

cretz added 6 commits March 22, 2024 10:46
# Conflicts:
#	contrib/datadog/go.mod
#	contrib/datadog/go.sum
#	contrib/opentelemetry/go.mod
#	contrib/opentelemetry/go.sum
#	contrib/opentracing/go.mod
#	contrib/opentracing/go.sum
#	contrib/tally/go.mod
#	contrib/tally/go.sum
#	go.mod
#	go.sum
#	test/go.mod
#	test/go.sum
cretz added 2 commits July 3, 2024 13:23
# Conflicts:
#	contrib/datadog/go.mod
#	contrib/datadog/go.sum
#	contrib/opentelemetry/go.mod
#	contrib/opentelemetry/go.sum
#	contrib/opentracing/go.mod
#	contrib/opentracing/go.sum
#	contrib/tally/go.mod
#	contrib/tally/go.sum
#	go.mod
#	go.sum
#	internal/cmd/build/go.mod
#	internal/cmd/build/go.sum
#	test/go.mod
#	test/go.sum
@cretz cretz marked this pull request as ready for review July 3, 2024 18:59
@cretz cretz requested a review from a team as a code owner July 3, 2024 18:59

func init() { flag.BoolVar(&cloudTestsFlag, "cloud-tests", false, "Enable cloud tests") }

func TestCloudSuite(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can we rename this to something like TestCloudOpsSuit or similar to clarify these tests are just for the clouds Ops API.

Copy link
Member Author

@cretz cretz Jul 8, 2024

Choose a reason for hiding this comment

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

I can change this. I was actually thinking that this could encompass all cloud-only tests and not just operations ones (granted it's only operations tests today that are cloud only and we create that client in setup).

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed

Copy link
Contributor

Choose a reason for hiding this comment

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

What kind of tests would be cloud-only that aren't the cloud ops tests?

We have other tests that already run against cloud https://github.com/temporalio/sdk-go/actions/runs/9784335348/job/27014986110, but I guess they are not cloud only.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure, but we can refactor when we get there (maybe we'll never there)

@cretz cretz merged commit 79cd73a into master Jul 8, 2024
14 checks passed
@cretz cretz deleted the cloud-client branch July 8, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloud Operations API Client
2 participants