googleapis / googleapis/google-cloud-node

ci: librarian checks should indicate steps to repair

Open
#9,148 0 comments 0 reactions 1 assignee Claimed by @quirogas View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.