Skip to content

ci: librarian checks should indicate steps to repair #9148

Description

@westarle

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

# 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 #9145 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions