Skip to content

Add CICD workflow for generated files #752

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jakubno
Copy link
Member

@jakubno jakubno commented Jun 11, 2025

Description

Check if all generated files are up today

@jakubno jakubno self-assigned this Jun 11, 2025
@jakubno jakubno added the improvement Improvement for current functionality label Jun 11, 2025
Copy link

linear bot commented Jun 11, 2025

@jakubno jakubno force-pushed the setup-cicd-for-generated-files-e2b-2305 branch 2 times, most recently from ed180fa to cb51db9 Compare June 11, 2025 02:23
@jakubno jakubno force-pushed the setup-cicd-for-generated-files-e2b-2305 branch from 33e457e to a93848e Compare June 11, 2025 03:50
@jakubno jakubno marked this pull request as ready for review June 11, 2025 11:17
Copy link
Contributor

@dobrac dobrac left a comment

Choose a reason for hiding this comment

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

Nice! Small comment to the installed versions

Comment on lines +30 to +36
go install google.golang.org/protobuf/cmd/protoc-gen-go@v${PROTOC_GEN_GO_VER}

# Install protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${PROTOC_GEN_GO_GRPC_VER}

# Install protoc-gen-connect-go
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@${PROTOC_GEN_CONNECT_GO_VER}
Copy link
Contributor

Choose a reason for hiding this comment

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

All of these should be installed as tools, do we need to install them manually?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's used in this command

@protoc --go_out=../shared/pkg/grpc/orchestrator/ --go_opt=paths=source_relative --go-grpc_out=../shared/pkg/grpc/orchestrator/ --go-grpc_opt=paths=source_relative orchestrator.proto

and I didn't find protoc would support go tools (yet?)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think protoc doesn't, but the cmds somehow might. If not at all, I would move all of this to a Docker container, so we have parity between dev and this CI/CD

Copy link
Member

Choose a reason for hiding this comment

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

I think @0div created a command that does the generation inside a Docker already.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure, but I think it was in the SDKs only

Copy link
Contributor

Choose a reason for hiding this comment

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

(yes, the Docker is SDK only)

@jakubno jakubno requested a review from dobrac June 11, 2025 18:23
@ValentaTomas
Copy link
Member

I left a comment, but otherwise looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement for current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants