镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Librarian generate diff check failed on main branch #9341

Closed

Description

@github-actions

The librarian generate diff check failed on main branch.

To keep the main branch healthy, please consider reverting the triggering change first. Once the revert is merged, you can investigate the failure and submit a new PR with the fix.

Please check the logs: https://github.com/googleapis/google-cloud-node/actions/runs/35003211388

Activity

  1. github-actions commented on Sep 15, 2026

    @github-actions
    ContributorAuthor

    @googleapis/cloud-sdk-librarian-team The workflow failed. Workflow Run: https://github.com/googleapis/google-cloud-node/actions/runs/35003211388

  2. github-actions commented on Sep 15, 2026

    @github-actions
    ContributorAuthor
  3. github-actions commented on Sep 15, 2026

    @github-actions
    ContributorAuthor
  4. github-actions commented on Sep 15, 2026

    @github-actions
    ContributorAuthor
  5. github-actions commented on Sep 16, 2026

    @github-actions
    ContributorAuthor
  6. zhumin8 commented on Sep 16, 2026

    @zhumin8
    Contributor

    Root Cause Analysis
    The generation check failure on main was introduced by PR #9144 (3ff5ae9), which manually updated .nycrc (removing "text" from reporter) and .gitignore (removing package-lock.json) across packages for the PNPM migration.

    Why this caused the failure:

    • Librarian Templates Divergence: Librarian's Node generator templates (.nycrc.tmpl and .gitignore.tmpl) still define "text" in .nycrc and package-lock.json in .gitignore.
    • Skipped in PR Check: The PR validation in .github/workflows/generation_check.yaml only runs librarian generate --all when librarian.yaml or the workflow itself is modified (dorny/paths-filter). Because PR chore: update .nycrc, Contributing.md, and .gitignore across packages #9144 only modified package files, librarian generate --all was skipped during PR CI.
    • Triggered on main: On merge to main, generation_check.yaml runs librarian generate --all unconditionally. Librarian re-templated the packages back to the template state, reverting the manual edits across 477 files and failing git diff --exit-code.

    Next Steps
    Fix in Librarian: Update the Node generator templates in googleapis/librarian to match the intended changes from #9144 (remove "text" from .nycrc.tmpl and package-lock.json from .gitignore.tmpl).

  7. zhumin8 commented on Sep 16, 2026

    @zhumin8
    Contributor

    After investigating the failure, the relavent templates are within gapic generator. This means if to fix this properly, we need to release a new version of generator to use in librarian.yaml. Note there is librarian#6889, as of now, librarian install only supports pnpm 7.

    I think it's best to revert the changes for now to fix main.
    I see @bshaffer already have #9354

  8. github-actions commented on Sep 16, 2026

    @github-actions
    ContributorAuthor
  9. zhumin8 commented on Sep 16, 2026

    @zhumin8
    Contributor

    #9354 is merged

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions