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

Automate selection of latest SDK versions #530

Merged
merged 20 commits into from
Sep 3, 2024

Conversation

yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Aug 27, 2024

What was changed

Add a new latest-sdk-version command to query GH API to get the latest release version. Automatically run CI against latest SDK releases.

Also added a mechanism to run the CI manually, specifying a custom SDK version to allow testing of versions that aren't the latest

This currently bumps the following SDK versions:

typescript: 1.10.3 -> 1.11.1
java: 1.25.0 -> 1.25.1
typescript: 1.2.0 -> 1.3.0

Why?

Prevent losing test coverage for accidentally forgetting to bump a version manually

Checklist

  1. Closes

  2. How was this tested:

Screenshot 2024-08-27 at 3 49 35 PM

Not sure how to test the override mechanism without having this merged into main. Because the newly added dispatch_workflow trigger isn't in main, I'm unable to trigger CI manually.

  1. Any docs updates needed?

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
cmd/latest_sdk_version.go Outdated Show resolved Hide resolved
cmd/latest_sdk_version.go Outdated Show resolved Hide resolved
cmd/latest_sdk_version.go Outdated Show resolved Hide resolved
cmd/latest_sdk_version.go Outdated Show resolved Hide resolved
cmd/latest_sdk_version.go Outdated Show resolved Hide resolved
@yuandrew yuandrew changed the title [WIP] Automate selection of latest SDK versions Automate selection of latest SDK versions Aug 30, 2024
@yuandrew
Copy link
Contributor Author

Should be ready for review!

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

One minor non-blocking suggestion, but LGTM. Would like @Sushisource to look to since he's more familiar with these workflows.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

This is looking good to me. Nothing blocking. Thanks!

Comment on lines +57 to +58
go_latest="${{ github.event.inputs.go_sdk_version }}"
if [ -z "$go_latest" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

This script is long enough that I'm tempted to say it ought to go in a file, but, I can see how that's really annoying with the amount of variable interpolation going on. So, up to you if you think that's worth it.

I really wish GH's syntax highlighter at least did a better job here.

cmd/latest_sdk_version.go Show resolved Hide resolved
@yuandrew yuandrew merged commit 71c6d40 into temporalio:main Sep 3, 2024
17 checks passed
@yuandrew yuandrew deleted the dynamic-sdk-version-ci branch September 3, 2024 16:24
@mjameswh mjameswh mentioned this pull request Oct 8, 2024
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.

3 participants