googleapis / googleapis/google-cloud-node
ci: librarian checks should indicate steps to repair
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 712
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 99
Description
When the tidy or generate checks fail, it isn't perfectly clear how to recover. Mainly, the version check isn't obvious:
> Regeneration failed. Please run 'librarian generate --all' to update the generated files.
Ideally this is a (very short) script we run like `ci/librarian`
```bash
# Get the librarian version currently used in node
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
# format librarian.yaml file
go run github.com/googleapis/librarian/cmd/librarian@${V} tidy
# install all node dependencies specified in librarian.yaml
go run github.com/googleapis/librarian/cmd/librarian@${V} install
# run generate to apply all changes to repo-metadata
go run github.com/googleapis/librarian/cmd/librarian@${V} generate --all
```
_Originally posted by @quirogas in https://github.com/googleapis/google-cloud-node/issues/9145#issuecomment-5285710004_
Contributor guide
Assessment
This issue has not been assessed yet.