googleapis / java-pubsub

Apache License 2.0
122 stars 88 forks source link

feat: enable hermetic library generation #2048

Closed diegomarquezp closed 14 hours ago

diegomarquezp commented 1 month ago

This is part of the effort to enable multi-version support in hand-written libraries. More context and details in this doc.

This PR adds two workflows and their scripts:

As an example of how they work in practice:

  1. Once per night, update_generation_config creates a PR that updates generation_config.yaml with the latest dependencies and googleapis committish
  2. hermetic_library_generation is triggered by this PR and generates the corresponding code changes. A new commit with the code changes is added to the PR. This step may occur for any PR affecting generation_config.yaml.

Follow ups

michaelpri10 commented 6 days ago

Accidentally left comments on the local repo pull request, but copied the relevant ones here. Just 2 small suggestions but otherwise LGTM.