Skip to content

google-cloud-java: create a workflow to run librarian generate -all and create issue on failure #5240

Description

@JoeWang1127

Create a workflow in google-cloud-java to run librarian generate -all and commit code change in eligible pull request, similar to https://github.com/googleapis/google-cloud-java/blob/main/.github/workflows/hermetic_library_generation.yaml

The tools used in the workflow:

  • librarian, the version from librarian.yaml
  • sources (googleapis), commit SHA from librarian.yaml
  • protoc, grpc plugin, the version from librarian.yaml
  • gapic-generator-java, built from the HEAD of google-cloud-java, we need librarian install to support this, tracked via java: add support for librarian install #5154.

Initially, we will create this workflow as a presubmit postsubmit check, it will run librarian generate -all and fail if any code change happens in the branch. This can verify the generation result is the same among hermetic build and librarian.

After running the check for a week, we should add to workflow to create issue on failure. we will remove hermetic build workflow and update the presubmit check to commit code change. (tracked in #6219)

For reference, in google-cloud-java, this job builds an hermetic build image when a commit is pushed to main and a workflow runs the latest image for library generation in eligible pull requests.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions