Skip to content

Conversation

@stephanos
Copy link
Collaborator

@stephanos stephanos commented Jul 18, 2025

What was changed

(1) Provides script to build protos locally.
(2) Moves all version identifier to file.

Why?

(1) Allow contributors to build correct protos locally.
(2) Single source of truth.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@stephanos stephanos force-pushed the proto-docker branch 7 times, most recently from 63be1fd to 8ddfeee Compare July 18, 2025 23:22
Comment on lines +25 to +26
cd /workspace/workers/typescript
npm install && npm run proto-gen
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Easy to forget ...

@stephanos stephanos marked this pull request as ready for review July 18, 2025 23:37
@stephanos stephanos requested a review from Sushisource July 18, 2025 23:37
Comment on lines -13 to -15
- `protoc` and `protoc-gen-go` must be installed
- tip: don't worry about the specific versions here; instead, the GitHub action will make a diff
available for download that you can use with `git apply`
Copy link
Member

Choose a reason for hiding this comment

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

Might be worth changing this to say you either need proto or docker to get kitchen sink going locally

-t "${IMAGE_NAME}" "${PROJECT_ROOT}"

echo "Running kitchen-sink-gen build..."
docker run --rm -v "${PROJECT_ROOT}:/workspace" -w /workspace "${IMAGE_NAME}" bash -c "
Copy link
Member

Choose a reason for hiding this comment

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

Not a huge fan of mounting the whole project dir into the docker image. This can make for slow loads as it copies everything, and what it writes back out often has weird, incorrect permissions.

That said, this is still easier than before, so I wouldn't block on this, but, if possible might be nice to cleanly copy the result files out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍 Good idea!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm, I spent almost an hour on this and it's harder than I thought: I don't want to copy all files into the container (node_modules is large) which requires some filtering, I don't want to specify every single output because that's brittle, but copying all files out of the container also defeats the purpose, doing a diff is harder than it seems, ...

I'll merge for now and we can discuss improvements.

@stephanos stephanos merged commit d5d8880 into main Jul 19, 2025
16 checks passed
@stephanos stephanos deleted the proto-docker branch July 19, 2025 00:42
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